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

विवरण — तकनीकी संदर्भ

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

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

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

भूमिका Path
Interface Shiny modules/description/mod_description_ui.R
Metrics, plots, tables and comparison logic modules/description/mod_description_server.R
Global active-dataset synchronization modules/_shared/_active_dataset_sync.R
Persistent UI state modules/_shared/_ui_state.R
Application integration app.R
Documentation source documentation-src/hi/description/
Generated documentation www/documentation/hi/description/

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

datasets() + active_ds()
  → selected_dataset_single
  → phyloseq extraction and temporary OTU orientation
  → sample / ASV / sequence / completeness metrics
  → Plotly and DT outputs
  → optional vegan::rarefy() computation
all in-memory datasets
  → compute_dataset_stats()
  → selected comparison subset
  → normalized heatmap / dotplot / baseline delta
  → filtration-log comparison

2.1. Reactive state और memory#

Identifier भूमिका
selected_dataset_single Inspect किया गया dataset, active_ds() से synchronized।
sample_group_var Descriptive grouping के लिए इस्तेमाल sample_data column।
rarefaction_result अंतिम vegan::rarefy() calculation का cached result।
selected_sample_id Detail card में दिखाया गया sample।
selected_datasets_compare Project comparison plots में शामिल datasets।
project_baseline_dataset Relative differences के लिए reference dataset।

2.2. Traceability chains#

selected dataset
  → active_ds() synchronization
  → compute_dataset_stats() + sample/asv metrics
  → diagnostic cards and interactive plots
  → tables / CSV exports
Calculate curves
  → positive-count and ≥50-read checks
  → vegan::rarefy() on up to ~80 depths
  → cached rarefaction_result
  → individual or pooled-group rendering

3. Shiny inputs#

Identifier Widget UI Source Server references
download_logs_table downloadButton mod_description_ui.R:932
download_meta_table downloadButton mod_description_ui.R:917
download_otu_table downloadButton mod_description_ui.R:899
download_tax_table downloadButton mod_description_ui.R:908
jump_to_logs actionButton mod_description_ui.R:692 mod_description_server.R:1084
project_baseline_dataset selectInput mod_description_ui.R:983 mod_description_server.R:1016, mod_description_server.R:1020, mod_description_server.R:2597
project_focus_metric selectInput mod_description_ui.R:987 mod_description_server.R:1079, mod_description_server.R:2522, mod_description_server.R:2599
rarefaction_curve_mode selectInput mod_description_ui.R:817 mod_description_server.R:1063, mod_description_server.R:1820
rarefaction_display_mode selectInput mod_description_ui.R:824 mod_description_server.R:1071, mod_description_server.R:1757
rarefaction_max_samples numericInput mod_description_ui.R:825 mod_description_server.R:1758
rarefaction_show_legend checkboxInput mod_description_ui.R:818 mod_description_server.R:1821
run_rarefaction actionButton mod_description_ui.R:816 mod_description_server.R:1683
sample_group_var server-only / dynamic mod_description_server.R:922, mod_description_server.R:1039, mod_description_server.R:1734, mod_description_server.R:1932, mod_description_server.R:2130
selected_dataset_single server-only / dynamic mod_description_server.R:796
selected_datasets_compare server-only / dynamic mod_description_server.R:807, mod_description_server.R:1009, mod_description_server.R:1013

4. Shiny outputs#

Identifier Widget UI Source Server references
clicked_sample_card uiOutput mod_description_ui.R:756 mod_description_server.R:1324
dataset_diagnostic_grid uiOutput mod_description_ui.R:733 mod_description_server.R:1222
dataset_header uiOutput mod_description_ui.R:697 mod_description_server.R:1104
dataset_hero_metrics uiOutput mod_description_ui.R:698 mod_description_server.R:1138
dataset_key_message uiOutput mod_description_ui.R:699 mod_description_server.R:1151
dataset_quick_cards uiOutput mod_description_ui.R:731 mod_description_server.R:1161
download_logs_table downloadButton mod_description_ui.R:932 mod_description_server.R:2441
download_meta_table downloadButton mod_description_ui.R:917 mod_description_server.R:2433
download_otu_table downloadButton mod_description_ui.R:899 mod_description_server.R:2417
download_tax_table downloadButton mod_description_ui.R:908 mod_description_server.R:2425
log_removed_samples DTOutput mod_description_server.R:2382 mod_description_server.R:2401
log_removed_taxa DTOutput mod_description_server.R:2376 mod_description_server.R:2389
log_table uiOutput mod_description_ui.R:934 mod_description_server.R:2354
meta_missingness_table DTOutput mod_description_ui.R:926 mod_description_server.R:2345
meta_table DTOutput mod_description_ui.R:919 mod_description_server.R:2328
meta_table_overview uiOutput mod_description_ui.R:915 mod_description_server.R:2299
openmetabar_provenance uiOutput mod_description_ui.R:715 mod_description_server.R:823
otu_table DTOutput mod_description_ui.R:901 mod_description_server.R:2312
otu_table_overview uiOutput mod_description_ui.R:897 mod_description_server.R:2272
outlier_group_cards uiOutput mod_description_ui.R:854 mod_description_server.R:2125
outlier_signal_cards uiOutput mod_description_ui.R:849 mod_description_server.R:2038
outlier_spotlight_card uiOutput mod_description_ui.R:850 mod_description_server.R:2078
outlier_story_card uiOutput mod_description_ui.R:844 mod_description_server.R:1924
outlier_summary_cards uiOutput mod_description_ui.R:846 mod_description_server.R:2019
project_baseline_delta rendered output mod_description_server.R:2594
project_filtration_plot rendered output mod_description_server.R:2626
project_metric_dotplot rendered output mod_description_server.R:2573
project_metric_heatmap rendered output mod_description_server.R:2546
project_overview_cards uiOutput mod_description_ui.R:954 mod_description_server.R:2507
project_plot_memory rendered output mod_description_server.R:2666
project_plot_reads rendered output mod_description_server.R:2658
project_plot_richness rendered output mod_description_server.R:2662
project_plot_samples rendered output mod_description_server.R:2650
project_plot_taxa rendered output mod_description_server.R:2654
project_story_card uiOutput mod_description_ui.R:956 mod_description_server.R:2519
project_summary_table DTOutput mod_description_ui.R:958 mod_description_server.R:2538
rarefaction_plot rendered output mod_description_server.R:1816
sample_metric_table DTOutput mod_description_ui.R:870 mod_description_server.R:2216
sample_outlier_table DTOutput mod_description_ui.R:861 mod_description_server.R:2185
selected_cum_asvs_plot rendered output mod_description_server.R:1496
selected_cum_reads_plot rendered output mod_description_server.R:1469
selected_evenness_proxy_plot rendered output mod_description_server.R:1605
selected_gc_hist rendered output mod_description_server.R:1644
selected_reads_cumulative_group_plot rendered output mod_description_server.R:1553
selected_reads_group_plot rendered output mod_description_server.R:1549
selected_reads_hist rendered output mod_description_server.R:1523
selected_reads_richness_scatter rendered output mod_description_server.R:1372
selected_richness_group_plot rendered output mod_description_server.R:1601
selected_richness_hist rendered output mod_description_server.R:1586
selected_seq_len_hist rendered output mod_description_server.R:1629
selected_seq_scatter rendered output mod_description_server.R:1659
selected_top_asvs_bar rendered output mod_description_server.R:1443
selected_top_samples_bar rendered output mod_description_server.R:1411
tables_overview uiOutput mod_description_ui.R:886 mod_description_server.R:2255
tax_missingness_table DTOutput mod_description_ui.R:925 mod_description_server.R:2336
tax_table DTOutput mod_description_ui.R:910 mod_description_server.R:2320
tax_table_overview uiOutput mod_description_ui.R:906 mod_description_server.R:2286

5. Validation और integrity guard#

Control Function Effect
OTU orientation get_otu_taxa_rows() केवल calculation matrix transpose होती है; phyloseq object नहीं बदलता।
Grouping get_group_var_choices() 2–15 non-missing levels वाली non-temporal variables रखता है।
Outliers iqr_outlier_flag() / iqr_distance_score() Reads, richness और dominance पर global 1.5-IQR detection।
Rarefaction vegan::rarefy() Compatible counts आवश्यक हैं; 50 reads से कम samples बाहर होते हैं।
Tables get_table_*_df() Display/export के लिए ASV/SampleID जोड़ता और names सुरक्षित करता है।
Project view compute_dataset_stats() Datasets के dimensions जोड़ता है, deduplicate नहीं करता।

6. आंतरिक functions#

6.1. Configuration#

Identifier Source पंक्ति भूमिका
bcr_read_ui_params() modules/_shared/_ui_state.R 60 Configuration layer का internal helper।
bcr_capture_params() modules/_shared/_ui_state.R 96 Configuration layer का internal helper।

6.2. Files और serialization#

Identifier Source पंक्ति भूमिका
bcr_ui_state_path() modules/_shared/_ui_state.R 26 Files और serialization layer का internal helper।

6.3. General#

Identifier Source पंक्ति भूमिका
mod_description_server() modules/description/mod_description_server.R 3 General layer का internal helper।
tr() modules/description/mod_description_server.R 24 General layer का internal helper।
tr_tokens() modules/description/mod_description_server.R 34 General layer का internal helper।
tr_signal() modules/description/mod_description_server.R 36 General layer का internal helper।
first_non_na() modules/description/mod_description_server.R 65 General layer का internal helper।
stat_or_na() modules/description/mod_description_server.R 72 General layer का internal helper।
iqr_outlier_flag() modules/description/mod_description_server.R 86 Atypical values चिन्हित करने के लिए Tukey की 1.5-IQR rule लागू करता है।
iqr_distance_score() modules/description/mod_description_server.R 98 General layer का internal helper।
scale_01() modules/description/mod_description_server.R 125 General layer का internal helper।
alert_item() modules/description/mod_description_server.R 205 General layer का internal helper।
desc_plot() modules/description/mod_description_server.R 300 General layer का internal helper।
empty_plot() modules/description/mod_description_server.R 359 General layer का internal helper।
dt_opts() modules/description/mod_description_server.R 388 General layer का internal helper।
datatable_modern() modules/description/mod_description_server.R 401 General layer का internal helper।
get_otu_taxa_rows() modules/description/mod_description_server.R 413 OTU table निकालकर taxa को अस्थायी रूप से rows में रखता है।
get_sample_metadata() modules/description/mod_description_server.R 423 General layer का internal helper।
get_seq_df() modules/description/mod_description_server.R 449 Reference sequences की length और GC composition निकालता है।
get_asv_metrics() modules/description/mod_description_server.R 471 General layer का internal helper।
get_sample_metrics() modules/description/mod_description_server.R 494 हर sample के reads, observed richness, dominance और zero proportion की गणना करता है।
get_group_var_choices() modules/description/mod_description_server.R 530 General layer का internal helper।
get_grouped_sample_df() modules/description/mod_description_server.R 542 General layer का internal helper।
get_table_otu_df() modules/description/mod_description_server.R 555 General layer का internal helper।
get_table_tax_df() modules/description/mod_description_server.R 561 General layer का internal helper।
get_table_meta_df() modules/description/mod_description_server.R 569 General layer का internal helper।
get_log_export_df() modules/description/mod_description_server.R 573 General layer का internal helper।
get_tax_missingness_df() modules/description/mod_description_server.R 607 General layer का internal helper।
get_meta_missingness_df() modules/description/mod_description_server.R 633 General layer का internal helper।
kv_block() modules/description/mod_description_server.R 835 General layer का internal helper।
refresh_group_var_picker() modules/description/mod_description_server.R 1036 General layer का internal helper।
group_violin_plot() modules/description/mod_description_server.R 1538 General layer का internal helper।
bar_compare_plot() modules/description/mod_description_server.R 2641 General layer का internal helper।
bcr_bind_active_picker() modules/_shared/_active_dataset_sync.R 30 Description picker को global active dataset से synchronize करता है।
bcr_follow_active_picker() modules/_shared/_active_dataset_sync.R 51 General layer का internal helper।
bcr_is_nav_input() modules/_shared/_ui_state.R 34 General layer का internal helper।
bcr_capture_nav() modules/_shared/_ui_state.R 40 General layer का internal helper।
bcr_is_param_input() modules/_shared/_ui_state.R 89 General layer का internal helper।
.bcr_session_token() modules/_shared/_ui_state.R 132 General layer का internal helper।
bcr_restore_param() modules/_shared/_ui_state.R 165 General layer का internal helper।
bcr_restore_module_inputs() modules/_shared/_ui_state.R 233 General layer का internal helper।
bcr_apply_nav() modules/_shared/_ui_state.R 310 General layer का internal helper।

6.4. UI / rendering#

Identifier Source पंक्ति भूमिका
build_outlier_reason() modules/description/mod_description_server.R 113 UI / rendering layer का internal helper।
build_group_palette() modules/description/mod_description_server.R 141 UI / rendering layer का internal helper।
status_pill() modules/description/mod_description_server.R 149 UI / rendering layer का internal helper।
metric_card() modules/description/mod_description_server.R 155 UI / rendering layer का internal helper।
mini_card() modules/description/mod_description_server.R 164 UI / rendering layer का internal helper।
outlier_stat_card() modules/description/mod_description_server.R 173 UI / rendering layer का internal helper।
quick_card() modules/description/mod_description_server.R 189 UI / rendering layer का internal helper।
panel_card() modules/description/mod_description_server.R 197 UI / rendering layer का internal helper।
bcr_read_ui_state() modules/_shared/_ui_state.R 51 UI / rendering layer का internal helper।
bcr_ui_state_prime() modules/_shared/_ui_state.R 140 UI / rendering layer का internal helper।
bcr_write_ui_state() modules/_shared/_ui_state.R 286 UI / rendering layer का internal helper।

6.5. Validation / formatting#

Identifier Source पंक्ति भूमिका
fmt_number() modules/description/mod_description_server.R 50 Validation / formatting layer का internal helper।
fmt_pct() modules/description/mod_description_server.R 60 Validation / formatting layer का internal helper।
sanitize_display_names() modules/description/mod_description_server.R 132 Validation / formatting layer का internal helper।
normalize_plot_title() modules/description/mod_description_server.R 219 Validation / formatting layer का internal helper।
normalize_plot_axis() modules/description/mod_description_server.R 254 Validation / formatting layer का internal helper।
normalize_plot_legend() modules/description/mod_description_server.R 283 Validation / formatting layer का internal helper।
fmt_val() modules/description/mod_description_server.R 830 Validation / formatting layer का internal helper।

6.6. Phyloseq / datasets#

Identifier Source पंक्ति भूमिका
compute_dataset_stats() modules/description/mod_description_server.R 657 Dataset dimensions, sparsity, completeness और global metrics को aggregate करता है।
build_dataset_story() modules/description/mod_description_server.R 744 Phyloseq / datasets layer का internal helper।