Opened 5 months ago

Last modified 7 weeks 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@…


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 tree
    • 2nd expression creates a unique ID from every species existing in the DB
  • test that all IDs generated by one expression are unique! (or bail out)
  • map leafs of imported tree 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 tree
    • if 2nd expression is not specified ⇒ use 'name' field as ID


  • allow to define ACI expressions via tree import GUI
  • allow to specify ACI expressions via arb_read_tree CLI

Example ACI to generate IDs:



  • allow to specify an explicit ACI in tree-exporter (instead of NDS)

Change History (3)

comment:1 Changed 3 months 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 tree
    • again synchronize IDs
    • export tree to file
    • quit database without saving
    • reload prev. saved database and import tree from file

comment:2 Changed 3 months ago by westram

  • Milestone set to proposals

comment:3 Changed 7 weeks ago by westram

  • Milestone changed from proposals to wishlist
Note: See TracTickets for help on using tickets.