Skip to content
Jordi Burguet-Castell edited this page Jan 9, 2018 · 1 revision
for line in equery(tool='fetch', db='snp', id='3000'):
    print(line)
  • Get a summary of nucleotides related to accession numbers NC_010611.1 and EU477409.1:
for line in on_search(db='nucleotide',
                      term='NC_010611.1[accn] OR EU477409.1[accn]',
                      tool='summary'):
    print(line)
with open('chimp.fna', 'w') as fout:
    for line in on_search(db='nucleotide',
                          term='chimpanzee[orgn] AND biomol mrna[prop]',
                          tool='fetch', rettype='fasta'):
        fout.write(line + '\n')
Clone this wiki locally