Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Microsatellites genome. More...
#include <ttneutralgenes.h>
Public Member Functions | |
TTNeutralGenes () | |
TTNeutralGenes (const TTNeutralGenes &T) | |
virtual | ~TTNeutralGenes () |
Accessors | |
unsigned int | get_ploidy () |
unsigned int | get_locus_num () |
unsigned int | get_allele_num () |
void | set_proto (TProtoNeutralGenes *proto) |
void | set_locus_num (int value) |
void | set_allele_num (int value) |
void | set_mut_rate (double value) |
void | set_2L (unsigned int val) |
void | set_recomb_rate (double value) |
void | set_mut_model (int value) |
void | set_init_model (unsigned short val) |
void | set_mut_func_ptr (void(TTNeutralGenes::*theFunc)(void)) |
void | set_inherit_func_ptr (void(TProtoNeutralGenes::*theFunc)(sex_t, unsigned char *, unsigned char **)) |
void | set_allele (unsigned int loc, unsigned int al, unsigned char val) |
Mutation models | |
void | mutate_SSM () |
void | mutate_KAM () |
void | mutate_2all () |
void | mutate_NULL () |
Implementations | |
virtual TTNeutralGenes & | operator= (const TTrait &T) |
virtual bool | operator== (const TTrait &T) |
virtual bool | operator!= (const TTrait &T) |
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 | set_value () |
virtual void * | getValue () const |
virtual void | inherit (TTrait *mother, TTrait *father) |
virtual void | mutate () |
virtual void | show_up () |
virtual TTNeutralGenes * | clone () |
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 () |
Private Attributes | |
TProtoNeutralGenes * | _myProto |
unsigned int | _allele_num |
unsigned int | _locus_num |
unsigned int | _ploidy |
double | _mut_rate |
double | _recomb_rate |
unsigned int | _mut_model |
unsigned int | _2L |
unsigned short | _init_model |
void(TTNeutralGenes::* | _mutate_func_ptr )(void) |
void(TProtoNeutralGenes::* | _inherit_func_ptr )(sex_t, unsigned char *, unsigned char **) |
unsigned char ** | _sequence |
const trait_t | _type |
Microsatellites genome.
|
inline |
Referenced by clone().
|
inline |
|
virtual |
|
inlinevirtual |
|
inline |
References _allele_num.
|
inline |
References _locus_num.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements TTrait.
Implements TTrait.
References _inherit_func_ptr, _myProto, _sequence, FEM, TTrait::get_sequence(), and MAL.
|
virtual |
Implements TTrait.
References _locus_num, _sequence, and fatal().
Referenced by operator=(), and set_sequence().
|
virtual |
Implements TTrait.
References _allele_num, _init_model, _locus_num, _ploidy, _sequence, RAND::Bernoulli(), mutate(), and RAND::Uniform().
|
inlinevirtual |
Implements TTrait.
References _mutate_func_ptr.
Referenced by init_sequence().
|
inline |
References _2L, _locus_num, _mut_rate, _sequence, RAND::Binomial(), RAND::RandBool(), and RAND::Uniform().
Referenced by TProtoNeutralGenes::setParameters().
void TTNeutralGenes::mutate_KAM | ( | ) |
References _2L, _allele_num, _locus_num, _mut_rate, _sequence, RAND::Binomial(), RAND::RandBool(), and RAND::Uniform().
Referenced by TProtoNeutralGenes::setParameters().
|
inline |
Referenced by TProtoNeutralGenes::setParameters().
void TTNeutralGenes::mutate_SSM | ( | ) |
direction && all == 0
References _2L, _allele_num, _locus_num, _mut_rate, _sequence, RAND::Binomial(), RAND::RandBool(), and RAND::Uniform().
Referenced by TProtoNeutralGenes::setParameters().
|
virtual |
Implements TTrait.
|
virtual |
Implements TTrait.
References _2L, _allele_num, _locus_num, _ploidy, _sequence, init(), and reset().
|
virtual |
Implements TTrait.
References _allele_num, _locus_num, _ploidy, _type, and TTrait::get_type().
|
virtual |
Implements TTrait.
References _ploidy, and _sequence.
Referenced by operator=(), and set_sequence().
|
inlinevirtual |
Implements StorableComponent.
References _locus_num, _ploidy, _sequence, and BinaryStorageBuffer::read().
|
inline |
References _2L.
Referenced by TProtoNeutralGenes::hatch().
References _sequence.
Referenced by LCE_NtrlInit::init_allele_freq().
|
inline |
References _allele_num.
Referenced by TProtoNeutralGenes::hatch().
|
inlinevirtual |
|
inline |
References _inherit_func_ptr.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _init_model.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _locus_num.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _mutate_func_ptr.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _mut_model.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _mut_rate.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _myProto.
Referenced by TProtoNeutralGenes::hatch().
|
inline |
References _recomb_rate.
|
virtual |
|
inlinevirtual |
Implements TTrait.
|
inlinevirtual |
Implements TTrait.
|
virtual |
Implements TTrait.
References _allele_num, _locus_num, _sequence, and message().
|
inlinevirtual |
Implements StorableComponent.
References _locus_num, _ploidy, _sequence, and BinaryStorageBuffer::store().
|
private |
Referenced by mutate_2all(), mutate_KAM(), mutate_SSM(), operator=(), and set_2L().
|
private |
Referenced by get_allele_num(), init_sequence(), mutate_KAM(), mutate_SSM(), operator=(), operator==(), set_allele_num(), and show_up().
|
private |
Referenced by inherit(), and set_inherit_func_ptr().
|
private |
Referenced by init_sequence(), and set_init_model().
|
private |
|
private |
Referenced by set_mut_model().
|
private |
Referenced by mutate_2all(), mutate_KAM(), mutate_SSM(), and set_mut_rate().
|
private |
Referenced by mutate(), and set_mut_func_ptr().
|
private |
Referenced by inherit(), and set_proto().
|
private |
Referenced by get_allele_value(), get_ploidy(), init_sequence(), operator=(), operator==(), reset(), retrieve_data(), store_data(), and ~TTNeutralGenes().
|
private |
Referenced by set_recomb_rate().
|
private |
|
private |
Referenced by get_type(), and operator==().