|
Rosetta
|
Take a single individual, and returns a desired number of point mutated individuals based on the input one. More...
#include <Mutator.hh>

Public Member Functions | |
| Mutator (FragmentLibrary const &library, utility::vector1< core::Real > const &weights, core::Real min_similarity, core::Real max_similarity) | |
| utility::vector1< Individual > | apply (utility::vector1< Individual > const &parents, core::Size n_offspring) const override |
| Accepts a list of parents and creates n_offspring mutants @detail Based on the internal values this mutation process changes either one of the reagents or the reaction and maps offspring to the closest ligand. More... | |
| std::string const & | name () const override |
| Returns the name of this mutator. More... | |
| void | set_min_similarity (core::Real min_similarity) |
| Sets the minimum similarity for mutations. More... | |
| void | set_max_similarity (core::Real max_similarity) |
| Sets the maximum similarity for mutations. More... | |
Private Member Functions | |
| Individual | mutate (Individual const &individual) const |
Private Attributes | |
| core::Real | min_similarity_ = 0.6 |
| If possible this is the minimum similarity at which a reagent point mutation will be selected. More... | |
| core::Real | max_similarity_ = 0.99 |
| This is the maximum similarity for reagents to be considered as possible mutants. More... | |
| FragmentLibrary const & | library_ |
| Since this function regularly produces offspring and consults a FragmentLibrary for this, it keeps a ownership to one. More... | |
| numeric::random::WeightedSampler | reaction_or_reagent_ |
| Randomly chooses what feature will be mutated based on the given weights. More... | |
| std::string | name_ = "Mutator" |
| A name to identify the type of this object. More... | |
Take a single individual, and returns a desired number of point mutated individuals based on the input one.
| protocols::ligand_evolution::Mutator::Mutator | ( | FragmentLibrary const & | library, |
| utility::vector1< core::Real > const & | weights, | ||
| core::Real | min_similarity, | ||
| core::Real | max_similarity | ||
| ) |
|
overridevirtual |
Accepts a list of parents and creates n_offspring mutants @detail Based on the internal values this mutation process changes either one of the reagents or the reaction and maps offspring to the closest ligand.
Implements protocols::ligand_evolution::OffspringFactory.
References mutate(), and protocols::TR().
|
private |
References protocols::ligand_evolution::FragmentLibrary::get_similar_reagents(), protocols::ligand_evolution::Individual::id(), protocols::ligand_evolution::Individual::identifier(), library_, max_similarity_, min_similarity_, protocols::ligand_evolution::FragmentLibrary::random_reaction(), reaction_or_reagent_, protocols::ligand_evolution::FragmentLibrary::reaction_positions(), protocols::ligand_evolution::FragmentLibrary::reagents_size(), and protocols::TR().
Referenced by apply().
|
overridevirtual |
Returns the name of this mutator.
Implements protocols::ligand_evolution::OffspringFactory.
References name_.
| void protocols::ligand_evolution::Mutator::set_max_similarity | ( | core::Real | max_similarity | ) |
Sets the maximum similarity for mutations.
References max_similarity_.
| void protocols::ligand_evolution::Mutator::set_min_similarity | ( | core::Real | min_similarity | ) |
Sets the minimum similarity for mutations.
References min_similarity_.
|
private |
Since this function regularly produces offspring and consults a FragmentLibrary for this, it keeps a ownership to one.
Referenced by mutate().
|
private |
This is the maximum similarity for reagents to be considered as possible mutants.
Referenced by mutate(), and set_max_similarity().
|
private |
If possible this is the minimum similarity at which a reagent point mutation will be selected.
Referenced by mutate(), and set_min_similarity().
|
private |
|
private |
Randomly chooses what feature will be mutated based on the given weights.
Referenced by mutate().