B
BarCodeR दस्तावेज़एम्बेडेड दस्तावेज़ — ऑफ़लाइन कार्य करता है
/

इनपुट डेटा — तकनीकी संदर्भ

इस BarCodeR संस्करण में मौजूद वास्तविक कोड से बनाया गया तकनीकी इन्वेंटरी।

यह पृष्ठ documentation-src/build_docs.py द्वारा दोबारा बनाया जाता है। Function names, identifiers और line numbers वर्तमान source code से आते हैं।

1. स्रोत फ़ाइलें#

भूमिका Path
Loader interface modules/data/mod_data_loader_ui.R
Reading, detection, modals और insertion modules/data/mod_data_loader_server.R
Dataset-name cleaning modules/_shared/_dataset_naming.R
Phyloseq integrity guard modules/_shared/_ps_guard.R
Global registry और upload limit app.R
Documentation source documentation-src/hi/input-data/
Generated documentation www/documentation/hi/input-data/

2. आर्किटेक्चर और मुख्य डेटा प्रवाह#

fileInput rds_input
  → read_serialized_input()
  → detect_supported_object_type()
  → pending_obj / pending_type / pending_candidates
  → selection or confirmation modal
  → mt_prepare_loaded_phyloseq()
  → bcr_guard_ps() for a single dataset
  → datasets() registry
  → active_ds()
  → unsaved project state

2.1. Reactive state और memory#

Identifier भूमिका
pending_obj() User confirmation की प्रतीक्षा में loaded object।
pending_type() Detected type: dataset या project।
pending_file_name() Uploaded file का original name।
pending_object_name() RData के भीतर चुने गए object का name।
pending_candidates() Multi-object RData में मिले compatible candidates।
datasets() Current BarCodeR project के सभी datasets की reactive registry।
active_ds() Downstream modules द्वारा default रूप से उपयोग होने वाला dataset name।

2.2. Traceability chains#

single phyloseq
  → proposed label
  → add or replace modal
  → mt_prepare_loaded_phyloseq()
  → bcr_guard_ps()
  → datasets(new_registry)
  → active_ds(final_label)
  → detailed cleaning report
project object
  → datasets / ps_registry / list-of-phyloseq extraction
  → clean_project_phyloseq_list()
  → name collision resolution
  → merge or replace datasets()
  → active dataset restoration
  → aggregate restoration report

3. Shiny inputs#

Identifier Widget UI Source Server references
cancel_load_dataset actionButton mod_data_loader_server.R:629 mod_data_loader_server.R:1082
cancel_project_load actionButton mod_data_loader_server.R:772 mod_data_loader_server.R:1158
cancel_rdata_choice actionButton mod_data_loader_server.R:574 mod_data_loader_server.R:1032
close_dataset_report actionButton mod_data_loader_server.R:730 mod_data_loader_server.R:735
close_info_modal actionButton mod_data_loader_server.R:539 mod_data_loader_server.R:544
close_loader_modal_top server-only / dynamic mod_data_loader_server.R:548
close_project_report actionButton mod_data_loader_server.R:832 mod_data_loader_server.R:837
confirm_load_dataset actionButton mod_data_loader_server.R:630 mod_data_loader_server.R:1088
confirm_project_load actionButton mod_data_loader_server.R:773 mod_data_loader_server.R:1164
confirm_rdata_choice actionButton mod_data_loader_server.R:575 mod_data_loader_server.R:1038
dataset_import_mode radioButtons mod_data_loader_server.R:606 mod_data_loader_server.R:1095
dataset_label_modal textInput mod_data_loader_server.R:596 mod_data_loader_server.R:1096
project_import_mode radioButtons mod_data_loader_server.R:756 mod_data_loader_server.R:1165
rdata_object_choice selectInput mod_data_loader_server.R:562 mod_data_loader_server.R:1039, mod_data_loader_server.R:1042, mod_data_loader_server.R:1044, mod_data_loader_server.R:1047, mod_data_loader_server.R:1055
rds_input fileInput mod_data_loader_ui.R:314 mod_data_loader_server.R:968, mod_data_loader_server.R:969, mod_data_loader_server.R:973, mod_data_loader_server.R:988, mod_data_loader_server.R:999, mod_data_loader_server.R:1005

4. Shiny outputs#

Identifier Widget UI Source Server references

5. Validation और integrity guard#

Layer Function Effect
Serialized file readRDS() / load() Object पढ़ता है; RData isolated environment में load होता है।
Object detection detect_supported_object_type() Phyloseq, datasets/ps_registry project या phyloseq list पहचानता है।
Sample identifiers sanitize_sample_names() Transliteration, unsafe-character replacement और duplicate resolution करता है।
Metadata blanks replace_empty_metadata_with_na() Columns को character बनाकर empty cells को NA से बदलता है।
Phyloseq structure bcr_guard_ps() OTU table वाला phyloseq आवश्यक करता है और sample/taxon identifiers जाँचता है।
Dataset label bcr_clean_label() / bcr_make_unique_label() Registry के लिए safe और unique key बनाता है।

6. आंतरिक functions#

6.1. Files और serialization#

Identifier Source पंक्ति भूमिका
default_label_from_fileinput() modules/data/mod_data_loader_server.R 42 Files और serialization layer का internal helper।
reset_fileinput() modules/data/mod_data_loader_server.R 84 Files और serialization layer का internal helper।
read_serialized_input() modules/data/mod_data_loader_server.R 352 RDS/RData को isolated environment में पढ़कर compatible objects की सूची बनाता है।
build_rdata_choice_modal() modules/data/mod_data_loader_server.R 552 Files और serialization layer का internal helper।

6.2. General#

Identifier Source पंक्ति भूमिका
mod_data_loader_server() modules/data/mod_data_loader_server.R 1 General layer का internal helper।
tr() modules/data/mod_data_loader_server.R 12 General layer का internal helper।
make_unique_label() modules/data/mod_data_loader_server.R 40 General layer का internal helper।
mode_label() modules/data/mod_data_loader_server.R 80 General layer का internal helper।
is_same_string() modules/data/mod_data_loader_server.R 91 General layer का internal helper।
empty_change_df() modules/data/mod_data_loader_server.R 160 General layer का internal helper।
summarize_report() modules/data/mod_data_loader_server.R 324 General layer का internal helper।
detect_supported_object_type() modules/data/mod_data_loader_server.R 337 Object को phyloseq dataset, project या unsupported content के रूप में वर्गीकृत करता है।
make_table_rows() modules/data/mod_data_loader_server.R 478 General layer का internal helper।
bcr_make_unique_label() modules/_shared/_dataset_naming.R 35 General layer का internal helper।
sb_try() modules/_shared/_ps_guard.R 11 General layer का internal helper।
sb_ps_slots() modules/_shared/_ps_guard.R 17 General layer का internal helper।

6.3. State / cleanup#

Identifier Source पंक्ति भूमिका
clear_pending() modules/data/mod_data_loader_server.R 26 State / cleanup layer का internal helper।

6.4. UI / rendering#

Identifier Source पंक्ति भूमिका
build_modal_shell() modules/data/mod_data_loader_server.R 426 UI / rendering layer का internal helper।
make_kpi_card() modules/data/mod_data_loader_server.R 469 UI / rendering layer का internal helper।
make_change_card() modules/data/mod_data_loader_server.R 490 UI / rendering layer का internal helper।
show_message_modal() modules/data/mod_data_loader_server.R 527 UI / rendering layer का internal helper।
sb_ps_require() modules/_shared/_ps_guard.R 84 UI / rendering layer का internal helper।
bcr_guard_message() modules/_shared/_ps_guard.R 142 UI / rendering layer का internal helper।

6.5. Validation / formatting#

Identifier Source पंक्ति भूमिका
clean_label() modules/data/mod_data_loader_server.R 39 Validation / formatting layer का internal helper।
sanitize_sample_names() modules/data/mod_data_loader_server.R 97 Sample identifiers को standardize करके duplicate names हल करता है।
replace_empty_metadata_with_na() modules/data/mod_data_loader_server.R 140 Metadata की खाली cells को character conversion के बाद NA से बदलता है।
bcr_clean_label() modules/_shared/_dataset_naming.R 25 Validation / formatting layer का internal helper।
sb_ps_check_ids() modules/_shared/_ps_guard.R 42 Validation / formatting layer का internal helper।
bcr_guard_ps() modules/_shared/_ps_guard.R 136 Insertion से पहले phyloseq class, OTU table और identifier consistency जाँचता है।

6.6. Phyloseq / datasets#

Identifier Source पंक्ति भूमिका
prepare_named_phyloseq_list() modules/data/mod_data_loader_server.R 51 Phyloseq / datasets layer का internal helper।
extract_project_dataset_names() modules/data/mod_data_loader_server.R 59 Phyloseq / datasets layer का internal helper।
mt_prepare_loaded_phyloseq() modules/data/mod_data_loader_server.R 164 OTU/metadata identifiers को साफ़ और synchronize करके change report बनाता है।
build_dataset_load_modal() modules/data/mod_data_loader_server.R 580 Phyloseq / datasets layer का internal helper।
build_dataset_report_modal() modules/data/mod_data_loader_server.R 635 Phyloseq / datasets layer का internal helper।
build_project_load_modal() modules/data/mod_data_loader_server.R 739 Phyloseq / datasets layer का internal helper।
build_project_report_modal() modules/data/mod_data_loader_server.R 778 Phyloseq / datasets layer का internal helper।
load_pending_project() modules/data/mod_data_loader_server.R 849 Project phyloseq objects को साफ़ करके registry को merge/replace और active dataset को restore करता है।
clean_project_phyloseq_list() modules/data/mod_data_loader_server.R 866 Phyloseq / datasets layer का internal helper।