mapgd  0.4
A program for the Maximum-likelihood analysis of population genomic data.
 All Data Structures Functions Variables Friends Groups Pages
Public Member Functions | Data Fields | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
Phenotype Class Reference

Phenotype data. More...

#include <phenotype.h>

Inheritance diagram for Phenotype:
Inheritance graph
[legend]
Collaboration diagram for Phenotype:
Collaboration graph
[legend]

Public Member Functions

 Phenotype (const std::vector< std::string > &)
 
 Phenotype (const size_t &)
 
std::string header (void) const
 The header line of plain text files.
 
size_t size (void) const
 Size in bytes for binary read/write.
 
void add_sample (const uint32_t &, const real_t *)
 
const std::string get_file_name (void) const
 
const std::string get_table_name (void) const
 
const bool get_binary () const
 
- Public Member Functions inherited from Data
void read_binary (std::istream &str)
 
void write_binary (std::ostream &str) const
 
 Data (std::vector< std::string > &)
 
virtual const bool indexed () const
 
virtual const std::string sql_header (void) const
 Return the names of the columns, along with variable type.
 
virtual const std::string sql_column_names (void) const
 Return the names of the columns.
 
virtual const std::string sql_values (void) const
 Return the values to be placed in columns.
 
virtual void sql_read (std::istream &)
 Reads the values...
 

Data Fields

char delim
 the delimiter used when reading/writing the class in text mode.
 
std::vector< std::string > sample_name
 
std::vector< std::string > trait
 
std::vector< std::vector
< real_t > > 
value
 

Static Public Attributes

static const std::string file_name =".phe"
 zeros values and sets names to empty. More...
 
static const std::string table_name ="PHENOTYPE"
 Destination table in Db.
 
static const bool binary =false
 
- Static Public Attributes inherited from Data
static const std::string file_name =".txt"
 The read function must be defined in the child class. More...
 
static const std::string table_name ="NONE"
 The read function must be defined in the child class. More...
 

Private Member Functions

void write (std::ostream &) const
 use to write Allele. Inherits <<
 
void read (std::istream &)
 use to read Allele. Inherits >>
 

Static Private Member Functions

static Datacreate (const std::vector< std::string > &Columns)
 

Private Attributes

size_t n_samples_
 
size_t n_traits_
 

Static Private Attributes

static const Registration registered =Registration(Phenotype::table_name, Phenotype::create)
 

Additional Inherited Members

- Static Public Member Functions inherited from Data
static Datanew_from_str (const std::string &, const std::vector< std::string > &)
 Constructs an instance of the class Registered w/ string.
 

Detailed Description

Phenotype data.

Field Documentation

const std::string Phenotype::file_name =".phe"
static

zeros values and sets names to empty.

zeros values, but doesn't set names to empty. The dafualt extention for files.


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