Re: [Seqan-dev] Reading FastQ files from GZ archive
- From: "Holtgrewe, Manuel" <manuel.holtgrewe@fu-berlin.de>
- To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Date: Sat, 31 Mar 2012 09:22:48 +0000
- Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: Re: [Seqan-dev] Reading FastQ files from GZ archive
Hi JD,
good catch, you found a bug I just fixed. The problem was that assignQualityValues() did not resize the target string, it does now. Update your SVN checkout and it should work.
Also, there now is a demo for reading FASTQ from gzipped files in core/demos/stream_read_fastq_gz.cpp
HTH
Manuel
From: ngs geek [ngsgeek@gmail.com]
Sent: Friday, March 30, 2012 7:44 PM To: seqan-dev@lists.fu-berlin.de Subject: [Seqan-dev] Reading FastQ files from GZ archive Hi All:
I'm trying to filter reads contained in a gz file based on quality score; I was able to stream the id and the
sequence with GZFile stream and using a singlepass reader (I don't want to keep the reads in memory).
Unfortunately, I can't access the quality string.
RecordReader<Stream<GZFile>, SinglePass<> > reader(fastq_file);
CharString id;
String<Dna5Q> seq;
CharString qual;
while (!atEnd(reader))
{
if (readRecord(id, seq, reader, Fastq()) != 0)
{
std::cerr << "Problem with your FASTQ file." << std::endl;
return 1;
}
// reading qual
}
Any idea on this? I tried assignQualities etc. with no luck.
Thanks
JD
|
- Follow-Ups:
- Re: [Seqan-dev] Reading FastQ files from GZ archive
- From: ngs geek <ngsgeek@gmail.com>
- Re: [Seqan-dev] Reading FastQ files from GZ archive
- References:
- [Seqan-dev] Reading FastQ files from GZ archive
- From: ngs geek <ngsgeek@gmail.com>
- [Seqan-dev] Reading FastQ files from GZ archive
-
seqan-dev - March 2012 - Archives indexes sorted by:
[ thread ] [ subject ] [ author ] [ date ] - Complete archive of the seqan-dev mailing list
- More info on this list...