Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
|
Generic text file base class. More...
#include <varfiles.hpp>
Public Member Functions | |
GtxtFile () | |
Default constructor. | |
GtxtFile (const string &fileName) | |
Constructor with file name. More... | |
GtxtFile (const string &fileName, const bool &head) | |
Constructor with file name and header indicator. More... | |
GtxtFile (const GtxtFile &in)=default | |
Copy constructor. | |
GtxtFile & | operator= (const GtxtFile &in)=default |
Copy assignment. | |
GtxtFile (GtxtFile &&in)=default | |
Move constructor. | |
GtxtFile & | operator= (GtxtFile &&in)=default |
Move assignment. | |
~GtxtFile () | |
Destructor. | |
virtual void | open () |
Open stream (does nothing) | |
virtual void | close () |
Close stream. | |
Public Member Functions inherited from sampFiles::VarFile | |
VarFile (const VarFile &in)=default | |
Copy constructor. | |
VarFile & | operator= (const VarFile &in)=default |
Copy assignment. | |
VarFile (VarFile &&in)=default | |
Move constructor. | |
VarFile & | operator= (VarFile &&in)=default |
Move assignment. | |
~VarFile () | |
Destructor. | |
Protected Attributes | |
string | _fileName |
File name. | |
bool | _head |
Is there a header? | |
Protected Attributes inherited from sampFiles::VarFile | |
fstream | _varFile |
Variant file stream. | |
Additional Inherited Members | |
Protected Member Functions inherited from sampFiles::VarFile | |
VarFile () | |
Default constructor (protected) | |
Generic text file base class.
Sets up streams for text files. If specified, the first line can be considered a header and treated separately.
|
inline |
Constructor with file name.
[in] | fileName | file name |
|
inline |
Constructor with file name and header indicator.
[in] | fileName | file name |
[in] | head | header presence |