btllib

seq_writer.cpp

An example of writing a gzipped fastq file.

#include "../include/btllib/seq_writer.hpp"
#include <iostream>
int
main()
{
btllib::SeqWriter writer("my_reads.fq.gz", btllib::SeqWriter::FASTQ);
writer.write("read1", "comment1", "ACGATCAGCAGCATG", "!@$&!#$&@(#*@)%");
writer.write("read2", "comment2", "GTACG", "&%(@(");
return 0;
}
btllib::SeqWriter
Definition: seq_writer.hpp:23
btllib::SeqWriter::write
void write(const std::string &id, const std::string &comment, const std::string &seq, const std::string &qual="")