[Biopython] SeqIO fasta "fakes" recognition
Hernán Morales Durand
hernan.morales at gmail.com
Mon Mar 19 22:52:46 EDT 2012
Why don't you filter for file names ended with fasta known extensions?
(.fa, .fasta, etc.)
2012/2/23 Marco Galardini <marco.galardini at unifi.it>
> 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<http://www.unifi.it/dblage/CMpro-v-p-51.html>
> phone: +39 055 2288249
> mobile: +39 340 2808041
> ------------------------------**-------------------
>
> ______________________________**_________________
> Biopython mailing list - Biopython at lists.open-bio.org
> http://lists.open-bio.org/**mailman/listinfo/biopython<http://lists.open-bio.org/mailman/listinfo/biopython>
>
--
Hernán Morales
Institute of Veterinary Genetics.
National Scientific and Technical Research Council (CONICET).
La Plata (1900), Buenos Aires, Argentina.
Telephone: +54 (0221) 421-1799.
Internal: 422
Fax: 425-7980 or 421-1799.
More information about the Biopython
mailing list