[Seqan-dev] check for errors when reading GTF annotations
- From: Konstantin Okonechnikov <k.okonechnikov@gmail.com>
- To: seqan-dev@lists.fu-berlin.de
- Date: Tue, 16 Oct 2012 18:52:38 +0200
- Reply-to: k.okonechnikov@gmail.com, SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: [Seqan-dev] check for errors when reading GTF annotations
Hi all,
How can I check for errors when reading a GTF file?
I tried checking return value of read() function, but it doesn't compile (see example attached)
Env: Ubuntu Linux 12.04 64bit, GCC 4.6.3
Seqan SVN revision: 13076
Tnx in advance,
Konstantin
#include <cassert> #include <iostream> #include <seqan/store.h> #include <seqan/file.h> using namespace seqan; int main(int argc, char const ** argv) { FragmentStore<> store; std::ifstream file("test.gtf", std::ios_base::in | std::ios_base::binary); // Read annotations from the GTF file bool res = read(file, store, Gtf()); assert(res == true); return 0; }
- Follow-Ups:
- Re: [Seqan-dev] check for errors when reading GTF annotations
- From: Konstantin Okonechnikov <k.okonechnikov@gmail.com>
- Re: [Seqan-dev] check for errors when reading GTF annotations
-
seqan-dev - October 2012 - Archives indexes sorted by:
[ thread ] [ subject ] [ author ] [ date ] - Complete archive of the seqan-dev mailing list
- More info on this list...