I want to use a list of genes symbols in the search in a pubmed database (named below) (end In) regain the DNA sequence of the associated gene. I want to restrict my search to humans only but my current code gives me other creatures besides humans. Bio Import Entrez Entrez.email = '...' #my Email: Always tell Entry to which For ([FOXO3 '] I in Range (lane)): Search =' human [orgn] '+ i [i] handle = enterage. Search (db = 'genes', word = search) record = enterres. Reed (handle) T = record [u'identlist] handle = entre .effetch ('nucleotide', id = t [0], rettype = 'gb', retmode = 'text') print handle.read ()
Can anyone see where I am going wrong?
You are messing up the database. In the search you use db = gene
, but in efetch you change it to db = nucleotide
. They are different things:
Comments
Post a Comment