Rosetta
|
Main mover for Glycan Relax, which optimizes glycans in a pose. Each round optimizes either one residue for BB sampling, linkage, or multiple for minimization. Currently uses a random sampler with a set of weights to each mover for sampling. More...
#include <GlycanSampler.hh>
Public Member Functions | |
GlycanSampler () | |
GlycanSampler (core::select::residue_selector::ResidueSelectorCOP selector, core::scoring::ScoreFunctionCOP scorefxn, core::Size rounds=75) | |
GlycanSampler (GlycanSampler const &src) | |
~GlycanSampler () override | |
void | apply (core::pose::Pose &pose) override |
Main Method. More... | |
void | provide_citation_info (basic::citation_manager::CitationCollectionList &) const override |
Provide the citation. More... | |
void | set_residue_selector (core::select::residue_selector::ResidueSelectorCOP selector) |
Set the Movemap. More... | |
void | set_selector (core::select::residue_selector::ResidueSelectorCOP selector) |
Set a ResidueSelector for glycan residue selection, instead of the typical movemap. More... | |
void | set_taskfactory (core::pack::task::TaskFactoryCOP tf) |
Set the TaskFactory to control side-chain packing of surrounding amino acids and the OH groups of the glycans. More... | |
void | set_scorefunction (core::scoring::ScoreFunctionCOP scorefxn) |
Set the ScoreFunction. More... | |
void | set_rounds (core::Size rounds) |
Each round applys a random mover to pose. This setting is multiplied by the number of glycan residues in the movemap for the total number of rounds. More... | |
void | set_population_based_conformer_sampling (bool pop_based_sampling) |
Set how our Conformer mover samples. Default is to do uniform sampling on the conformers instead of using the population as probabilities. More... | |
void | set_use_gaussian_sampling (bool use_gaussian_sampling) |
Set whether if we are sampling torsions uniformly within an SD for the LinkageConformerMover (false) or sampling the gaussian (true). Default false. More... | |
void | set_kt (core::Real kt) |
void | set_defaults () |
void | use_cartmin (bool use_cartmin) |
Use Cartesian minimization instead of Dihedral minimization. Default (for now) is dihedral. More... | |
void | set_refine (bool refine) |
Set refinement mode instead of denovo modeling mode. More... | |
void | set_min_rings (bool min_rings) |
set to minimize ring torsions during minimzation. Default false. More... | |
void | set_use_shear (bool use_shear) |
Set the protocol to use the refactored Shear Mover for glycan torsions at 10 % probability. Default false. More... | |
void | set_randomize_first (bool randomize_first) |
Set the protocol to randomize torsions before beginning. This actually helps get to lower energy models. Default True. If doing refinement, this is automatically turned off. More... | |
void | set_inner_bb_cycles (core::Size inner_bb_cycles) |
Set the number of inner cycles for BB sampling through small/sugarBB. This is multiplied by the number of glycan residues Default 1. More... | |
void | set_protein_linkage_prob_sampling (bool root_probs) |
Set Conformer Sampling through probabilities at the linkage to the protein only. More... | |
void | show (std::ostream &output=std::cout) const override |
Outputs details about the Mover, including current settings. More... | |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data) override |
parse XML tag (to use this Mover in Rosetta Scripts) More... | |
moves::MoverOP | fresh_instance () const override |
required in the context of the parser/scripting scheme More... | |
protocols::moves::MoverOP | clone () const override |
required in the context of the parser/scripting scheme More... | |
bool | reinitialize_for_each_job () const override |
Inform the Job Distributor (August '08 vintage) whether this object needs to be freshly regenerated on each use. More... | |
std::string | get_name () const override |
Each derived class must specify its name. The class name. More... | |
void | randomize_glycan_torsions (core::pose::Pose &pose, utility::vector1< bool > const &subset) const |
Randomize all torsions of the subset. Used to start the protocol. More... | |
void | idealize_glycan_residues (core::pose::Pose &pose, utility::vector1< core::Size > const &tree_subset) const |
Attempt to idealize all residues in of a set of trees. Experimental! More... | |
core::Size | get_glycan_sampler_rounds () |
Get the number of glycan sampler rounds this class is set to run. More... | |
void | force_total_rounds (core::Size total_rounds) |
This allows us to force a number of rounds instead of doing rounds*glycan residues. More... | |
![]() | |
Mover () | |
virtual MoverOP | create () |
MoverCOP | get_self_ptr () const |
MoverOP | get_self_ptr () |
MoverCAP | get_self_weak_ptr () const |
MoverAP | get_self_weak_ptr () |
Mover (std::string const &type_name) | |
sets the type for a mover; name_ has been removed (2010/05/14) More... | |
virtual void | test_move (Pose &pose) |
: Unit test support function. Apply one move to a given pose. Allows extra test specific functions to be called before applying More... | |
virtual bool | reinitialize_for_new_input () const |
Inform the Job Distributor (August '08 vintage) whether this object needs to be regenerated when the input pose is about to change, (for example, if the Mover has special code on the first apply() that is only valid for that one input pose). More... | |
MoverStatus | get_last_move_status () const |
end parser interface, start Job Distributor interface///////////// More... | |
void | reset_status () |
resets status to SUCCESS, meant to be used before an apply(). The job distributor (august 08 vintage) uses this to ensure non-accumulation of status across apply()s. More... | |
virtual core::pose::PoseOP | get_additional_output () |
Mechanism by which a mover may return multiple output poses from a single input pose. More... | |
void | set_type (std::string const &setting) |
Set the 'type' string. More... | |
std::string | get_type () const |
void | type (const std::string &type_in) |
Set the 'type' string. More... | |
std::string const & | type () const |
Get the set 'type' string. More... | |
virtual void | set_input_pose (PoseCOP pose) |
setter for poses contained for rms More... | |
virtual void | set_native_pose (PoseCOP pose) |
setter for native poses contained for rms -— we should get rid of this method? it is widely used, but a bit unsafe More... | |
PoseCOP | get_input_pose () const |
PoseCOP | get_native_pose () const |
void | set_current_job (protocols::jobdist::BasicJobCOP job) |
jobdist::BasicJobCOP | get_current_job () const |
virtual void | set_current_tag (std::string const &new_tag) |
std::string | get_current_tag () const |
A tag is a unique identifier used to identify structures produced by this Mover. get_current_tag() returns the tag, and set_current_tag( std::string tag ) sets the tag. This functionality is not intended for use with the 2008 job distributor. More... | |
virtual core::Real | last_proposal_density_ratio () |
virtual void | clear_info () |
Strings container can be used to return miscellaneous info (as std::string) from a mover, such as notes about the results of apply(). The job distributor (Apr 09 vintage) will check this function to see if your protocol wants to add string info to the Job that ran this mover. One way this can be useful is that later, a JobOutputter may include/append this info to an output file. More... | |
virtual Strings & | info () |
non-const accessor More... | |
virtual Strings const & | info () const |
const accessor More... | |
Static Public Member Functions | |
static std::string | mover_name () |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
![]() | |
static std::string | name () |
static void | register_options () |
Overload this static method if you access options within the mover. More... | |
Private Member Functions | |
void | init_objects (core::pose::Pose &pose) |
Initialize all objects. Called at apply time! More... | |
void | set_cmd_line_defaults () |
void | apply_to_res (core::pose::Pose &pose, core::Size resnum, core::kinematics::MoveMapOP mm, core::scoring::ScoreFunctionOP score, core::Size round) |
void | setup_default_task_factory (utility::vector1< bool > const &glycan_residues, core::pose::Pose const &pose) |
void | setup_score_function () |
void | setup_cartmin (core::scoring::ScoreFunctionOP scorefxn) const |
void | setup_movers (core::pose::Pose &pose, utility::vector1< bool > const &dihedral_subset, utility::vector1< bool > const &sugar_bb_subset, utility::vector1< bool > const &subset) |
void | setup_packer (core::pose::Pose &pose, utility::vector1< bool > const &full_subset) |
Additional Inherited Members | |
![]() | |
typedef utility::tag::TagCOP | TagCOP |
typedef core::pose::Pose | Pose |
typedef core::pose::PoseCOP | PoseCOP |
typedef std::list< std::string > | Strings |
![]() | |
void | set_last_move_status (MoverStatus status) |
nonvirtual setter for MoverStatus last_status_. Protected means that only the mover itself will be able to change its own status. The job distributor (august 08 vintage) is aware of status set with this function and will do what the MoverStatus says. More... | |
Main mover for Glycan Relax, which optimizes glycans in a pose. Each round optimizes either one residue for BB sampling, linkage, or multiple for minimization. Currently uses a random sampler with a set of weights to each mover for sampling.
Weights are currently as follows: .40 Phi/Psi Sugar BB Sampling .20 Linkage Conformer Sampling .30 Small BB Sampling - equal weight to phi, psi, or omega -> .17 +/- 15 degrees -> .086 +/- 45 degrees -> .044 +/- 90 degrees .05 GlycanTreeMinMover .05 PackRotamersMover
Supports Symmetry
protocols::carbohydrates::GlycanSampler::GlycanSampler | ( | ) |
References set_defaults().
protocols::carbohydrates::GlycanSampler::GlycanSampler | ( | core::select::residue_selector::ResidueSelectorCOP | selector, |
core::scoring::ScoreFunctionCOP | scorefxn, | ||
core::Size | rounds = 75 |
||
) |
References scorefxn_, selector_, set_defaults(), and set_rounds().
protocols::carbohydrates::GlycanSampler::GlycanSampler | ( | GlycanSampler const & | src | ) |
References linkage_mover_, mc_, min_mover_, packer_, scorefxn_, selector_, shear_, tf_, and weighted_random_mover_.
|
overridedefault |
|
overridevirtual |
Main Method.
Implements protocols::moves::Mover.
References accept_log_, core::pose::add_comment(), protocols::moves::PyMOLMover::apply(), protocols::buns::energy, final_min_, final_residue_subset_, forced_total_rounds_, protocols::moves::PyMOLMover::get_PyMOL_model_name(), protocols::carbohydrates::get_total_rounds_for_overlap_one_layer_two(), init_objects(), protocols::moves::PyMOLMover::keep_history(), kt_, match_sampling_of_modeler_, mc_, min_mover_, protocols::moves::MS_SUCCESS, core::conformation::membrane::out, packer_, pymol_movie_, protocols::noesy_assign::round(), rounds_, protocols::carbohydrates::run_shear_min_pack(), scorefxn_, protocols::moves::PyMOLMover::set_PyMOL_model_name(), shear_, core::id::to_string(), total_glycan_residues_, protocols::TR(), use_shear_, and weighted_random_mover_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
|
private |
|
overridevirtual |
required in the context of the parser/scripting scheme
Reimplemented from protocols::moves::Mover.
void protocols::carbohydrates::GlycanSampler::force_total_rounds | ( | core::Size | total_rounds | ) |
This allows us to force a number of rounds instead of doing rounds*glycan residues.
References forced_total_rounds_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
|
overridevirtual |
required in the context of the parser/scripting scheme
Reimplemented from protocols::moves::Mover.
core::Size protocols::carbohydrates::GlycanSampler::get_glycan_sampler_rounds | ( | ) |
Get the number of glycan sampler rounds this class is set to run.
References rounds_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
|
overridevirtual |
Each derived class must specify its name. The class name.
Implements protocols::moves::Mover.
References mover_name().
void protocols::carbohydrates::GlycanSampler::idealize_glycan_residues | ( | core::pose::Pose & | pose, |
utility::vector1< core::Size > const & | tree_subset | ||
) | const |
Attempt to idealize all residues in of a set of trees. Experimental!
References protocols::TR().
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
|
private |
Initialize all objects. Called at apply time!
References core::select::residue_selector::count_selected(), final_residue_subset_, core::select::get_master_subunit_selection(), core::pose::Pose::glycan_tree_set(), core::conformation::Residue::is_carbohydrate(), core::pose::symmetry::is_symmetric(), randomize_first_, randomize_glycan_torsions(), refine_, core::pose::Pose::residue(), scorefxn_, selector_, setup_movers(), setup_packer(), setup_score_function(), core::id::to_string(), total_glycan_residues_, core::pose::Pose::total_residue(), and protocols::TR().
Referenced by apply().
|
static |
|
overridevirtual |
parse XML tag (to use this Mover in Rosetta Scripts)
Reimplemented from protocols::moves::Mover.
References cartmin_, final_min_, inner_ncycles_, kt_, match_sampling_of_modeler_, min_rings_, pack_distance_, core::select::residue_selector::parse_residue_selector(), core::scoring::parse_score_function(), core::pack::task::parse_task_operations(), population_based_conformer_sampling_, pymol_movie_, randomize_first_, root_prob_sampling_, rounds_, scorefxn_, selector_, set_taskfactory(), tree_based_min_pack_, use_gaussian_sampling_, and use_shear_.
|
overridevirtual |
|
static |
References core::scoring::attributes_for_get_score_function_name(), protocols::rosetta_scripts::attributes_for_parse_residue_selector(), core::pack::task::attributes_for_parse_task_operations(), mover_name(), and protocols::moves::xsd_type_definition_w_attributes_and_repeatable_subelements().
Referenced by protocols::carbohydrates::GlycanSamplerCreator::provide_xml_schema().
void protocols::carbohydrates::GlycanSampler::randomize_glycan_torsions | ( | core::pose::Pose & | pose, |
utility::vector1< bool > const & | subset | ||
) | const |
Randomize all torsions of the subset. Used to start the protocol.
References core::conformation::carbohydrates::get_n_glycosidic_torsions_in_res(), core::pose::Pose::glycan_tree_set(), protocols::simple_moves::bb_sampler::SmallBBSampler::set_torsion_to_pose(), protocols::simple_moves::bb_sampler::BBDihedralSamplerBase::set_torsion_type(), core::pose::Pose::size(), and protocols::TR().
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply(), and init_objects().
|
inlineoverridevirtual |
Inform the Job Distributor (August '08 vintage) whether this object needs to be freshly regenerated on each use.
Movers default to not regenerating
Reimplemented from protocols::moves::Mover.
|
private |
References cartmin_, final_min_, kt_, min_rings_, population_based_conformer_sampling_, pymol_movie_, refine_, rounds_, test_, tree_based_min_pack_, and use_gaussian_sampling_.
Referenced by set_defaults().
void protocols::carbohydrates::GlycanSampler::set_defaults | ( | ) |
References cartmin_, final_min_, pack_distance_, set_cmd_line_defaults(), test_, and total_glycan_residues_.
Referenced by GlycanSampler().
void protocols::carbohydrates::GlycanSampler::set_inner_bb_cycles | ( | core::Size | inner_bb_cycles | ) |
Set the number of inner cycles for BB sampling through small/sugarBB. This is multiplied by the number of glycan residues Default 1.
References inner_ncycles_.
void protocols::carbohydrates::GlycanSampler::set_kt | ( | core::Real | kt | ) |
References kt_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_min_rings | ( | bool | min_rings | ) |
set to minimize ring torsions during minimzation. Default false.
References min_rings_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_population_based_conformer_sampling | ( | bool | pop_based_sampling | ) |
Set how our Conformer mover samples. Default is to do uniform sampling on the conformers instead of using the population as probabilities.
References population_based_conformer_sampling_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_protein_linkage_prob_sampling | ( | bool | root_probs | ) |
Set Conformer Sampling through probabilities at the linkage to the protein only.
References root_prob_sampling_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_randomize_first | ( | bool | randomize_first | ) |
Set the protocol to randomize torsions before beginning. This actually helps get to lower energy models. Default True. If doing refinement, this is automatically turned off.
References randomize_first_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_refine | ( | bool | refine | ) |
Set refinement mode instead of denovo modeling mode.
References refine_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_residue_selector | ( | core::select::residue_selector::ResidueSelectorCOP | selector | ) |
Set the Movemap.
References selector_.
void protocols::carbohydrates::GlycanSampler::set_rounds | ( | core::Size | rounds | ) |
Each round applys a random mover to pose. This setting is multiplied by the number of glycan residues in the movemap for the total number of rounds.
References rounds_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply(), and GlycanSampler().
void protocols::carbohydrates::GlycanSampler::set_scorefunction | ( | core::scoring::ScoreFunctionCOP | scorefxn | ) |
Set the ScoreFunction.
References scorefxn_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_selector | ( | core::select::residue_selector::ResidueSelectorCOP | selector | ) |
Set a ResidueSelector for glycan residue selection, instead of the typical movemap.
References selector_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_taskfactory | ( | core::pack::task::TaskFactoryCOP | tf | ) |
Set the TaskFactory to control side-chain packing of surrounding amino acids and the OH groups of the glycans.
References tf_.
Referenced by parse_my_tag(), and setup_default_task_factory().
void protocols::carbohydrates::GlycanSampler::set_use_gaussian_sampling | ( | bool | use_gaussian_sampling | ) |
Set whether if we are sampling torsions uniformly within an SD for the LinkageConformerMover (false) or sampling the gaussian (true). Default false.
References use_gaussian_sampling_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
void protocols::carbohydrates::GlycanSampler::set_use_shear | ( | bool | use_shear | ) |
Set the protocol to use the refactored Shear Mover for glycan torsions at 10 % probability. Default false.
References use_shear_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
|
private |
References core::scoring::cart_bonded, and core::scoring::pro_close.
Referenced by setup_score_function().
|
private |
References protocols::carbohydrates::get_all_glycans_and_neighbor_res_task_factory(), core::conformation::Residue::is_virtual_residue(), pack_distance_, core::pose::Pose::residue(), set_taskfactory(), core::pose::Pose::size(), core::pose::Pose::total_residue(), protocols::TR(), and tree_based_min_pack_.
Referenced by setup_packer().
|
private |
References cartmin_, core::select::residue_selector::count_selected(), core::pose::carbohydrates::create_glycan_movemap_from_residue_selector(), core::conformation::carbohydrates::get_n_glycosidic_torsions_in_res(), inner_ncycles_, core::conformation::Residue::is_carbohydrate(), core::pose::symmetry::is_symmetric(), kt_, linkage_mover_, core::pose::symmetry::make_symmetric_movemap(), min_mover_, min_rings_, core::id::omega_dihedral, core::id::phi_dihedral, population_based_conformer_sampling_, core::id::psi_dihedral, refine_, core::pose::Pose::residue(), root_prob_sampling_, scorefxn_, shear_, total_glycan_residues_, core::pose::Pose::total_residue(), protocols::TR(), tree_based_min_pack_, use_gaussian_sampling_, use_shear_, weighted_random_mover_, and protocols::comparative_modeling::features::X.
Referenced by init_objects().
|
private |
References protocols::carbohydrates::get_all_glycans_and_neighbor_res_task_factory(), packer_, scorefxn_, setup_default_task_factory(), tf_, tree_based_min_pack_, and weighted_random_mover_.
Referenced by init_objects().
|
private |
References cartmin_, core::scoring::get_score_function(), scorefxn_, and setup_cartmin().
Referenced by init_objects().
|
overridevirtual |
Outputs details about the Mover, including current settings.
Ideally, a child Mover should call Mover.show() and add additional information particular to that Mover.
Reimplemented from protocols::moves::Mover.
References protocols::moves::Mover::show().
Referenced by protocols::carbohydrates::operator<<().
void protocols::carbohydrates::GlycanSampler::use_cartmin | ( | bool | use_cartmin | ) |
Use Cartesian minimization instead of Dihedral minimization. Default (for now) is dihedral.
References cartmin_.
Referenced by protocols::carbohydrates::GlycanTreeModeler::apply().
|
private |
Referenced by apply().
|
private |
Referenced by parse_my_tag(), set_cmd_line_defaults(), set_defaults(), setup_movers(), setup_score_function(), and use_cartmin().
|
private |
Referenced by apply(), parse_my_tag(), set_cmd_line_defaults(), and set_defaults().
|
private |
Referenced by apply(), and init_objects().
|
private |
Referenced by apply(), and force_total_rounds().
|
private |
Referenced by parse_my_tag(), set_inner_bb_cycles(), and setup_movers().
|
private |
Referenced by apply(), parse_my_tag(), set_cmd_line_defaults(), set_kt(), and setup_movers().
|
private |
Referenced by GlycanSampler(), and setup_movers().
|
private |
Referenced by apply(), and parse_my_tag().
|
private |
Referenced by apply(), and GlycanSampler().
|
private |
Referenced by apply(), GlycanSampler(), and setup_movers().
|
private |
Referenced by parse_my_tag(), set_cmd_line_defaults(), set_min_rings(), and setup_movers().
|
private |
Referenced by parse_my_tag(), set_defaults(), and setup_default_task_factory().
|
private |
Referenced by apply(), GlycanSampler(), and setup_packer().
|
private |
|
private |
Referenced by parse_my_tag(), set_cmd_line_defaults(), set_population_based_conformer_sampling(), and setup_movers().
|
private |
Referenced by apply(), parse_my_tag(), and set_cmd_line_defaults().
|
private |
Referenced by init_objects(), parse_my_tag(), and set_randomize_first().
|
private |
Referenced by init_objects(), set_cmd_line_defaults(), set_refine(), and setup_movers().
|
private |
Referenced by parse_my_tag(), set_protein_linkage_prob_sampling(), and setup_movers().
|
private |
Referenced by apply(), get_glycan_sampler_rounds(), parse_my_tag(), set_cmd_line_defaults(), and set_rounds().
|
private |
Referenced by apply(), GlycanSampler(), init_objects(), parse_my_tag(), set_scorefunction(), setup_movers(), setup_packer(), and setup_score_function().
|
private |
Referenced by GlycanSampler(), init_objects(), parse_my_tag(), set_residue_selector(), and set_selector().
|
private |
Referenced by apply(), GlycanSampler(), and setup_movers().
|
private |
Referenced by set_cmd_line_defaults(), and set_defaults().
|
private |
Referenced by GlycanSampler(), set_taskfactory(), and setup_packer().
|
private |
Referenced by apply(), init_objects(), set_defaults(), and setup_movers().
|
private |
Referenced by parse_my_tag(), set_cmd_line_defaults(), setup_default_task_factory(), setup_movers(), and setup_packer().
|
private |
Referenced by parse_my_tag(), set_cmd_line_defaults(), set_use_gaussian_sampling(), and setup_movers().
|
private |
Referenced by apply(), parse_my_tag(), set_use_shear(), and setup_movers().
|
private |
Referenced by apply(), GlycanSampler(), setup_movers(), and setup_packer().