ammaraziz/extract_reads

ancestral taxonid

Opened this issue · 0 comments

The amazing Wei Shen provided advice on how to get the parent or ancestor of taxon ids:

Pure bash:

grep -w ^10245 ~/.taxonkit/nodes.dmp | cut -f 3

taxonkit:

echo 10245 | taxonkit lineage -t | cut -f 3 
10239;2732004;2732005;2732007;2732525;2732527;10240;10241;10242;10245