[Biopython] fetching chromosome IDs given the organism ID

Vladislav Petyuk petyuk at gmail.com
Thu Nov 17 22:51:38 UTC 2011


I am trying to fetch the chromosome IDs for a given genome.
For example Cyanothece sp 51142 has 2 chromosomes and 4 plasmids
http://www.ncbi.nlm.nih.gov/genome?term=1608%5Buid%5D#tabs-1608-2
The piece of Biopython code that used to work for me is:
#---------------------
url = Entrez.esearch(db="genome", term="txid43989")
record = Entrez.read(url)
chromosomeIDs = record["IdList"]
#---------------------
Not anymore. Now it returns the organism id, which is 1608.
Please point in the right direction how to get the chromosome ids given the
organism id.
For example:
organism id: 1608
chromosomes ids:
NC_010546.1
NC_010547.1
NC_010539.1
NC_010541.1
NC_010542.1
NC_010543.1

Thank you!



More information about the Biopython mailing list