[Biopython] SeqIO fasta "fakes" recognition

Marco Galardini marco.galardini at unifi.it
Thu Feb 23 17:38:26 UTC 2012


On 02/23/2012 05:35 PM, Eric Talevich wrote:
>
> I suppose there's always:
>
> try:
>      record = SeqIO.read("gigo.png", "fasta")
>      assert str(record.seq).isalpha()
> except:
>      # complain...
>
>
Thanks for the hint, I've implemented this (using the parse method) and 
i'll see how it will perform (i guess it will had some overhead).
Marco

-- 
-------------------------------------------------
Marco Galardini
DBE - Department of Evolutionary Biology
University of Florence - Italy

e-mail: marco.galardini at unifi.it
www: http://www.unifi.it/dblage/CMpro-v-p-51.html
phone:  +39 055 2288249
mobile: +39 340 2808041
-------------------------------------------------




More information about the Biopython mailing list