21 void read(std::istream& str);
23 void write(std::ostream& str)
const;
25 static Data * create(
const std::vector <std::string> & Columns){
76 std::string
header(
void)
const;
80 size_t size(
void)
const;
float_t null_error2
error rate assuming Minor allele monomorphism.
Definition: allele.h:50
gt_t e2
identity of error2.
Definition: allele.h:45
static const bool binary
Default file extension.
Definition: allele.h:79
const std::string sql_column_names(void) const
Returns the column names in the SQL table.
Definition: allele.cc:205
count_t excluded
A count of the number of samples that were excluded due to filtering criteria.
Definition: allele.h:34
static const std::string table_name
The destination table in the database.
Definition: allele.h:77
std::string header(void) const
returns first two lines of a file.
Definition: allele.cc:193
float_t efc
number of 'effective' chromosomes in the sample.
Definition: allele.h:52
float_t f
HW statistic.
Definition: allele.h:61
void write(std::ostream &str) const
! the write function must be ? by the child class.
Definition: allele.cc:93
bool pooled
Inferred from pooled or labeled sequencing?
Definition: allele.h:35
size_t size(void) const
The size of the class in bytes.
Definition: allele.cc:197
gt_t minor
identity of minor allele.
Definition: allele.h:42
float_t error
ml error rate.
Definition: allele.h:47
Data which has an absolute position.
Definition: data.h:144
gt_t e1
identity of error1
Definition: allele.h:44
float_t null_error
error rate assuming Major allele monomorphism.
Definition: allele.h:49
count_t coverage
population coverage.
Definition: allele.h:51
count_t N
number of individual at the site.
Definition: allele.h:60
float_t h
heterozygosity.
Definition: allele.h:62
const bool get_binary(void) const
Returns the destination table name.
Definition: allele.cc:273
float_t gof
gof statistic.
Definition: allele.h:64
const std::string sql_values(void) const
Returns a string to insert values in an SQL table.
Definition: allele.cc:209
const std::string get_table_name(void) const
Returns the destination table name.
Definition: allele.cc:268
const std::string sql_header(void) const
Returns a string to create an SQL table.
Definition: allele.cc:201
float_t freq
frequency of major allele.
Definition: allele.h:39
float_t Mm
frequency of genotype Mm in the population.
Definition: allele.h:57
float_t hwell
log likelihoods.
Definition: allele.h:54
static const std::string file_name
Default file extension.
Definition: allele.h:78
float_t MM
frequency of genotype MM in the population.
Definition: allele.h:56
Allele & operator=(const Allele &)
use the = operator to assign Allele.
Definition: allele.cc:164
const std::string get_file_name(void) const
Returns the default file extension.
Definition: allele.cc:263
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
void read(std::istream &str)
The read function must be defined in the child class.
Definition: allele.cc:36
gt_t major
identity major allele.
Definition: allele.h:43
gt_t ref
identity of ref allele.
Definition: allele.h:41
char delim
the delimiter used when reading/writing the class in text mode.
Definition: allele.h:27
Summary statistics from the allele command.
Definition: allele.h:19
float_t mm
frequency of genotype mm in the population.
Definition: allele.h:58
Allele(std::vector< std::string >)
Instance of constructor required by Data, but Allele doesn't actually need the vector to initialize...
Definition: allele.h:70