Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Prototype class for the TTNeutralGenes trait class. More...
#include <ttneutralgenes.h>
Public Member Functions | |
TProtoNeutralGenes () | |
TProtoNeutralGenes (const TProtoNeutralGenes &T) | |
virtual | ~TProtoNeutralGenes () |
unsigned int | get_ploidy () |
unsigned int | get_locus_num () |
unsigned int | get_allele_num () |
TTNeutralGenesSH * | get_stater () |
void | inherit_low (sex_t SEX, unsigned char *seq, unsigned char **parent) |
void | inherit_free (sex_t SEX, unsigned char *seq, unsigned char **parent) |
virtual void | init () |
virtual void | reset () |
virtual TTNeutralGenes * | hatch () |
virtual TProtoNeutralGenes * | clone () |
virtual trait_t | get_type () const |
virtual bool | setParameters () |
virtual void | loadFileServices (FileServices *loader) |
virtual void | loadStatServices (StatServices *loader) |
virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt) |
virtual void | store_data (BinaryStorageBuffer *saver) |
virtual bool | retrieve_data (BinaryStorageBuffer *reader) |
![]() | |
TTProtoWithMap () | |
TTProtoWithMap (const TTProtoWithMap &TP) | |
virtual | ~TTProtoWithMap () |
void | setMapIndex (unsigned int idx) |
unsigned int | getMapIndex () |
bool | setGeneticMapParameters (string prefix) |
void | addGeneticMapParameters (string prefix) |
bool | setRecombinationMapRandom () |
bool | setRecombinationMapNonRandom (vector< vector< double > > *lociPositions) |
bool | setRecombinationMapFixed () |
bool | setNumLociPerChromosome (string param_name) |
void | reset_recombination_pointers () |
void | registerGeneticMap () |
void | unregisterFromGeneticMap () |
bool | areGeneticMapParamSet (string prefix) |
bool | isRecombinationFree (string prefix) |
void | recordRandomMap () |
virtual void | reset () |
![]() | |
virtual void | reset ()=0 |
Called at the end of a simulation to reset the Traits' prototypes (e.g. More... | |
virtual TTrait * | hatch ()=0 |
Creates the trait of which it is the prototype, called by IndFactory::makePrototype() . More... | |
virtual TraitPrototype * | clone ()=0 |
Returns a copy of itself. More... | |
virtual trait_t | get_type () const =0 |
Type accessor. More... | |
virtual void | set_index (int idx) |
Sets the traits index. More... | |
virtual int | get_index () |
Index getter. More... | |
![]() | |
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 () |
![]() | |
SimComponent () | |
virtual | ~SimComponent () |
virtual void | loadUpdaters (UpdaterServices *loader) |
Loads the parameters and component updater onto the updater manager. More... | |
virtual void | set_paramset (ParamSet *paramset) |
Sets the ParamSet member. More... | |
virtual void | set_paramset (std::string name, bool required, SimComponent *owner) |
Sets a new ParamSet and name it. More... | |
virtual void | set_paramsetFromCopy (const ParamSet &PSet) |
Reset the set of parameters from a another set. More... | |
virtual ParamSet * | get_paramset () |
ParamSet accessor. More... | |
virtual void | add_parameter (Param *param) |
Interface to add a parameter to the set. More... | |
virtual void | add_parameter (std::string Name, param_t Type, bool isRequired, bool isBounded, double low_bnd, double up_bnd) |
Interface to add a parameter to the set. More... | |
virtual void | add_parameter (std::string Name, param_t Type, bool isRequired, bool isBounded, double low_bnd, double up_bnd, ParamUpdaterBase *updater) |
Interface to add a parameter and its updater to the set. More... | |
virtual Param * | get_parameter (std::string name) |
Param getter. More... | |
virtual double | get_parameter_value (std::string name) |
Param value getter. More... | |
virtual string | get_name () |
Returnd the name of the ParamSet, i.e. More... | |
virtual bool | has_parameter (std::string name) |
Param getter. More... | |
Private Attributes | |
unsigned int | _allele_num |
unsigned int | _locus_num |
unsigned int | _ploidy |
double | _mut_rate |
int | _mut_model |
unsigned short | _init_model |
double | _recomb_rate |
void(TTNeutralGenes::* | _mutate_func_ptr )(void) |
void(TProtoNeutralGenes::* | _inherit_func_ptr )(sex_t, unsigned char *, unsigned char **) |
vector< TTNeutralGenesFH * > | _writers |
TTNeutralGenesSH * | _stats |
const trait_t | _type |
Additional Inherited Members | |
![]() | |
static void | recombine (unsigned long indID) |
![]() | |
static GeneticMap | _map |
![]() | |
unsigned int | _mapIndex |
double | _totRecombEventsMean |
double | _recombRate |
double | _mapResolution |
unsigned int | _numChromosome |
unsigned int | _numLoci |
double * | _recombRatePerChrmsm |
unsigned int * | _numLociPerChrmsm |
unsigned int * | _chrsmLength |
unsigned int * | _lociMapPositions |
![]() | |
int | _index |
The trait index in the Individual traits table. More... | |
![]() | |
ParamSet * | _paramSet |
The parameters container. More... | |
Prototype class for the TTNeutralGenes trait class.
TProtoNeutralGenes::TProtoNeutralGenes | ( | ) |
References SimComponent::add_parameter(), TTProtoWithMap::addGeneticMapParameters(), BOOL, DBL, INT, SimComponent::set_paramset(), and STR.
Referenced by clone().
TProtoNeutralGenes::TProtoNeutralGenes | ( | const TProtoNeutralGenes & | T | ) |
References SimComponent::_paramSet.
|
virtual |
|
inlinevirtual |
|
inline |
References _allele_num.
Referenced by TTNeutralGenesFH::FHread(), TTNeutralGenesSH::init(), TTNeutralGenesSH::setAlleleTables(), TTNeutralGenesSH::setFreqRecorders(), TTNeutralGenesSH::setFst_li(), TTNeutralGenesSH::setFstat(), TTNeutralGenesSH::setFstat2(), TTNeutralGenesSH::setFstatWeirCockerham(), TTNeutralGenesSH::setFstatWeirCockerham_MS(), TTNeutralGenesSH::setFstMatrix(), TTNeutralGenesSH::setHeteroTable(), TTNeutralGenesSH::setHeterozygosity(), TTNeutralGenesSH::setHs(), TTNeutralGenesSH::setHs2(), TTNeutralGenesSH::setHt(), TTNeutralGenesSH::setHt2(), TTNeutralGenesSH::setLociDivCounter(), TTNeutralGenesSH::setNeiGeneticDistance(), LCE_NtrlInit::setParameters(), TTNeutralGenesFH::write_Fst_i(), TTNeutralGenesFH::write_FSTAT(), TTNeutralGenesFH::write_GENEPOP(), TTNeutralGenesFH::write_PLINK(), and TTNeutralGenesFH::write_varcompWC().
|
inline |
References _locus_num.
Referenced by TTNeutralGenesFH::FHread(), TTNeutralGenesSH::getDxyPerPatch(), TTNeutralGenesSH::init(), TTNeutralGenesFH::print_PLINK_PED(), TTNeutralGenesSH::setAdults_Theta(), TTNeutralGenesSH::setAlleleTables(), TTNeutralGenesSH::setCoaMatrix(), TTNeutralGenesSH::setFreqRecorders(), TTNeutralGenesSH::setFst_li(), TTNeutralGenesSH::setFstat(), TTNeutralGenesSH::setFstat2(), TTNeutralGenesSH::setFstatWeirCockerham(), TTNeutralGenesSH::setFstatWeirCockerham_MS(), TTNeutralGenesSH::setFstMatrix(), TTNeutralGenesSH::setHeteroTable(), TTNeutralGenesSH::setHeterozygosity(), TTNeutralGenesSH::setHo(), TTNeutralGenesSH::setHo2(), TTNeutralGenesSH::setHs(), TTNeutralGenesSH::setHs2(), TTNeutralGenesSH::setHt(), TTNeutralGenesSH::setHt2(), TTNeutralGenesSH::setLociDivCounter(), TTNeutralGenesSH::setNeiGeneticDistance(), LCE_NtrlInit::setParameters(), TTNeutralGenesSH::setSibCoa(), TTNeutralGenesFH::write_Fst_i(), TTNeutralGenesFH::write_FSTAT(), TTNeutralGenesFH::write_GENEPOP(), TTNeutralGenesFH::write_patch_FSTAT(), TTNeutralGenesFH::write_patch_GENEPOP(), TTNeutralGenesFH::write_patch_TAB(), TTNeutralGenesFH::write_PLINK(), TTNeutralGenesFH::write_PLINK_BED(), TTNeutralGenesFH::write_TAB(), and TTNeutralGenesFH::write_varcompWC().
|
inline |
References _ploidy.
Referenced by TTNeutralGenesFH::print_PLINK_PED(), TTNeutralGenesFH::write_FSTAT(), TTNeutralGenesFH::write_GENEPOP(), TTNeutralGenesFH::write_patch_FSTAT(), TTNeutralGenesFH::write_patch_GENEPOP(), TTNeutralGenesFH::write_patch_TAB(), TTNeutralGenesFH::write_PLINK(), TTNeutralGenesFH::write_PLINK_BED(), and TTNeutralGenesFH::write_TAB().
|
inline |
References _stats.
Referenced by TTNeutralGenesFH::write_Fst_i(), and TTNeutralGenesFH::write_varcompWC().
|
inlinevirtual |
Implements TraitPrototype.
References _type.
Referenced by TTNeutralGenesFH::write_PLINK().
|
virtual |
Implements TraitPrototype.
References _allele_num, _inherit_func_ptr, _init_model, _locus_num, _mut_model, _mut_rate, _mutate_func_ptr, _ploidy, TTProtoWithMap::_recombRate, inherit_free(), inherit_low(), TTNeutralGenes::set_2L(), TTNeutralGenes::set_allele_num(), TTNeutralGenes::set_inherit_func_ptr(), TTNeutralGenes::set_init_model(), TTNeutralGenes::set_locus_num(), TTNeutralGenes::set_mut_func_ptr(), TTNeutralGenes::set_mut_model(), TTNeutralGenes::set_mut_rate(), and TTNeutralGenes::set_proto().
|
inline |
References _locus_num, and RAND::RandBool().
Referenced by hatch(), and setParameters().
|
inline |
References TTProtoWithMap::_map, TTProtoWithMap::_mapIndex, TTProtoWithMap::_numChromosome, TTProtoWithMap::_numLociPerChrmsm, GeneticMap::getFirstRecPosition(), and GeneticMap::getRecLoci().
Referenced by hatch(), and setParameters().
|
inlinevirtual |
|
virtual |
Implements SimComponent.
References _writers, FileServices::attach(), FileServices::attach_reader(), fatal(), SimComponent::get_parameter(), Param::getMatrix(), Param::getValue(), Param::isMatrix(), Param::isSet(), TraitFileHandler< TP >::set(), FileHandler::set_extension(), FileHandler::set_isInputHandler(), FileHandler::set_multi(), TTNeutralGenesFH::set_write_fct(), TTNeutralGenesFH::setOutputOption(), warning(), TTNeutralGenesFH::write_Fst_i(), TTNeutralGenesFH::write_FSTAT(), TTNeutralGenesFH::write_GENEPOP(), TTNeutralGenesFH::write_PLINK(), TTNeutralGenesFH::write_TAB(), and TTNeutralGenesFH::write_varcompWC().
|
virtual |
Implements SimComponent.
References _stats, and StatServices::attach().
|
inlinevirtual |
Reimplemented from TTProtoWithMap.
References TTProtoWithMap::reset().
|
virtual |
Implements SimComponent.
References error(), SimComponent::get_parameter(), and Param::isSet().
|
virtual |
Implements StorableComponent.
References _locus_num, BinaryStorageBuffer::read(), and warning().
|
virtual |
Implements SimComponent.
References _allele_num, _inherit_func_ptr, _init_model, _locus_num, _mut_model, _mut_rate, _mutate_func_ptr, _ploidy, TTProtoWithMap::_recombRate, error(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), inherit_free(), inherit_low(), TTProtoWithMap::isRecombinationFree(), Param::isSet(), TTNeutralGenes::mutate_2all(), TTNeutralGenes::mutate_KAM(), TTNeutralGenes::mutate_NULL(), TTNeutralGenes::mutate_SSM(), and TTProtoWithMap::setGeneticMapParameters().
|
inlinevirtual |
Implements StorableComponent.
References _locus_num, and BinaryStorageBuffer::store().
|
private |
Referenced by get_allele_num(), hatch(), and setParameters().
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by get_locus_num(), hatch(), inherit_free(), retrieve_data(), setParameters(), and store_data().
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by get_ploidy(), hatch(), and setParameters().
|
private |
|
private |
Referenced by get_stater(), loadStatServices(), and ~TProtoNeutralGenes().
|
private |
Referenced by get_type().
|
private |
Referenced by loadFileServices(), and ~TProtoNeutralGenes().