Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Bitstring implementation of TTDeletMutations with recombination. More...
#include <ttdeletmutations_bitstring.h>
Public Member Functions | |
TTDeletMutations_bitstring () | |
TTDeletMutations_bitstring (const TTDeletMutations_bitstring &T) | |
virtual | ~TTDeletMutations_bitstring () |
double | viability_multi () |
double | viability_epist () |
double | viability_multi_continuous () |
double | viability_epist_continuous () |
void | mutate_redraw () |
void | mutate_noredraw () |
void | mutate_noredraw_noBackMutation () |
void | set_sequence (bitstring **seq) |
Getters: | |
unsigned int | get_nb_mutations () |
unsigned int | get_nb_mut_atLocus (unsigned int loc) |
unsigned int | get_nb_htz_mutations () |
unsigned int | get_nb_hmz_mutations () |
bool | get_hmz_atLocus (unsigned int loc) |
bool | get_htz_atLocus (unsigned int loc) |
Setters: | |
void | set_proto (TProtoDeletMutations_bitstring *proto) |
void | set_nb_locus (int val) |
void | set_mut_rate (double val, int nloc) |
void | set_viability_func_ptr (unsigned int f_model, bool is_cont) |
void | set_inherit_func_ptr (void(TProtoDeletMutations_bitstring::*theFunc)(sex_t, bitstring *, bitstring **)) |
void | set_mutation_func_ptr (unsigned int m_model) |
Implementations | |
virtual void | init () |
virtual void | init_sequence () |
virtual void | reset () |
virtual void * | set_trait (void *value) |
virtual void ** | get_sequence () const |
virtual double | get_allele_value (int loc, int all) |
virtual void | set_allele_value (unsigned int locus, unsigned int allele, double value) |
virtual void | set_sequence (void **seq) |
virtual trait_t | get_type () const |
virtual void | inherit (TTrait *mother, TTrait *father) |
virtual void | mutate () |
virtual void | set_value () |
virtual void * | getValue () const |
virtual void | show_up () |
virtual TTDeletMutations_bitstring * | clone () |
virtual TTDeletMutations_bitstring & | operator= (const TTrait &T) |
virtual bool | operator== (const TTrait &T) |
virtual bool | operator!= (const TTrait &T) |
virtual void | store_data (BinaryStorageBuffer *saver) |
virtual bool | retrieve_data (BinaryStorageBuffer *reader) |
![]() | |
virtual void | init ()=0 |
Called to allocate the trait's genotypic sequences. More... | |
virtual void | init_sequence ()=0 |
Called at the start of each replicate, sets the initial genotypes. More... | |
virtual void | reset ()=0 |
Called at the end of each simulation/replicate, deallocates sequence memory. More... | |
virtual void | inherit (TTrait *mother, TTrait *father)=0 |
Inheritance procedure, creates a new trait from mother's and father's traits. More... | |
virtual void | mutate ()=0 |
Mutation procedure, perform mutations on the genes sequence. More... | |
virtual void * | set_trait (void *value)=0 |
Called to set the phenotypic to a particular value or to give context-dependant value(s) to the trait. More... | |
virtual void | set_sequence (void **seq)=0 |
Called to set the sequence pointer to an existing trait. More... | |
virtual double | get_allele_value (int loc, int all)=0 |
Called to read one allele value at a particular locus. More... | |
virtual void | set_allele_value (unsigned int locus, unsigned int allele, double value)=0 |
Called to change the allelic value at a particular locus. More... | |
virtual void | set_value ()=0 |
Tells the trait to set its phenotype from genotype, should be used instead of getValue(). More... | |
virtual void * | getValue () const =0 |
Genotype to phenotype mapper. More... | |
virtual trait_t | get_type () const =0 |
type accessor. More... | |
virtual void ** | get_sequence () const =0 |
sequence accessor. More... | |
virtual void | show_up ()=0 |
Writes some info to stdout. More... | |
virtual TTrait * | clone ()=0 |
Returns a copy of itself. More... | |
virtual | ~TTrait () |
![]() | |
virtual void | store_data (BinaryStorageBuffer *saver)=0 |
Interface to store the component data (e.g. gene values) into a binary buffer. More... | |
virtual bool | retrieve_data (BinaryStorageBuffer *reader)=0 |
Interface to retrieve the same data from the binary buffer. More... | |
virtual | ~StorableComponent () |
Static Public Member Functions | |
static void | set_effects (float **fx) |
static void | set_recomb_template (unsigned int size) |
Private Member Functions | |
void | set_nb_mutations () |
void | set_nb_htz_mutations () |
void | set_nb_hmz_mutations () |
Private Attributes | |
TProtoDeletMutations_bitstring * | _myProto |
unsigned int | _nb_mutations |
unsigned int | _nb_hmz_mutations |
unsigned int | _nb_htz_mutations |
bitstring * | sequence [2] |
bitstring * | _htz |
bitstring * | _hmz |
double | _phenotype |
trait_t | _type |
Parameters | |
unsigned int | _nb_locus |
double | _genomic_mut_rate |
double(TTDeletMutations_bitstring::* | _viability_func_ptr )(void) |
void(TProtoDeletMutations_bitstring::* | _inherit_func_ptr )(sex_t, bitstring *, bitstring **) |
void(TTDeletMutations_bitstring::* | _mutation_func_ptr )(void) |
Bitstring implementation of TTDeletMutations with recombination.
|
inline |
References sequence.
Referenced by clone().
|
inline |
References sequence.
|
inlinevirtual |
|
inlinevirtual |
Implements TTrait.
References TTDeletMutations_bitstring().
Implements TTrait.
References _myProto, TProtoDeletMutations_bitstring::get_effect(), get_hmz_atLocus(), and sequence.
|
inline |
|
inline |
|
inline |
References _nb_hmz_mutations.
Referenced by TTDeletMutBitstrSH::setDeletStats(), and show_up().
|
inline |
References _nb_htz_mutations.
Referenced by TTDeletMutBitstrSH::setDeletStats(), and show_up().
References sequence.
Referenced by TTDeletMutBitstrSH::setDeletStats().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements TTrait.
References _phenotype.
Referenced by show_up().
Implements TTrait.
References _inherit_func_ptr, _myProto, FEM, TTrait::get_sequence(), MAL, and sequence.
|
virtual |
Implements TTrait.
References _hmz, _htz, _nb_locus, fatal(), and sequence.
Referenced by operator=(), and set_sequence().
|
virtual |
Implements TTrait.
References _myProto, _nb_locus, TProtoDeletMutations_bitstring::get_init_freq(), bitstring::reset(), sequence, bitstring::set(), and RAND::Uniform().
|
inlinevirtual |
void TTDeletMutations_bitstring::mutate_noredraw | ( | ) |
References _genomic_mut_rate, _myProto, _nb_locus, bitstring::flip(), TProtoDeletMutations_bitstring::get_backmutation_rate(), RAND::Poisson(), RAND::RandBool(), sequence, bitstring::set(), and RAND::Uniform().
Referenced by set_mutation_func_ptr().
void TTDeletMutations_bitstring::mutate_noredraw_noBackMutation | ( | ) |
References _genomic_mut_rate, _nb_locus, RAND::Poisson(), RAND::RandBool(), sequence, bitstring::set(), and RAND::Uniform().
Referenced by set_mutation_func_ptr().
void TTDeletMutations_bitstring::mutate_redraw | ( | ) |
References _genomic_mut_rate, _nb_hmz_mutations, _nb_locus, RAND::Poisson(), RAND::RandBool(), sequence, bitstring::set(), and RAND::Uniform().
Referenced by set_mutation_func_ptr().
|
virtual |
Implements TTrait.
|
virtual |
Implements TTrait.
References _nb_locus, bitstring::copy(), init(), reset(), sequence, and set_value().
|
virtual |
Implements TTrait.
References _nb_locus, _type, and TTrait::get_type().
|
virtual |
Implements TTrait.
References _hmz, _htz, and sequence.
Referenced by operator=(), set_sequence(), and ~TTDeletMutations_bitstring().
|
virtual |
Implements StorableComponent.
References bitstring::nb_words(), BinaryStorageBuffer::read(), sequence, and bitstring::set_data().
|
virtual |
Implements TTrait.
References _myProto, _nb_locus, TProtoDeletMutations_bitstring::get_dominance(), TProtoDeletMutations_bitstring::get_dominance_model(), TProtoDeletMutations_bitstring::get_effect(), TProtoDeletMutations_bitstring::get_strength(), sequence, bitstring::set(), and TProtoDeletMutations_bitstring::set_effect().
|
static |
|
inline |
References _inherit_func_ptr.
Referenced by TProtoDeletMutations_bitstring::hatch().
|
inline |
References _genomic_mut_rate.
Referenced by TProtoDeletMutations_bitstring::hatch().
void TTDeletMutations_bitstring::set_mutation_func_ptr | ( | unsigned int | m_model | ) |
References _mutation_func_ptr, _myProto, TProtoDeletMutations_bitstring::get_backmutation_rate(), mutate_noredraw(), mutate_noredraw_noBackMutation(), and mutate_redraw().
Referenced by TProtoDeletMutations_bitstring::hatch().
|
private |
References _hmz, _nb_hmz_mutations, bitstring::count(), and sequence.
Referenced by set_value(), and show_up().
|
private |
References _htz, _nb_htz_mutations, bitstring::count(), and sequence.
Referenced by set_value(), and show_up().
|
inline |
References _nb_locus.
Referenced by TProtoDeletMutations_bitstring::hatch().
|
private |
References _nb_mutations, bitstring::count(), and sequence.
Referenced by set_value(), and show_up().
|
inline |
References _myProto.
Referenced by TProtoDeletMutations_bitstring::hatch().
|
static |
void TTDeletMutations_bitstring::set_sequence | ( | bitstring ** | seq | ) |
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
Implements TTrait.
|
virtual |
Implements TTrait.
References _phenotype, _viability_func_ptr, set_nb_hmz_mutations(), set_nb_htz_mutations(), and set_nb_mutations().
Referenced by TTDeletMutBitstrFH::FHread(), operator=(), and show_up().
void TTDeletMutations_bitstring::set_viability_func_ptr | ( | unsigned int | f_model, |
bool | is_cont | ||
) |
References _viability_func_ptr, viability_epist(), viability_epist_continuous(), viability_multi(), and viability_multi_continuous().
Referenced by TProtoDeletMutations_bitstring::hatch().
|
virtual |
Implements TTrait.
References _nb_locus, get_nb_hmz_mutations(), get_nb_htz_mutations(), get_nb_mutations(), getValue(), sequence, set_nb_hmz_mutations(), set_nb_htz_mutations(), set_nb_mutations(), and set_value().
|
virtual |
Implements StorableComponent.
References bitstring::getword_atIdx(), bitstring::nb_words(), sequence, and BinaryStorageBuffer::store().
double TTDeletMutations_bitstring::viability_epist | ( | ) |
References _myProto, _nb_hmz_mutations, _nb_htz_mutations, TProtoDeletMutations_bitstring::get_dominance(), TProtoDeletMutations_bitstring::get_fitness_scaling_factor(), and TProtoDeletMutations_bitstring::get_strength().
Referenced by set_viability_func_ptr().
double TTDeletMutations_bitstring::viability_epist_continuous | ( | ) |
References _hmz, _myProto, _nb_locus, TProtoDeletMutations_bitstring::get_effect(), and TProtoDeletMutations_bitstring::get_fitness_scaling_factor().
Referenced by set_viability_func_ptr().
double TTDeletMutations_bitstring::viability_multi | ( | ) |
References _myProto, _nb_hmz_mutations, _nb_htz_mutations, TProtoDeletMutations_bitstring::get_dominance(), TProtoDeletMutations_bitstring::get_fitness_scaling_factor(), and TProtoDeletMutations_bitstring::get_strength().
Referenced by set_viability_func_ptr().
double TTDeletMutations_bitstring::viability_multi_continuous | ( | ) |
References _hmz, _myProto, _nb_locus, TProtoDeletMutations_bitstring::get_effect(), and TProtoDeletMutations_bitstring::get_fitness_scaling_factor().
Referenced by set_viability_func_ptr().
|
private |
Referenced by mutate_noredraw(), mutate_noredraw_noBackMutation(), mutate_redraw(), and set_mut_rate().
|
private |
Referenced by init(), reset(), set_nb_hmz_mutations(), viability_epist_continuous(), and viability_multi_continuous().
|
private |
Referenced by init(), reset(), and set_nb_htz_mutations().
|
private |
Referenced by inherit(), and set_inherit_func_ptr().
|
private |
Referenced by mutate(), and set_mutation_func_ptr().
|
private |
|
private |
Referenced by get_nb_hmz_mutations(), mutate_redraw(), set_nb_hmz_mutations(), viability_epist(), and viability_multi().
|
private |
Referenced by get_nb_htz_mutations(), set_nb_htz_mutations(), viability_epist(), and viability_multi().
|
private |
|
private |
Referenced by get_nb_mutations(), and set_nb_mutations().
|
private |
Referenced by getValue(), and set_value().
|
private |
Referenced by get_type(), and operator==().
|
private |
Referenced by set_value(), and set_viability_func_ptr().
|
private |
Referenced by get_allele_value(), get_hmz_atLocus(), get_htz_atLocus(), get_nb_mut_atLocus(), get_sequence(), inherit(), init(), init_sequence(), mutate_noredraw(), mutate_noredraw_noBackMutation(), mutate_redraw(), operator=(), reset(), retrieve_data(), set_allele_value(), set_nb_hmz_mutations(), set_nb_htz_mutations(), set_nb_mutations(), set_sequence(), show_up(), store_data(), and TTDeletMutations_bitstring().