app
MIAPPE Metadata Editor - Dash Web UILink
A web-based UI to view, edit and bulk-fill the MIAPPE-aligned biological
metadata (investigation / study / biologicalMaterial /
observedVariable) of the scans of a local PlantDB (FSDB).
It offers two editing modes:
- a bulk editor to set a single field's value on a chosen subset of scans (all / matching a scan-ID regexp / matching a metadata field value / an explicit checklist), and
- a per-scan editor to inspect and edit the full tree of one scan.
Each field shows the MIAPPE definition as a tooltip on hover, and free-text fields suggest values already used across the database.
Usage exampleLink
metadata_app --db-path /data/ROMI/test_PI3_juillet_Alexis
# then open http://localhost:8050
main
Link
main(db_path, port, debug)
Launch the MIAPPE metadata editor web UI.
Source code in plantdb/client/metadata_app/app.py
688 689 690 691 692 693 694 695 696 697 698 699 | |
render_edit_form
Link
render_edit_form(mode, scan_id, data)
Render the unified field form: values filled for a single scan, placeholders for bulk.
Source code in plantdb/client/metadata_app/app.py
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 | |
scan_checklist
Link
scan_checklist(scan_ids)
Build the scope checklist options for the given scan ids.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
list[str]
|
The scan ids to turn into checklist entries. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, str]]
|
|
Source code in plantdb/client/metadata_app/app.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
set_db_path_from_button
Link
set_db_path_from_button(n_clicks, db_path)
Write the entered path into the store, which triggers loading.
Source code in plantdb/client/metadata_app/app.py
387 388 389 390 391 392 393 394 395 396 397 | |
set_db_path_value
Link
set_db_path_value(db_path)
Update the text input value from the store.
Source code in plantdb/client/metadata_app/app.py
400 401 402 403 404 405 406 407 | |