1 #ifndef _POOLED_DATA_H_
2 #define _POOLED_DATA_H_
21 static Data * create(
const std::vector <std::string> & Columns){
26 Base major, minor, ref;
31 std::vector <float_t>
p;
32 std::vector <float_t>
cov;
41 void set_sample_names(
const std::vector <std::string> &);
44 std::string header(
void)
const;
45 size_t size(
void)
const;
51 void write (std::ostream&)
const;
53 void read (std::istream&);
56 static const bool binary;
57 const bool get_binary()
const;
A class converts human readable bases to bit flags.
Definition: base.h:16
size_t size(void) const
The size of the class in bytes.
Definition: pooled_data.cc:131
std::vector< std::string > names_
the sample names.
Definition: pooled_data.h:30
void read(std::istream &)
used to read Allele. Inherits >> from Data
Definition: pooled_data.cc:58
Data which has an absolute position.
Definition: data.h:144
static const std::string table_name
Destination table in Db.
Definition: pooled_data.h:55
Information genereated from pooled data.
Definition: pooled_data.h:18
void write(std::ostream &) const
used to write Allele. Inherits << from Data
Definition: pooled_data.cc:96
Pooled_data & operator=(const Pooled_data &)
use the = operator to assign Pooled_data.
Definition: pooled_data.cc:156
static const std::string file_name
The dafualt extention for files.
Definition: pooled_data.h:54
char delim
the delimiter used when reading/writing the class in text mode.
Definition: pooled_data.h:25
Allele to_allele(const size_t &)
Definition: pooled_data.cc:138
std::vector< float_t > p
a vector of allele frequencies
Definition: pooled_data.h:31
std::vector< float_t > cov
a vector of coverage
Definition: pooled_data.h:32
A class which registers a child of Data in Data::new_data_.
Definition: data.h:222
std::vector< float_t > fixedll
a vector of fixed log likelihoods
Definition: pooled_data.h:34
A class which can be written as flat text file or into an SQL database.
Definition: data.h:34
std::vector< float_t > polyll
a vector of polymorphic log likelihoods
Definition: pooled_data.h:33
Summary statistics from the allele command.
Definition: allele.h:19