Opened 7 years ago
Last modified 3 years ago
#774 _started enhancement
allow custom node-IDs during tree-import
Reported by: | westram | Owned by: | westram |
---|---|---|---|
Priority: | major | Milestone: | wishlist |
Component: | Library (DB) | Version: | SVN |
Keywords: | Cc: | jgerken@… |
Description (last modified by westram)
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
- if not specified ⇒ use ID as found in
- 2nd expression creates a unique ID from every species existing in the
- if not specified ⇒ use 'name' field as ID
- 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
- wherever both generated IDs match or (alternatively)
- one ID is contained in other ID.
- create zombies and warn on mismatch.
The method described above can be applied
- to all leaf labels of imported or
- to all zombie labels of any existing .
Notes:
- allow to define ACI expressions via import GUI
- allow to specify ACI expressions via arb_read_tree CLI
Example ACI (2nd expression) to generate IDs:
readdb("acc");".";readdb("start");".";readdb("stop")|merge
Related:
- allow to specify an explicit ACI in -exporter
- use as alternative to NDS-label
- these ACIs are identical to 2nd expression for import above
⇒ use same config manager?
Change History (6)
comment:1 Changed 7 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 7 years ago by westram
- Milestone set to proposals
comment:3 Changed 7 years ago by westram
- Milestone changed from proposals to wishlist
comment:4 Changed 3 years ago by westram
- Owner changed from devel to westram
- Status changed from new to _started
comment:5 Changed 3 years ago by westram
- Description modified (diff)
comment:6 Changed 3 years ago by westram
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.