[Biojava-l] Reading a fasta file which is not encoded in ansi

Ilhami Visne ilhami.visne at gmail.com
Fri Apr 28 09:29:07 UTC 2006


i got a file in fasta format, which is not encoded in ansi. but it seems ok.
it can be downloaded here:
http://stud3.tuwien.ac.at/~e0125935/try3.fasta<http://stud3.tuwien.ac.at/%7Ee0125935/try3.fasta>
i tried to read it with SeqIOTools.readFastaDNA and this exception was
thrown:

org.biojava.bio.BioException: Could not read sequence
    at org.biojava.bio.seq.io.StreamReader.nextSequence(StreamReader.java
:104)
..............
..............
Caused by: java.io.IOException: Stream does not appear to contain FASTA
formatted data: ÿþ>
org.biojava.bio.seq.io.FastaFormat.readSequence(FastaFormat.java:112)
 at org.biojava.bio.seq.io.StreamReader.nextSequence (StreamReader.java:101)

"ÿþ>" there is no row like this but it seems it is hidden.

How should i handle such files?

thax in advance.




More information about the Biojava-l mailing list