[Biopython] Entrez and SeqIO "no records found in handle"
Peter Cock
p.j.a.cock at googlemail.com
Thu Mar 8 10:06:32 UTC 2012
On Wed, Mar 7, 2012 at 8:25 PM, A M Torres, Hugo
<mnemonico at posthocergopropterhoc.net> wrote:
>>
>> Hi Hugo,
>>
>> Getting an error here is good - there were no GenBank formatted records
>> in your file (while there should have been an XML record). Perhaps if
>> we expect this to be a common error a more specific exception would
>> be nicer? e.g. ValueError("This is XML, not GenBank plain text")
>>
>> Maybe I don't understand what you are querying?
>>
>> Peter
>
> You are right. I was expecting to SeqIO to read xml. If I want to parse xml
> it seems I should have used Entrez.read instead.
>
> Sorry for the noise.
No problem - thanks for clarifying this,
Peter
More information about the Biopython
mailing list