Gamgee
You miserable little maggot. I'll stove your head in!
|
Utility class to read an indexed BCF file by intervals using an appropriate Variant iterator in a for-each loop. More...
#include <indexed_variant_reader.h>
Public Member Functions | |
IndexedVariantReader (const std::string &filename, const std::vector< std::string > &interval_list) | |
reads through all records in a file matching one of the given intervals, parsing them into Variant objects More... | |
IndexedVariantReader (const IndexedVariantReader &other)=delete | |
an IndexedVariantReader cannot be copied safely, as it is iterating over a stream. More... | |
IndexedVariantReader & | operator= (const IndexedVariantReader &other)=delete |
IndexedVariantReader (IndexedVariantReader &&other)=default | |
an IndexedVariantReader can be moved More... | |
IndexedVariantReader & | operator= (IndexedVariantReader &&other)=default |
ITERATOR | begin () const |
ITERATOR | end () const |
VariantHeader | header () const |
returns the variant header of the file being read More... | |
Utility class to read an indexed BCF file by intervals using an appropriate Variant iterator in a for-each loop.
NOTE: this will only parse BCF files with CSI indices
This class is designed to parse the file in for-each loops with the following signature:
|
inline |
reads through all records in a file matching one of the given intervals, parsing them into Variant objects
filename | the name of the variant file |
interval_list | a vector of intervals represented by strings. Empty vector for all intervals. |
|
delete |
an IndexedVariantReader cannot be copied safely, as it is iterating over a stream.
|
default |
an IndexedVariantReader can be moved
|
inline |
|
inline |
|
inline |
returns the variant header of the file being read
|
delete |
|
default |