Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
|
Generic binary file output class. More...
#include <varfiles.hpp>
Public Member Functions | |
GbinFileO () | |
Default constructor. | |
GbinFileO (const string &fileName, const size_t &nCols, const size_t &elemSize) | |
File name constructor. More... | |
GbinFileO (const GbinFileO &in)=default | |
Copy constructor. | |
GbinFileO & | operator= (const GbinFileO &in)=default |
Copy assignment. | |
GbinFileO (GbinFileO &&in)=default | |
Move constructor. | |
GbinFileO & | operator= (GbinFileO &&in)=default |
Move assignment. | |
~GbinFileO () | |
Destructor. | |
void | open () |
Open stream to write. | |
Public Member Functions inherited from sampFiles::GbinFile | |
GbinFile () | |
Default constructor. | |
GbinFile (const string &fileName, const size_t &nCols, const size_t &elemSize) | |
Constructor with file name. More... | |
GbinFile (const GbinFile &in)=default | |
Copy constructor. | |
GbinFile & | operator= (const GbinFile &in)=default |
Copy assignment. | |
GbinFile (GbinFile &&in)=default | |
Move constructor. | |
GbinFile & | operator= (GbinFile &&in)=default |
Move assignment. | |
~GbinFile () | |
Destructor. | |
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. | |
Friends | |
class | GbinFileI |
Additional Inherited Members | |
Protected Member Functions inherited from sampFiles::VarFile | |
VarFile () | |
Default constructor (protected) | |
Protected Attributes inherited from sampFiles::GbinFile | |
string | _fileName |
File name. | |
size_t | _nCols |
Number of elements in a row. | |
size_t | _elemSize |
Size of each element in bytes. | |
Protected Attributes inherited from sampFiles::VarFile | |
fstream | _varFile |
Variant file stream. | |
Generic binary file output class.
Writes binary files.
|
inline |
File name constructor.
[in] | fileName | file name including extension |
[in] | nCols | number of columns, or elements in a row |
[in] | elemSize | size of each element in bytes |