mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
- Add new `--tax-id` mode (`obiconvert --raw-taxid`) to output bare numeric taxIDs instead of full-format strings. - Introduce `TaxNode.FullString()` to always return the complete "code:id [name]@rank" format, regardless of global `UseRawTaxids()` setting. - Update `.String(taxonomyCode)` to respect the global flag, returning bare ID when `--raw-taxid` is active. - Extract raw taxID from full-format strings in taxonomy methods when needed (e.g., fallback without loaded DB). - Add comprehensive test suite covering: a) `--raw-taxid` execution and idempotency b) full-format taxID output with `--taxonomy` c interaction of both flags d format validation - Add test data: new reference files `out_ecotag.fasta`, taxonomy.csv, and updated shell script.
3.9 KiB
3.9 KiB
| 1 | taxid | parent | taxonomic_rank | scientific_name |
|---|---|---|---|---|
| 2 | taxon:1 [root]@no rank | taxon:1 [root]@no rank | no rank | root |
| 3 | taxon:131567 [cellular organisms]@cellular root | taxon:1 [root]@no rank | cellular root | cellular organisms |
| 4 | taxon:2759 [Eukaryota]@domain | taxon:131567 [cellular organisms]@cellular root | domain | Eukaryota |
| 5 | taxon:33154 [Opisthokonta]@clade | taxon:2759 [Eukaryota]@domain | clade | Opisthokonta |
| 6 | taxon:33208 [Metazoa]@kingdom | taxon:33154 [Opisthokonta]@clade | kingdom | Metazoa |
| 7 | taxon:6072 [Eumetazoa]@clade | taxon:33208 [Metazoa]@kingdom | clade | Eumetazoa |
| 8 | taxon:33213 [Bilateria]@clade | taxon:6072 [Eumetazoa]@clade | clade | Bilateria |
| 9 | taxon:33511 [Deuterostomia]@clade | taxon:33213 [Bilateria]@clade | clade | Deuterostomia |
| 10 | taxon:7711 [Chordata]@phylum | taxon:33511 [Deuterostomia]@clade | phylum | Chordata |
| 11 | taxon:89593 [Craniata]@subphylum | taxon:7711 [Chordata]@phylum | subphylum | Craniata |
| 12 | taxon:7742 [Vertebrata]@clade | taxon:89593 [Craniata]@subphylum | clade | Vertebrata |
| 13 | taxon:7776 [Gnathostomata]@clade | taxon:7742 [Vertebrata]@clade | clade | Gnathostomata |
| 14 | taxon:117570 [Teleostomi]@clade | taxon:7776 [Gnathostomata]@clade | clade | Teleostomi |
| 15 | taxon:117571 [Euteleostomi]@clade | taxon:117570 [Teleostomi]@clade | clade | Euteleostomi |
| 16 | taxon:8287 [Sarcopterygii]@superclass | taxon:117571 [Euteleostomi]@clade | superclass | Sarcopterygii |
| 17 | taxon:1338369 [Dipnotetrapodomorpha]@clade | taxon:8287 [Sarcopterygii]@superclass | clade | Dipnotetrapodomorpha |
| 18 | taxon:32523 [Tetrapoda]@clade | taxon:1338369 [Dipnotetrapodomorpha]@clade | clade | Tetrapoda |
| 19 | taxon:32524 [Amniota]@clade | taxon:32523 [Tetrapoda]@clade | clade | Amniota |
| 20 | taxon:40674 [Mammalia]@class | taxon:32524 [Amniota]@clade | class | Mammalia |
| 21 | taxon:32525 [Theria]@clade | taxon:40674 [Mammalia]@class | clade | Theria |
| 22 | taxon:9347 [Eutheria]@clade | taxon:32525 [Theria]@clade | clade | Eutheria |
| 23 | taxon:1437010 [Boreoeutheria]@clade | taxon:9347 [Eutheria]@clade | clade | Boreoeutheria |
| 24 | taxon:314146 [Euarchontoglires]@superorder | taxon:1437010 [Boreoeutheria]@clade | superorder | Euarchontoglires |
| 25 | taxon:314145 [Laurasiatheria]@superorder | taxon:1437010 [Boreoeutheria]@clade | superorder | Laurasiatheria |
| 26 | taxon:33554 [Carnivora]@order | taxon:314145 [Laurasiatheria]@superorder | order | Carnivora |
| 27 | taxon:91561 [Artiodactyla]@order | taxon:314145 [Laurasiatheria]@superorder | order | Artiodactyla |
| 28 | taxon:314147 [Glires]@clade | taxon:314146 [Euarchontoglires]@superorder | clade | Glires |
| 29 | taxon:9845 [Ruminantia]@suborder | taxon:91561 [Artiodactyla]@order | suborder | Ruminantia |
| 30 | taxon:35500 [Pecora]@infraorder | taxon:9845 [Ruminantia]@suborder | infraorder | Pecora |
| 31 | taxon:9989 [Rodentia]@order | taxon:314147 [Glires]@clade | order | Rodentia |
| 32 | taxon:379584 [Caniformia]@suborder | taxon:33554 [Carnivora]@order | suborder | Caniformia |
| 33 | taxon:9608 [Canidae]@family | taxon:379584 [Caniformia]@suborder | family | Canidae |
| 34 | taxon:9850 [Cervidae]@family | taxon:35500 [Pecora]@infraorder | family | Cervidae |
| 35 | taxon:9881 [Odocoileinae]@subfamily | taxon:9850 [Cervidae]@family | subfamily | Odocoileinae |
| 36 | taxon:33553 [Sciuromorpha]@suborder | taxon:9989 [Rodentia]@order | suborder | Sciuromorpha |
| 37 | taxon:55153 [Sciuridae]@family | taxon:33553 [Sciuromorpha]@suborder | family | Sciuridae |
| 38 | taxon:34878 [Cervinae]@subfamily | taxon:9850 [Cervidae]@family | subfamily | Cervinae |
| 39 | taxon:9611 [Canis]@genus | taxon:9608 [Canidae]@family | genus | Canis |
| 40 | taxon:9857 [Capreolus]@genus | taxon:9881 [Odocoileinae]@subfamily | genus | Capreolus |
| 41 | taxon:9612 [Canis lupus]@species | taxon:9611 [Canis]@genus | species | Canis lupus |
| 42 | taxon:337726 [Xerinae]@subfamily | taxon:55153 [Sciuridae]@family | subfamily | Xerinae |
| 43 | taxon:9859 [Cervus]@genus | taxon:34878 [Cervinae]@subfamily | genus | Cervus |
| 44 | taxon:337730 [Marmotini]@tribe | taxon:337726 [Xerinae]@subfamily | tribe | Marmotini |
| 45 | taxon:9992 [Marmota]@genus | taxon:337730 [Marmotini]@tribe | genus | Marmota |
| 46 | taxon:9860 [Cervus elaphus]@species | taxon:9859 [Cervus]@genus | species | Cervus elaphus |
| 47 | taxon:9615 [Canis lupus familiaris]@subspecies | taxon:9612 [Canis lupus]@species | subspecies | Canis lupus familiaris |
| 48 | taxon:9858 [Capreolus capreolus]@species | taxon:9857 [Capreolus]@genus | species | Capreolus capreolus |