yat  0.18.2pre
Public Member Functions | Friends | Related Functions | List of all members
theplu::yat::omic::VCF::Data Class Reference

class holiding data stored in FORMAT and data fields More...

#include <yat/omic/VCF.h>

Public Member Functions

 Data (void)
 Default constructor.
 
template<typename T >
void add (const std::string &key, const std::vector< T > &data)
 T is string, numeric or vector string or numeric.
 
void clear (void)
 
size_t count (const std::string &key) const
 
const std::vector< std::string > & format (void) const
 
template<typename T >
void get (const std::string &key, std::vector< T > &data) const
 T is string, numeric or vector string or numeric.
 

Friends

class VCF
 
std::ostream & operator<< (std::ostream &, const VCF::Data &)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, const VCF::Data &data)
 output operator for VCF::Data More...
 

Detailed Description

class holiding data stored in FORMAT and data fields

Member Function Documentation

◆ clear()

void theplu::yat::omic::VCF::Data::clear ( void  )

Set FORMAT and all data fields to empty string. Number of samples remains unmodified.

◆ count()

size_t theplu::yat::omic::VCF::Data::count ( const std::string &  key) const
Returns
1 if key exists

◆ format()

const std::vector<std::string>& theplu::yat::omic::VCF::Data::format ( void  ) const

FORMAT

Returns
vector of format in the data fields

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const VCF::Data data 
)
related

output operator for VCF::Data

Returns
stream

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

Generated on Tue Sep 7 2021 17:32:33 for yat by  doxygen 1.8.14