shenwei356 / taxonkit

A Practical and Efficient NCBI Taxonomy Toolkit, also supports creating NCBI-style taxdump files for custom taxonomies like GTDB/ICTV
https://bioinf.shenwei.me/taxonkit
MIT License
378 stars 30 forks source link

Taxid to accession number #104

Closed SergeyBaikal closed 3 weeks ago

SergeyBaikal commented 3 weeks ago

Prerequisites

Describe your issue

Sorry, I can't find the commands to extract the accession number list by taxonomy id. Could you please help with this question?

cat list_Tax_id_viruses_.txt

I'm trying to get that output:

10786 AB000048 AB000049 AB000050 ... 1307956 AB000383 AB000920 ...

shenwei356 commented 3 weeks ago

just use commands like grep -w -f taxids data.tsv or csvtk (https://github.com/shenwei356/csvtk)