bpp-popgen  3.0.0
bpp::GeneMapperCsvExport::Record Class Reference

Store one line of the GeneMapper file. More...

#include <Bpp/PopGen/DataSet/Io/GeneMapper/GeneMapperCsvExport.h>

+ Collaboration diagram for bpp::GeneMapperCsvExport::Record:

Public Member Functions

 Record (const std::string &row)
 Constructor. More...
 
const std::string & getSampleFileName () const
 
const std::string & getSampleName () const
 
const std::string & getPanel () const
 
const std::string & getMarkerName () const
 
const std::string & getDye () const
 
const size_t getNumberOfAllele () const
 
const GeneMapperCsvExport::AllelegetAllele (size_t allelePos) const
 

Private Attributes

std::string sampleFile_
 
std::string sampleName_
 
std::string panel_
 
std::string markerName_
 
std::string dye_
 
std::vector< GeneMapperCsvExport::Allelealleles_
 
std::string dac_
 
double an_
 

Detailed Description

Store one line of the GeneMapper file.

Definition at line 161 of file GeneMapperCsvExport.h.

Constructor & Destructor Documentation

◆ Record()

GeneMapperCsvExport::Record::Record ( const std::string &  row)

Constructor.

Parameters
rowOne row of the file as a std::string

Definition at line 201 of file GeneMapperCsvExport.cpp.

References alleles_, an_, dac_, dye_, bpp::StringTokenizer::getToken(), markerName_, bpp::StringTokenizer::numberOfRemainingTokens(), panel_, sampleFile_, sampleName_, and bpp::TextTools::toDouble().

Member Function Documentation

◆ getAllele()

const GeneMapperCsvExport::Allele& bpp::GeneMapperCsvExport::Record::getAllele ( size_t  allelePos) const
inline

Definition at line 205 of file GeneMapperCsvExport.h.

References alleles_.

◆ getDye()

const std::string& bpp::GeneMapperCsvExport::Record::getDye ( ) const
inline

Definition at line 197 of file GeneMapperCsvExport.h.

References dye_.

◆ getMarkerName()

const std::string& bpp::GeneMapperCsvExport::Record::getMarkerName ( ) const
inline

Definition at line 193 of file GeneMapperCsvExport.h.

References markerName_.

◆ getNumberOfAllele()

const size_t bpp::GeneMapperCsvExport::Record::getNumberOfAllele ( ) const
inline

Definition at line 201 of file GeneMapperCsvExport.h.

References alleles_.

◆ getPanel()

const std::string& bpp::GeneMapperCsvExport::Record::getPanel ( ) const
inline

Definition at line 189 of file GeneMapperCsvExport.h.

References panel_.

◆ getSampleFileName()

const std::string& bpp::GeneMapperCsvExport::Record::getSampleFileName ( ) const
inline

Definition at line 181 of file GeneMapperCsvExport.h.

References sampleFile_.

◆ getSampleName()

const std::string& bpp::GeneMapperCsvExport::Record::getSampleName ( ) const
inline

Definition at line 185 of file GeneMapperCsvExport.h.

References sampleName_.

Member Data Documentation

◆ alleles_

std::vector< GeneMapperCsvExport::Allele > bpp::GeneMapperCsvExport::Record::alleles_
private

Definition at line 169 of file GeneMapperCsvExport.h.

Referenced by getAllele(), getNumberOfAllele(), and Record().

◆ an_

double bpp::GeneMapperCsvExport::Record::an_
private

Definition at line 171 of file GeneMapperCsvExport.h.

Referenced by Record().

◆ dac_

std::string bpp::GeneMapperCsvExport::Record::dac_
private

Definition at line 170 of file GeneMapperCsvExport.h.

Referenced by Record().

◆ dye_

std::string bpp::GeneMapperCsvExport::Record::dye_
private

Definition at line 168 of file GeneMapperCsvExport.h.

Referenced by getDye(), and Record().

◆ markerName_

std::string bpp::GeneMapperCsvExport::Record::markerName_
private

Definition at line 167 of file GeneMapperCsvExport.h.

Referenced by getMarkerName(), and Record().

◆ panel_

std::string bpp::GeneMapperCsvExport::Record::panel_
private

Definition at line 166 of file GeneMapperCsvExport.h.

Referenced by getPanel(), and Record().

◆ sampleFile_

std::string bpp::GeneMapperCsvExport::Record::sampleFile_
private

Definition at line 164 of file GeneMapperCsvExport.h.

Referenced by getSampleFileName(), and Record().

◆ sampleName_

std::string bpp::GeneMapperCsvExport::Record::sampleName_
private

Definition at line 165 of file GeneMapperCsvExport.h.

Referenced by getSampleName(), and Record().


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