[BioPython] Problem using efetch
Julius Lucks
lucks at fas.harvard.edu
Thu Feb 22 23:41:05 UTC 2007
Hi Alex,
I am not sure if anyone has addressed your issue. Which module are
you using (i.e. where did you import 'client' from)?
Julius
-----------------------------------------------------
http://openwetware.org/wiki/User:Lucks
-----------------------------------------------------
On Feb 21, 2007, at 1:31 PM, Alex Coventry wrote:
>
> Hi. The following query results in an error message from NCBI:
>
>>>> print client.search('''
> NP_542420
> ATRTC
> ''', db='protein').efetch(retmode='text', rettype='fasta').read()
> ... ... ... ...
> Error: Internal Error
>
> I expected this query to return two sequences in fasta format. The
> same
> query seems to work without problems at
> <http://www.ncbi.nlm.nih.gov/entrez/batchentrez.cgi>.
>
> Searching for either query separately also seems to work. E.g.:
>
>>>> print client.search('''
> ATRTC
> ''', db='protein').efetch(retmode='text',
> rettype='fasta').read()
> ... ... ... >gi|71620|pir||ATRTC actin beta - rat
> MDDDIAALVVDNGSAMCKAGFAGDDAPRAVFPSIVGRPRHQGVMVGMGQKDSYVGDEAQSKRGILTLKYP
> IEHGIVTNWDDMEKIWHHTFYNELRVAPEEHPVLLTEAPLNPKANREKMTQIMFETFNTPAMYVAIQAVL
> SLYASGRTTGIVMDSGDGVTHTVPIYEGYALPHAILRLDLAGRDLTDYLMKILTERGYSFTTTAEREIVR
> DIKEKLCYVALDFEQEMATAASSSSLEKSYELPDGQVITIGNERFRCPEALFQPSFLGMESCGIHETTFN
> SIMKCDVDIRKDLYANTVLSGGTTMYPGIADRMQKEITALAPSTMKIKIIAPPERKYSVWIGGSILASLS
> TFQQMWISKQEYDESGPSIVHRKCF
>
> Am I doing something wrong, here?
>
> Alex
> _______________________________________________
> BioPython mailing list - BioPython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
More information about the Biopython
mailing list