btllib
Loading...
Searching...
No Matches
seq_writer.cpp

An example of writing a gzipped fastq file.

#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;
}
Definition seq_writer.hpp:23
void write(const std::string &id, const std::string &comment, const std::string &seq, const std::string &qual="")