Re: [Seqan-dev] readRecord error


Hi Daniel,

if possible then please use English.

Can you send the FASTA file (or a part that gives you problems) to the list together with the .cpp program so we can have a look?

Thanks,
Manuel
________________________________________
From: Bartha Dániel [daniel.bartha@gmail.com]
Sent: Monday, July 15, 2013 5:34 PM
To: seqan-dev@lists.fu-berlin.de
Subject: [Seqan-dev] readRecord error

Greetings Everyone,

i am quite new by sequan, and i have a problem.

I want to use the the readRecord function. I the tutorials and the
documentation, and made a simple program:

   SequenceStream inStream(argv[1]);
    if ( isGood(inStream) )
    {
    while ( !atEnd(inStream) )
    {
    String<char> id;
    String<Dna5> seq;
    if (readRecord(id, seq, inStream) != 0){std::cerr << "ERROR:
readRecord\n";return 1;}

        (...)
    }
    }

I read from a fasta file, and make something with the sequences at
character level, it doesn't matter, what. The two first sequences
are readed, but then i get my error message, independent from the
content of the third record, for example even if i copy the first
record after the second, it is the same.

is there a special behaviour of the fasta parsing i have to know, or
do i make something wrong? I use linux, i wrote a simple console
application, and the its input independent as far as i see.

And an other question: is the german language allowed on this mailing list?

Many-many thanks!

Daniel

Live long and prosper
Bartha Dániel
MTA-VMRI, 2013

_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev