Opened 3 years ago
Last modified 3 years ago
#774 new enhancement
allow custom node-IDs during tree-import
Reported by: | westram | Owned by: | devel |
---|---|---|---|
Priority: | major | Milestone: | wishlist |
Component: | Library (DB) | Version: | SVN |
Keywords: | Cc: | jgerken@… |
Description
Need a possibility to import trees that use alternative IDs at leafs, e.g. 'acc' and/or 'start'/'stop' positions etc.
Possible implementation:
- provide importer with 2 ACI expressions:
- 1st expression creates a unique ID from every leaf ID found in imported
- 2nd expression creates a unique ID from every species existing in the
- 1st expression creates a unique ID from every leaf ID found in imported
- test that all IDs generated by one expression are unique! (or bail out)
- map leafs of imported
to species whereever both generated IDs match. Create zombies and warn on mismatch.
- special cases:
- if 1st expression is not specified ⇒ use ID as found in
- if 2nd expression is not specified ⇒ use 'name' field as ID
- if 1st expression is not specified ⇒ use ID as found in
Notes:
- allow to define ACI expressions via
import GUI
- allow to specify ACI expressions via arb_read_tree CLI
Example ACI to generate IDs:
readdb("acc");".";readdb("start");".";readdb("stop")|merge
Related:
- allow to specify an explicit ACI in
-exporter (instead of NDS)
Change History (3)
comment:1 Changed 3 years ago by westram
- [16866] provides a workaround
- synchronize IDs in original database & save
- run script to generate special IDs (e.g. from field "full_name")
- import
- again synchronize IDs
- export
to file
- quit database without saving
- reload prev. saved database and import
from file
comment:2 Changed 3 years ago by westram
- Milestone set to proposals
comment:3 Changed 3 years ago by westram
- Milestone changed from proposals to wishlist
Note: See
TracTickets for help on using
tickets.