|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Prototype class of the bitstring-deleterious mutations trait class. More...
#include <ttdeletmutations_bitstring.h>
Inheritance diagram for TProtoDeletMutations_bitstring:
Collaboration diagram for TProtoDeletMutations_bitstring:Public Member Functions | |
| TProtoDeletMutations_bitstring () | |
| TProtoDeletMutations_bitstring (const TProtoDeletMutations_bitstring &T) | |
| ~TProtoDeletMutations_bitstring () | |
Getters | |
| int | get_nb_locus () |
| double | get_mut_rate () |
| double | get_backmutation_rate () |
| double | get_strength () |
| double | get_dominance () |
| int | get_dominance_model () |
| bool | get_iscontinuous () |
| double | get_init_freq () |
| double | get_fitness_scaling_factor () |
| float * | get_s_continous () |
| float * | get_hs_continous () |
| float ** | get_effects () const |
| float | get_effect (unsigned int at, unsigned int loc) |
Setters | |
| void | set_effects () |
| void | set_effect (unsigned int at, unsigned int loc, float val) |
| double | set_effects_exp () |
| double | set_effects_gamma () |
| double | set_effects_lognorm () |
| void | reset_effect_table () |
| void | write_effects_to_parameter () |
Parameter setters | |
| bool | setSelectionParameters () |
| bool | setEffectsFromInput () |
Inheritance functions | |
| void | inherit_low (sex_t SEX, bitstring *seq, bitstring **parent) |
| void | inherit_free (sex_t SEX, bitstring *seq, bitstring **parent) |
TraitPrototype implementations | |
| virtual void | init () |
| virtual void | reset () |
| virtual TTDeletMutations_bitstring * | hatch () |
| virtual TProtoDeletMutations_bitstring * | clone () |
| virtual trait_t | get_type () const |
StorageComponent implementation | |
| virtual void | store_data (BinaryStorageBuffer *saver) |
| virtual bool | retrieve_data (BinaryStorageBuffer *reader) |
SimComponent implementation | |
| virtual bool | setParameters () |
| virtual void | loadFileServices (FileServices *loader) |
| virtual void | loadStatServices (StatServices *loader) |
| virtual bool | resetParameterFromSource (std::string param, SimComponent *cmpt) |
Public Member Functions inherited from TTProtoWithMap | |
| 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 () |
Public Member Functions inherited from TraitPrototype | |
| virtual void | set_index (int idx) |
| Sets the traits index. More... | |
| virtual int | get_index () |
| Index getter. More... | |
Public Member Functions inherited from StorableComponent | |
| virtual | ~StorableComponent () |
Public Member Functions inherited from SimComponent | |
| 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 | _nb_locus |
| unsigned int | _fitness_model |
| unsigned int | _mutation_model |
| int | _dominance_model |
| double | _fitness_scaling_factor |
| double | _init_freq |
| double | _mut_rate |
| double | _back_mutation_rate |
| double | _strength |
| double | _dominance |
| double | _dist_p1 |
| double | _dist_p2 |
| bool | _continuous_effects |
| double(TTDeletMutations_bitstring::* | _viability_func_ptr )(void) |
| double(TProtoDeletMutations_bitstring::* | _set_effects_func )(void) |
| void(TProtoDeletMutations_bitstring::* | _inherit_func_ptr )(sex_t, bitstring *, bitstring **) |
| TTDeletMutBitstrSH * | _stats |
| TTDeletMutBitstrFH * | _writer |
| TTDeletMutBitstrFH * | _reader |
| float ** | _effects |
Additional Inherited Members | |
Static Public Member Functions inherited from TTProtoWithMap | |
| static void | recombine (unsigned long indID) |
Static Public Attributes inherited from TTProtoWithMap | |
| static GeneticMap | _map |
Protected Attributes inherited from TTProtoWithMap | |
| 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 |
Protected Attributes inherited from TraitPrototype | |
| int | _index |
| The trait index in the Individual traits table. More... | |
Protected Attributes inherited from SimComponent | |
| ParamSet * | _paramSet |
| The parameters container. More... | |
Prototype class of the bitstring-deleterious mutations trait class.
| TProtoDeletMutations_bitstring::TProtoDeletMutations_bitstring | ( | ) |
References SimComponent::add_parameter(), TTProtoWithMap::addGeneticMapParameters(), BOOL, DBL, INT, MAT, SimComponent::set_paramset(), and STR.
Referenced by clone().
| TProtoDeletMutations_bitstring::TProtoDeletMutations_bitstring | ( | const TProtoDeletMutations_bitstring & | T | ) |
References SimComponent::_paramSet.
| TProtoDeletMutations_bitstring::~TProtoDeletMutations_bitstring | ( | ) |
|
inlinevirtual |
Implements TraitPrototype.
References TProtoDeletMutations_bitstring().
|
inline |
References _back_mutation_rate.
Referenced by TTDeletMutations_bitstring::mutate_noredraw(), and TTDeletMutations_bitstring::set_mutation_func_ptr().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References _continuous_effects.
Referenced by TTDeletMutBitstrFH::FHwrite(), and TTDeletMutBitstrSH::TTDeletMutBitstrSH().
|
inline |
|
inline |
References _nb_locus.
Referenced by TTDeletMutBitstrFH::FHread(), TTDeletMutBitstrFH::FHwrite(), TTDeletMutBitstrSH::setDeletStats(), and TTDeletMutBitstrSH::setLethalEquivalents().
|
inline |
References _effects.
Referenced by TTDeletMutBitstrFH::FHwrite(), and TTDeletMutBitstrSH::setLethalEquivalents().
|
inline |
|
inlinevirtual |
Implements TraitPrototype.
References DELE.
|
virtual |
Implements TraitPrototype.
References _continuous_effects, _fitness_model, _inherit_func_ptr, _mut_rate, _mutation_model, _nb_locus, TTDeletMutations_bitstring::set_inherit_func_ptr(), TTDeletMutations_bitstring::set_mut_rate(), TTDeletMutations_bitstring::set_mutation_func_ptr(), TTDeletMutations_bitstring::set_nb_locus(), TTDeletMutations_bitstring::set_proto(), and TTDeletMutations_bitstring::set_viability_func_ptr().
|
inline |
References _nb_locus, and RAND::RandBool().
|
inline |
References TTProtoWithMap::_map, TTProtoWithMap::_mapIndex, bitstring::copy(), and GeneticMap::reduceJunctions().
Referenced by setParameters().
|
inlinevirtual |
References setParameters().
|
virtual |
Implements SimComponent.
References _reader, _writer, FileServices::attach(), FileServices::attach_reader(), SimComponent::get_parameter(), Param::getMatrix(), Param::getValue(), Param::isMatrix(), Param::isSet(), TraitFileHandler< TP >::set(), FileHandler::set_isInputHandler(), and TraitFileHandler< TP >::set_multi().
|
virtual |
Implements SimComponent.
References _stats, and StatServices::attach().
|
inlinevirtual |
| void TProtoDeletMutations_bitstring::reset_effect_table | ( | ) |
References _effects, and _nb_locus.
Referenced by resetParameterFromSource(), set_effects(), and setEffectsFromInput().
|
virtual |
Implements SimComponent.
References _effects, _nb_locus, error(), get_effects(), reset_effect_table(), and write_effects_to_parameter().
|
virtual |
Implements StorableComponent.
References _continuous_effects, _effects, _nb_locus, error(), BinaryStorageBuffer::read(), and warning().
|
inline |
References _effects.
Referenced by TTDeletMutBitstrFH::FHread(), and TTDeletMutations_bitstring::set_allele_value().
| void TProtoDeletMutations_bitstring::set_effects | ( | ) |
References _dominance, _dominance_model, _effects, _nb_locus, _set_effects_func, _strength, reset_effect_table(), and write_effects_to_parameter().
Referenced by setSelectionParameters().
|
inline |
|
inline |
|
inline |
| bool TProtoDeletMutations_bitstring::setEffectsFromInput | ( | ) |
References _continuous_effects, _effects, _nb_locus, error(), TMatrix::get(), SimComponent::get_parameter(), Param::getMatrix(), TMatrix::getNbCols(), TMatrix::getNbRows(), and reset_effect_table().
Referenced by setSelectionParameters().
|
virtual |
Implements SimComponent.
References _back_mutation_rate, _fitness_model, _fitness_scaling_factor, _inherit_func_ptr, _init_freq, _mut_rate, _mutation_model, _nb_locus, error(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), inherit_low(), Param::isSet(), TTProtoWithMap::setGeneticMapParameters(), and setSelectionParameters().
Referenced by init().
| bool TProtoDeletMutations_bitstring::setSelectionParameters | ( | ) |
References _continuous_effects, _dist_p1, _dist_p2, _dominance, _dominance_model, SimComponent::_paramSet, _set_effects_func, _strength, error(), SimComponent::get_parameter(), SimComponent::get_parameter_value(), ParamSet::getArg(), set_effects(), set_effects_exp(), set_effects_gamma(), set_effects_lognorm(), and setEffectsFromInput().
Referenced by setParameters().
|
virtual |
Implements StorableComponent.
References _continuous_effects, _effects, _nb_locus, and BinaryStorageBuffer::store().
| void TProtoDeletMutations_bitstring::write_effects_to_parameter | ( | ) |
References _effects, _nb_locus, SimComponent::get_parameter(), Param::setArg(), and Param::setIsSet().
Referenced by resetParameterFromSource(), and set_effects().
|
private |
Referenced by get_backmutation_rate(), and setParameters().
|
private |
Referenced by get_iscontinuous(), hatch(), retrieve_data(), setEffectsFromInput(), setSelectionParameters(), and store_data().
|
private |
Referenced by set_effects_gamma(), set_effects_lognorm(), and setSelectionParameters().
|
private |
Referenced by set_effects_gamma(), set_effects_lognorm(), and setSelectionParameters().
|
private |
Referenced by get_dominance(), set_effects(), and setSelectionParameters().
|
private |
Referenced by get_dominance_model(), set_effects(), and setSelectionParameters().
|
private |
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by get_fitness_scaling_factor(), and setParameters().
|
private |
Referenced by hatch(), and setParameters().
|
private |
Referenced by get_init_freq(), and setParameters().
|
private |
Referenced by get_mut_rate(), hatch(), and setParameters().
|
private |
Referenced by hatch(), and setParameters().
|
private |
|
private |
Referenced by loadFileServices(), and ~TProtoDeletMutations_bitstring().
|
private |
Referenced by set_effects(), and setSelectionParameters().
|
private |
Referenced by loadStatServices(), and ~TProtoDeletMutations_bitstring().
|
private |
Referenced by get_strength(), set_effects(), set_effects_exp(), and setSelectionParameters().
|
private |
|
private |
Referenced by loadFileServices(), and ~TProtoDeletMutations_bitstring().
1.9.1 -- Nemo is hosted on