Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
Public Member Functions | List of all members
sampFiles::VcfFile Class Reference

VCF file base class. More...

#include <varfiles.hpp>

Inheritance diagram for sampFiles::VcfFile:
[legend]
Collaboration diagram for sampFiles::VcfFile:
[legend]

Public Member Functions

 VcfFile ()
 Default constructor.
 
 VcfFile (const string &fileName)
 Constructor with file name. More...
 
 VcfFile (const VcfFile &in)=default
 Copy constructor.
 
VcfFileoperator= (const VcfFile &in)=default
 Copy assignment.
 
 VcfFile (VcfFile &&in)=default
 Move constructor.
 
VcfFileoperator= (VcfFile &&in)=default
 Move assignment.
 
 ~VcfFile ()
 Destructor.
 
void open ()
 Open stream (does nothing)
 
void close ()
 Close stream.
 
- Public Member Functions inherited from sampFiles::GtxtFile
 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.
 
GtxtFileoperator= (const GtxtFile &in)=default
 Copy assignment.
 
 GtxtFile (GtxtFile &&in)=default
 Move constructor.
 
GtxtFileoperator= (GtxtFile &&in)=default
 Move assignment.
 
 ~GtxtFile ()
 Destructor.
 
- Public Member Functions inherited from sampFiles::VarFile
 VarFile (const VarFile &in)=default
 Copy constructor.
 
VarFileoperator= (const VarFile &in)=default
 Copy assignment.
 
 VarFile (VarFile &&in)=default
 Move constructor.
 
VarFileoperator= (VarFile &&in)=default
 Move assignment.
 
 ~VarFile ()
 Destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from sampFiles::VarFile
 VarFile ()
 Default constructor (protected)
 
- Protected Attributes inherited from sampFiles::GtxtFile
string _fileName
 File name.
 
bool _head
 Is there a header?
 
- Protected Attributes inherited from sampFiles::VarFile
fstream _varFile
 Variant file stream.
 

Detailed Description

VCF file base class.

Sets up streams for VCF files. Any accompanying .idx files are ignored.

Constructor & Destructor Documentation

◆ VcfFile()

sampFiles::VcfFile::VcfFile ( const string &  fileName)
inline

Constructor with file name.

Parameters
[in]fileNamefile name

The documentation for this class was generated from the following files: