[BioPython] Helping out...

Jeffrey Chang jchang at smi.stanford.edu
Mon Feb 10 17:39:42 EST 2003


There's code to download both GenBank and PubMed ids.  A script that
will download the ids given accessions from a file should be trivial
(untested):

from Bio import GenBank
ids = [x.strip() for x in open("FILENAME")]
def print_rec(rec):
  print rec
GenBank.download_many(ids, print_rec)

Andrew Dalke has an EUtils package that might be helpful if you need
to do more sophisticated things.

Jeff


On Mon, Feb 10, 2003 at 05:25:12PM -0800, Sep Dadsetan wrote:
> Hey,
>     I wanted to know if anybody has written a module or script that 
> does batch retrieval from Entrez given a list of accession numbers from 
> a file?
> 
> Thanks!
> 
> Sep
> 
> _______________________________________________
> BioPython mailing list  -  BioPython at biopython.org
> http://biopython.org/mailman/listinfo/biopython


More information about the BioPython mailing list