डेटा संपादन — तकनीकी संदर्भ
इस BarCodeR संस्करण में मौजूद वास्तविक कोड से बनाया गया तकनीकी इन्वेंटरी।
यह पृष्ठ documentation-src/build_docs.py द्वारा दोबारा बनाया जाता है। Function names, identifiers और line numbers वर्तमान source code से आते हैं।
1. स्रोत फ़ाइलें#
| भूमिका | Path |
|---|---|
| Main interface | modules/dataedition/mod_dataedition_main_ui.R |
| Main server and edit log | modules/dataedition/mod_dataedition_main_server.R |
| Metadata editor | modules/dataedition/edit_metadata/ |
| OTU editor | modules/dataedition/edit_otu/ |
| Taxonomy editor | modules/dataedition/edit_taxonomy/ |
| Full component import/export/deletion | modules/dataedition/input_tables/ |
| Active-dataset synchronization | modules/_shared/_active_dataset_sync.R |
| Dataset naming | modules/_shared/_dataset_naming.R |
| Application integration | app.R |
| Documentation source | documentation-src/hi/data-edition/ |
| Generated documentation | www/documentation/hi/data-edition/ |
2. आर्किटेक्चर और मुख्य डेटा प्रवाह#
datasets() + active_ds()
→ selected_dataset
→ metadata / OTU / taxonomy local editor state
→ immediate apply to the phyloseq object
→ datasets() replacement
→ edit_log append
→ explicit project save in Datasets
full component import
→ fileInput selection
→ identifier and coverage checks
→ slot replacement
→ local editors must be refreshed
2.1. Reactive state और memory#
| Identifier | भूमिका |
|---|---|
selected_dataset |
active_ds() के साथ synchronized संपादित dataset। |
edit_log |
Operations की descriptive audit entries रखने वाला phyloseq attribute। |
initial_data / previous_data |
हर submodule में Reset और Undo के local states। |
tax_edit_info_seen |
Taxonomy-edit warning दिखाया गया या नहीं। |
replacement_preview |
Replacement patterns से मेल खाने वाली taxonomy cells की सूची। |
pending_save_label |
Overwrite confirmation की प्रतीक्षा कर रहा cleaned name। |
2.2. Traceability chains#
cell / structure action
→ capture previous local state
→ rebuild sample_data / otu_table / tax_table
→ update datasets()[selected_dataset]
→ append edit_log
→ mark project unsaved
Save under another name
→ edited source already changed
→ copy current edited state to a new registry key
→ new key becomes active
→ project still requires explicit disk save
3. Shiny inputs#
| Identifier | Widget | UI Source | Server references |
|---|---|---|---|
add_col_btn |
actionButton |
mod_edit_metadata_ui.R:155 |
mod_edit_metadata_server.R:450, mod_edit_otu_server.R:545, mod_edit_taxonomy_server.R:580 |
apply_asv_rename_btn |
actionButton |
mod_edit_otu_ui.R:185 |
mod_edit_otu_server.R:889 |
apply_csv_btn |
actionButton |
mod_edit_metadata_ui.R:244 |
mod_edit_metadata_server.R:800 |
apply_csv_otu_btn |
actionButton |
mod_edit_otu_ui.R:241 |
mod_edit_otu_server.R:807 |
apply_csv_tax_btn |
actionButton |
mod_edit_taxonomy_ui.R:290 |
mod_edit_taxonomy_server.R:814 |
apply_remove |
server-only / dynamic |
mod_dataedition_input_tables_server.R:610 |
|
apply_replace_btn |
actionButton |
mod_edit_taxonomy_ui.R:239 |
mod_edit_taxonomy_server.R:1004 |
asv_in_cols |
server-only / dynamic |
mod_edit_otu_server.R:864, mod_edit_otu_server.R:899 |
|
confirm_apply_replace_btn |
actionButton |
mod_edit_taxonomy_server.R:956 |
mod_edit_taxonomy_server.R:963 |
confirm_del_suggest_btn |
actionButton |
mod_edit_metadata_server.R:600 |
mod_edit_metadata_server.R:653, mod_edit_otu_server.R:727, mod_edit_taxonomy_server.R:764 |
confirm_overwrite_registry |
actionButton |
mod_dataedition_main_server.R:355 |
mod_dataedition_main_server.R:374 |
confirm_remove |
server-only / dynamic |
mod_dataedition_input_tables_server.R:673 |
|
csv_row_names |
server-only / dynamic |
mod_edit_metadata_server.R:808 |
|
csv_sep |
selectInput |
mod_edit_metadata_ui.R:220 |
mod_edit_metadata_server.R:773, mod_edit_metadata_server.R:807, mod_edit_metadata_server.R:865 |
del_col |
textInput |
mod_edit_metadata_ui.R:159 |
mod_edit_metadata_server.R:544, mod_edit_otu_server.R:631, mod_edit_taxonomy_server.R:666 |
del_col_btn |
actionButton |
mod_edit_metadata_ui.R:160 |
mod_edit_metadata_server.R:540, mod_edit_otu_server.R:627, mod_edit_taxonomy_server.R:661 |
empty_patterns |
server-only / dynamic |
mod_edit_taxonomy_server.R:880, mod_edit_taxonomy_server.R:969 |
|
export_meta_csv |
downloadButton |
mod_dataedition_input_tables_ui.R:215 |
|
export_otu |
downloadButton |
mod_dataedition_input_tables_ui.R:219 |
|
export_refseq_fasta |
downloadButton |
mod_dataedition_input_tables_ui.R:232 |
|
export_tax |
downloadButton |
mod_dataedition_input_tables_ui.R:223 |
|
export_tree_nwk |
downloadButton |
mod_dataedition_input_tables_ui.R:236 |
|
import_meta_file |
server-only / dynamic |
mod_dataedition_input_tables_server.R:563 |
|
import_otu_file |
server-only / dynamic |
mod_dataedition_input_tables_server.R:564 |
|
import_refseq_file |
server-only / dynamic |
mod_dataedition_input_tables_server.R:566 |
|
import_tax_file |
server-only / dynamic |
mod_dataedition_input_tables_server.R:565 |
|
import_tree_file |
server-only / dynamic |
mod_dataedition_input_tables_server.R:567 |
|
meta_file |
fileInput |
mod_edit_metadata_ui.R:212 |
mod_edit_metadata_server.R:765, mod_edit_metadata_server.R:766, mod_edit_metadata_server.R:802 |
meta_table_editable_cell_edit |
server-only / dynamic |
mod_edit_metadata_server.R:379, mod_edit_metadata_server.R:380 |
|
new_col |
textInput |
mod_edit_metadata_ui.R:154 |
mod_edit_metadata_server.R:454, mod_edit_otu_server.R:549, mod_edit_taxonomy_server.R:585 |
otu_csv_row_names |
server-only / dynamic |
mod_edit_otu_server.R:816 |
|
otu_csv_sep |
selectInput |
mod_edit_otu_ui.R:217 |
mod_edit_otu_server.R:784, mod_edit_otu_server.R:815, mod_edit_otu_server.R:883 |
otu_file |
fileInput |
mod_edit_otu_ui.R:213 |
mod_edit_otu_server.R:777, mod_edit_otu_server.R:778, mod_edit_otu_server.R:809 |
otu_table_editable_cell_edit |
server-only / dynamic |
mod_edit_otu_server.R:506, mod_edit_otu_server.R:507 |
|
preview_replace_btn |
actionButton |
mod_edit_taxonomy_ui.R:233 |
mod_edit_taxonomy_server.R:877, mod_edit_taxonomy_server.R:1005 |
rename_asv_prefix |
textInput |
mod_edit_otu_ui.R:180 |
mod_edit_otu_server.R:891 |
rename_col_btn |
actionButton |
mod_edit_metadata_ui.R:198 |
mod_edit_metadata_server.R:296 |
rename_new_col |
textInput |
mod_edit_metadata_ui.R:189 |
mod_edit_metadata_server.R:300 |
rename_old_col |
selectInput |
mod_edit_metadata_ui.R:180 |
mod_edit_metadata_server.R:238, mod_edit_metadata_server.R:299 |
replace_value |
textInput |
mod_edit_taxonomy_ui.R:224 |
mod_edit_taxonomy_server.R:881, mod_edit_taxonomy_server.R:970 |
reset_btn |
actionButton |
mod_edit_metadata_ui.R:170 |
mod_edit_metadata_server.R:689, mod_edit_otu_server.R:763, mod_edit_taxonomy_server.R:800 |
save_label |
textInput |
mod_dataedition_main_ui.R:156 |
mod_dataedition_main_server.R:276, mod_dataedition_main_server.R:300 |
save_to_registry |
actionButton |
mod_dataedition_main_ui.R:165 |
mod_dataedition_main_server.R:294 |
selected_dataset |
server-only / dynamic |
mod_dataedition_main_server.R:218, mod_dataedition_main_server.R:232 |
|
sort_by_asv |
checkboxInput |
mod_edit_otu_ui.R:252 |
mod_edit_otu_server.R:474, mod_edit_otu_server.R:514, mod_edit_taxonomy_server.R:515, mod_edit_taxonomy_server.R:552 |
tables_to_remove |
server-only / dynamic |
mod_dataedition_input_tables_server.R:619 |
|
tax_csv_row_names |
server-only / dynamic |
mod_edit_taxonomy_server.R:825 |
|
tax_csv_sep |
selectInput |
mod_edit_taxonomy_ui.R:266 |
mod_edit_taxonomy_server.R:824, mod_edit_taxonomy_server.R:1102 |
tax_file |
fileInput |
mod_edit_taxonomy_ui.R:258 |
mod_edit_taxonomy_server.R:818 |
tax_table_editable_cell_edit |
server-only / dynamic |
mod_edit_taxonomy_server.R:545, mod_edit_taxonomy_server.R:548 |
|
undo_btn |
actionButton |
mod_edit_metadata_ui.R:165 |
mod_edit_metadata_server.R:679, mod_edit_otu_server.R:753, mod_edit_taxonomy_server.R:789 |
4. Shiny outputs#
| Identifier | Widget | UI Source | Server references |
|---|---|---|---|
add_feedback |
rendered output |
mod_dataedition_input_tables_server.R:552 |
|
asv_axis_info |
uiOutput |
mod_edit_otu_ui.R:203 |
mod_edit_otu_server.R:863 |
export_meta_csv |
downloadButton |
mod_dataedition_input_tables_ui.R:215 |
mod_dataedition_input_tables_server.R:116 |
export_otu |
downloadButton |
mod_dataedition_input_tables_ui.R:219 |
mod_dataedition_input_tables_server.R:162 |
export_refseq_fasta |
downloadButton |
mod_dataedition_input_tables_ui.R:232 |
mod_dataedition_input_tables_server.R:243 |
export_tax |
downloadButton |
mod_dataedition_input_tables_ui.R:223 |
mod_dataedition_input_tables_server.R:202 |
export_tree_nwk |
downloadButton |
mod_dataedition_input_tables_ui.R:236 |
mod_dataedition_input_tables_server.R:272 |
full_history_log |
rendered output |
mod_dataedition_main_server.R:253 |
|
global_log |
rendered output |
mod_dataedition_main_server.R:263 |
|
meta_log |
rendered output |
mod_edit_metadata_server.R:871 |
|
meta_table_editable |
DTOutput |
mod_edit_metadata_ui.R:257 |
mod_edit_metadata_server.R:357 |
otu_log |
rendered output |
mod_edit_otu_server.R:870 |
|
otu_table_editable |
DTOutput |
mod_edit_otu_ui.R:261 |
mod_edit_otu_server.R:468 |
remove_feedback |
rendered output |
mod_dataedition_input_tables_server.R:782 |
|
replace_preview_ui |
uiOutput |
mod_edit_taxonomy_ui.R:249 |
mod_edit_taxonomy_server.R:1009 |
save_label_warning |
rendered output |
mod_dataedition_main_server.R:273 |
|
summary_log |
rendered output |
mod_dataedition_main_server.R:243 |
|
tax_log |
rendered output |
mod_edit_taxonomy_server.R:1107 |
|
tax_table_editable |
DTOutput |
mod_edit_taxonomy_ui.R:310 |
mod_edit_taxonomy_server.R:512 |
ui_remove_tables |
uiOutput |
mod_dataedition_input_tables_ui.R:247 |
mod_dataedition_input_tables_server.R:593 |
5. Validation और integrity guard#
| Control | Function | Effect |
|---|---|---|
| Active synchronization | bcr_bind_active_picker() |
Data Edition picker को global active dataset से जोड़ता है। |
| Immediate application | apply_*() functions |
हर action पर phyloseq component और datasets() पुनर्लिखे जाते हैं। |
| Audit trail | add_edit_log() |
Previous object का full snapshot रखे बिना descriptive entry जोड़ता है। |
| Numeric OTU | matrix/numeric conversion | Non-convertible values NA बनते हैं और warning आती है। |
| RefSeq / tree | post-OTU realignment | सभी taxa cover न होने पर component reorder या remove होता है। |
| Full import | fileInput handlers | File चुनते ही selected slot replace होता है, general preview नहीं है। |
| Registry save | save_to_registry |
Registry entry copy/overwrite करता है; project disk पर persist नहीं करता। |
6. आंतरिक functions#
6.1. General#
| Identifier | Source | पंक्ति | भूमिका |
|---|---|---|---|
mod_dataedition_main_server() |
modules/dataedition/mod_dataedition_main_server.R |
3 | General layer का internal helper। |
tr() |
modules/dataedition/mod_dataedition_main_server.R |
13 | General layer का internal helper। |
make_code_chip_list() |
modules/dataedition/mod_dataedition_main_server.R |
57 | General layer का internal helper। |
log_append() |
modules/dataedition/mod_dataedition_main_server.R |
163 | General layer का internal helper। |
mod_edit_metadata_server() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
1 | General layer का internal helper। |
tr() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
9 | General layer का internal helper। |
make_issue_list() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
56 | General layer का internal helper। |
make_code_chip_list() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
62 | General layer का internal helper। |
detect_meta_empty_issues() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
126 | General layer का internal helper। |
is_numeric_like() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
152 | General layer का internal helper। |
apply_meta() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
160 | General layer का internal helper। |
detect_delimiter() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
702 | General layer का internal helper। |
strip_quoted() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
714 | General layer का internal helper। |
mode_value() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
719 | General layer का internal helper। |
score_one() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
724 | General layer का internal helper। |
sep_label() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
758 | General layer का internal helper। |
mod_edit_otu_server() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
1 | General layer का internal helper। |
tr() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
8 | General layer का internal helper। |
make_issue_list() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
56 | General layer का internal helper। |
make_code_chip_list() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
62 | General layer का internal helper। |
get_refseq_aligned() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
84 | General layer का internal helper। |
detect_delimiter() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
151 | General layer का internal helper। |
strip_quoted() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
161 | General layer का internal helper। |
mode_value() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
166 | General layer का internal helper। |
score_one() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
171 | General layer का internal helper। |
sep_label() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
191 | General layer का internal helper। |
detect_otu_issues() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
198 | General layer का internal helper। |
align_refseq_to_taxa() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
290 | General layer का internal helper। |
align_tree_to_taxa() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
319 | General layer का internal helper। |
apply_otu() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
350 | General layer का internal helper। |
asv_order_natural() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
460 | General layer का internal helper। |
mod_edit_taxonomy_server() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
3 | General layer का internal helper। |
tr() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
11 | General layer का internal helper। |
make_issue_list() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
61 | General layer का internal helper। |
make_code_chip_list() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
67 | General layer का internal helper। |
make_report_table() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
88 | General layer का internal helper। |
detect_tax_issues() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
162 | General layer का internal helper। |
ensure_tax_edit_confirmed() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
176 | General layer का internal helper। |
rename_rows() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
393 | General layer का internal helper। |
apply_tax() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
451 | General layer का internal helper। |
extract_asv_num() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
497 | General layer का internal helper। |
order_asv_natural() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
502 | General layer का internal helper। |
mod_dataedition_input_tables_server() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
3 | General layer का internal helper। |
tr() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
10 | General layer का internal helper। |
tr_tokens() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
15 | General layer का internal helper। |
make_code_chip_list() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
67 | General layer का internal helper। |
detect.sep() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
100 | General layer का internal helper। |
do_import() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
305 | General layer का internal helper। |
bcr_bind_active_picker() |
modules/_shared/_active_dataset_sync.R |
30 | General layer का internal helper। |
bcr_follow_active_picker() |
modules/_shared/_active_dataset_sync.R |
51 | General layer का internal helper। |
bcr_make_unique_label() |
modules/_shared/_dataset_naming.R |
35 | General layer का internal helper। |
6.2. UI / rendering#
| Identifier | Source | पंक्ति | भूमिका |
|---|---|---|---|
build_modal_shell() |
modules/dataedition/mod_dataedition_main_server.R |
28 | UI / rendering layer का internal helper। |
make_modal_info_box() |
modules/dataedition/mod_dataedition_main_server.R |
50 | UI / rendering layer का internal helper। |
build_log_line() |
modules/dataedition/mod_dataedition_main_server.R |
68 | UI / rendering layer का internal helper। |
build_full_history_html() |
modules/dataedition/mod_dataedition_main_server.R |
111 | UI / rendering layer का internal helper। |
build_summary_html() |
modules/dataedition/mod_dataedition_main_server.R |
122 | UI / rendering layer का internal helper। |
build_modal_shell() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
24 | UI / rendering layer का internal helper। |
make_modal_info_box() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
74 | UI / rendering layer का internal helper। |
build_modal_shell() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
24 | UI / rendering layer का internal helper। |
make_modal_info_box() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
74 | UI / rendering layer का internal helper। |
build_modal_shell() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
29 | UI / rendering layer का internal helper। |
make_modal_info_box() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
79 | UI / rendering layer का internal helper। |
compute_replace_preview() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
215 | UI / rendering layer का internal helper। |
build_replace_modal_body() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
293 | UI / rendering layer का internal helper। |
build_modal_shell() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
35 | UI / rendering layer का internal helper। |
make_modal_info_box() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
75 | UI / rendering layer का internal helper। |
6.3. Validation / formatting#
| Identifier | Source | पंक्ति | भूमिका |
|---|---|---|---|
fmt_dim() |
modules/dataedition/mod_dataedition_main_server.R |
75 | Validation / formatting layer का internal helper। |
sanitize_metadata() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
83 | Validation / formatting layer का internal helper। |
check_colname_compatibility() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
247 | Validation / formatting layer का internal helper। |
make_safe_name() |
modules/dataedition/edit_metadata/mod_edit_metadata_server.R |
271 | Validation / formatting layer का internal helper। |
check_colname_compatibility() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
107 | Validation / formatting layer का internal helper। |
make_safe_name() |
modules/dataedition/edit_otu/mod_edit_otu_server.R |
128 | Validation / formatting layer का internal helper। |
sanitize_metadata() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
108 | Validation / formatting layer का internal helper। |
check_colname_compatibility() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
119 | Validation / formatting layer का internal helper। |
make_safe_name() |
modules/dataedition/edit_taxonomy/mod_edit_taxonomy_server.R |
140 | Validation / formatting layer का internal helper। |
log_safe() |
modules/dataedition/input_tables/mod_dataedition_input_tables_server.R |
83 | Validation / formatting layer का internal helper। |
bcr_clean_label() |
modules/_shared/_dataset_naming.R |
25 | Validation / formatting layer का internal helper। |