Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Reading a fasta file which is not encoded in ansi: msg#00043

java.bio.general

Subject: Re: Reading a fasta file which is not encoded in ansi

I've no idea what binary format that file is in - it contains some very
strange characters. It appears to contain _some_ ANSI data but with
extra binary bits added to the start and end. I think you need to check
the program that generated the file as it is obviously not doing what it
is supposed to.

Your best bet is to convert the file to ANSI or some other format
understood out-of-the-box by Java.

cheers,
Richard

On Fri, 2006-04-28 at 11:09 +0200, Ilhami Visne wrote:
> 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
> 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.
>
> _______________________________________________
> Biojava-l mailing list - Biojava-l@xxxxxxxxxxxxxxxxxx
> http://lists.open-bio.org/mailman/listinfo/biojava-l
>
--
Richard Holland (BioMart Team)
EMBL-EBI
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD
UNITED KINGDOM
Tel: +44-(0)1223-494416

_______________________________________________
Biojava-l mailing list - Biojava-l@xxxxxxxxxxxxxxxxxx
http://lists.open-bio.org/mailman/listinfo/biojava-l
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo