Skip to content

Commit 8e13d2e

Browse files
committed
update header file for using +E to call the error model
1 parent 2116727 commit 8e13d2e

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

model/modelgenotype.h

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ class ModelGenotype : virtual public ModelMarkov
9292
* compute the frequencies of A C G T for the base model with 4 states
9393
* @param freq_params
9494
*/
95-
virtual string compute_freq_params_base_model(string freq_params);
95+
virtual string computeFreqParamsOfBaseModel(string freq_params);
9696

97+
/**
98+
* initialise the error model of the genotype models
99+
*/
100+
double init_error_model();
97101
/**
98102
@return model name
99103
*/
@@ -173,7 +177,25 @@ class ModelGenotype : virtual public ModelMarkov
173177
* @return TRUE if parameters are changed, FALSE otherwise (2015-10-20)
174178
*/
175179
virtual bool getVariables(double *variables);
176-
180+
181+
// Error model parameters
182+
bool use_error_model; // whether the error model is enabled
183+
double ado_rate; // allelic dropout rate
184+
double error_rate; // amplification/sequencing error rate
185+
bool fix_error_params; // whether to fix error parameters (not optimise)
186+
187+
/*
188+
* Bounds for the optimisation
189+
* lower_ado: lower bound for ADO - 0.0
190+
* upper_ado: upper bound for ADO - 1.0
191+
* lower_error: lower bound for ERR - 10^-5
192+
* upper_error: upper bound for ERR - 10^-3
193+
*/
194+
double lower_ado;
195+
double upper_ado;
196+
double lower_error;
197+
double upper_error;
198+
177199
};
178200

179201
#endif

0 commit comments

Comments
 (0)