Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to read multiple VCF.GZ/BCF files with an appropriate iterator in a for-each loop. More...
#include <synced_variant_reader.h>
Public Member Functions | |
SyncedVariantReader (const std::vector< std::string > &filenames, const std::string &interval_list) | |
opens multiple files (vcf or bcf) and allows an iterator to parse them More... | |
SyncedVariantReader (SyncedVariantReader &&other)=default | |
a SyncedVariantReader should never be copied, but it can be moved around More... | |
SyncedVariantReader & | operator= (SyncedVariantReader &&other)=default |
SyncedVariantReader (const SyncedVariantReader &)=delete | |
a SyncedVariantReader cannot be copied safely, as it is iterating over streams. More... | |
SyncedVariantReader & | operator= (const SyncedVariantReader &)=delete |
ITERATOR | begin () const |
creates a ITERATOR pointing at the start of the input stream (needed by for-each loop) More... | |
ITERATOR | end () const |
creates a ITERATOR with a nullified input stream (needed by for-each loop) More... | |
Utility class to read multiple VCF.GZ/BCF files with an appropriate iterator in a for-each loop.
This class is designed to parse the files in for-each loops with the following signatures:
over whole files:
over intervals:
|
inline |
opens multiple files (vcf or bcf) and allows an iterator to parse them
filenames | the names of the variant files |
interval_list | a comma-separated string of the intervals to traverse. Empty string for all intervals. |
will | throw std::runtime_error if the htslib structure cannot be initialized |
|
default |
a SyncedVariantReader should never be copied, but it can be moved around
|
delete |
a SyncedVariantReader cannot be copied safely, as it is iterating over streams.
|
inline |
creates a ITERATOR pointing at the start of the input stream (needed by for-each loop)
|
inline |
creates a ITERATOR with a nullified input stream (needed by for-each loop)
|
default |
|
delete |