18 #include "stream_tools.h"
23 void write (std::ostream&)
const;
24 void read (std::istream&);
26 static Data * create(
const std::vector <std::string> & Columns){
29 size_t n_samples_, n_traits_;
33 std::vector <std::string> sample_name;
34 std::vector <std::string> trait;
39 std::vector <std::vector <real_t > > value;
43 Phenotype(
const std::vector <std::string> &);
47 std::string
header(
void)
const;
49 size_t size(
void)
const;
52 void add_sample(
const uint32_t &,
const real_t *);
61 const std::string get_file_name(
void)
const;
62 const std::string get_table_name(
void)
const;
64 static const bool binary;
66 const bool get_binary()
const;
void read(std::istream &)
use to read Allele. Inherits >>
Definition: phenotype.cc:50
char delim
the delimiter used when reading/writing the class in text mode.
Definition: phenotype.h:31
size_t size(void) const
Size in bytes for binary read/write.
Definition: phenotype.cc:119
std::string header(void) const
The header line of plain text files.
Definition: phenotype.cc:105
static const std::string table_name
Destination table in Db.
Definition: phenotype.h:59
void write(std::ostream &) const
use to write Allele. Inherits <<
Definition: phenotype.cc:72
A class which registers a child of Data in Data::new_data_.
Definition: data.h:222
A class which can be written as flat text file or into an SQL database.
Definition: data.h:34
static const std::string file_name
zeros values and sets names to empty.
Definition: phenotype.h:58
Phenotype data.
Definition: phenotype.h:21