This is a test version of Biostars. For the public version, visit https://www.biostars.org.
retrieve assembly accession from genome accession

I have a file containing the list of genome accession numbers (JADIXX000000000) , and I need to get the corresponding assembly accession numbers(GCA_016705575). Which database API should I use? Does anybody know the command that I can use for this purpose?

assembly genomics

1 answer

Using EntrezDirect

$ esearch -db assembly -query JADIXX000000000 | efetch -format docsum | xtract -pattern DocumentSummary -element Genbank
GCA_016705575.1

Thank you very much, it works well. Then i will try to use a script to conduct the transition

Log in to answer this question.