NVBIO
|
A non-incremental FASTA reader, which parses the reads atomically and provides them to the output handler one by one.
#include <fasta.h>
Public Methods | |
FASTA_reader (const char *filename, const uint32 buffer_size=64536u) | |
~FASTA_reader () | |
bool | valid () const |
template<typename Writer > | |
uint32 | read (const uint32 n_reads, Writer &writer) |
uint8 | get () |
void | rewind () |
|
inline |
constructor
Definition at line 136 of file fasta_inl.h.
|
inline |
destructor
Definition at line 147 of file fasta_inl.h.
|
inline |
get the next character, or 255 if EOF
Definition at line 241 of file fasta_inl.h.
uint32 nvbio::FASTA_reader::read | ( | const uint32 | n_reads, |
Writer & | writer | ||
) |
read a batch of bp reads
Writer | an output handler class, which must implement the following interface: |
Definition at line 182 of file fasta_inl.h.
|
inline |
rewind the file
Definition at line 156 of file fasta_inl.h.
|
inline |