Phenotype data.
More...
#include <phenotype.h>
|
|
| 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 |
| |
|
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...
|
| |
|
|
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 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 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...
|
| |
|
|
void | write (std::ostream &) const |
| | use to write Allele. Inherits <<
|
| |
|
void | read (std::istream &) |
| | use to read Allele. Inherits >>
|
| |
|
|
static Data * | create (const std::vector< std::string > &Columns) |
| |
|
|
size_t | n_samples_ |
| |
|
size_t | n_traits_ |
| |
|
|
static Data * | new_from_str (const std::string &, const std::vector< std::string > &) |
| | Constructs an instance of the class Registered w/ string.
|
| |
| 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:
- mapgd_0.4/data_types/phenotype.h
- mapgd_0.4/data_types/phenotype.cc