![]() |
Rosetta Protocols
2014.35
|
Run a sidechain-only canonical Monte Carlo simulation. More...
#include <SidechainMetropolisHastingsMover.hh>
Public Types | |
typedef MetropolisHastingsMover | Parent |
![]() | |
typedef utility::tag::TagCOP | TagCOP |
typedef core::pose::Pose | Pose |
typedef core::pose::PoseCOP | PoseCOP |
typedef protocols::filters::Filters_map | Filters_map |
typedef std::list< std::string > | Strings |
Public Member Functions | |
SidechainMetropolisHastingsMover () | |
Default constructor. More... | |
SidechainMetropolisHastingsMover (core::Size stride) | |
Constructor with stride parameter. More... | |
SidechainMetropolisHastingsMover (SidechainMetropolisHastingsMover const &metropolis_hastings_mover) | |
Copy constructor. More... | |
virtual | ~SidechainMetropolisHastingsMover () |
Default destructor. More... | |
virtual void | apply (core::pose::Pose &pose) |
Run the sidechain-only simulation. More... | |
virtual std::string | get_name () const |
Return the name of this mover. More... | |
protocols::moves::MoverOP | clone () const |
Return a copy of this mover. More... | |
virtual protocols::moves::MoverOP | fresh_instance () const |
Return a newly instantiated mover. More... | |
virtual void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data, protocols::filters::Filters_map const &filters, protocols::moves::Movers_map const &movers, core::pose::Pose const &pose) |
Use a RosettaScripts tag to configure this mover. More... | |
bool | pass_metropolis (core::Real delta_energy, core::Real last_proposal_density_ratio) const |
Return true if a move should be accepted, given delta_energy and proposal_density_ratio. More... | |
core::Size | output_count (core::Size ct) const |
Return non-zero if the observers should be invoked on this iteration. More... | |
void | set_stride (core::Size setting) |
Set the frequency with which the observers should be invoked. More... | |
![]() | |
MetropolisHastingsMover () | |
Default constructor. More... | |
MetropolisHastingsMover (MetropolisHastingsMover const &metropolis_hastings_mover) | |
Copy constructor. More... | |
virtual | ~MetropolisHastingsMover () |
Destructor. More... | |
virtual bool | reinitialize_for_each_job () const |
Return false. This mover does not need to be reinitialized for each job. More... | |
virtual bool | reinitialize_for_new_input () const |
Return false. This mover does not need to be reinitialized for new input. More... | |
protocols::moves::MonteCarloCOP | monte_carlo () const |
Return the MonteCarlo object being used by this simulation. More... | |
void | set_monte_carlo (protocols::moves::MonteCarloOP monte_carlo) |
Provide a MonteCarlo object to use for this simulation. More... | |
TemperatureControllerCOP | tempering () const |
Return the TemperatureController being used by this simulation. More... | |
void | set_tempering (TemperatureControllerOP) |
Provide a TemperatureController to use for this simulation. More... | |
core::Size | ntrials () const |
Return the number of iterations used by this simulation. More... | |
void | set_ntrials (core::Size ntrials) |
Set the number of iterations to use for this simulation. More... | |
core::Size | current_trial () const |
Return the iteration currently being processed by the simulation. More... | |
std::string const & | output_name () const |
Return the file name used by some of the observers to output data. More... | |
void | set_output_name (std::string const &output_name) |
Set the file name used by some of the observers to output data. More... | |
std::string | output_file_name (std::string const &suffix, bool cumulate_jobs=false, bool cumulate_replicas=false) const |
Return a file name that is consistent with the given options. More... | |
virtual ThermodynamicMoverOP | random_mover () const |
Return true if the simulation has been completed. More... | |
virtual void | add_mover (ThermodynamicMoverOP mover, core::Real weight, utility::tag::TagCOP const &subtag) |
Add the given mover to the simulation. More... | |
virtual void | add_mover (ThermodynamicMoverOP mover, core::Real weight) |
Add the given mover to the simulation. More... | |
void | add_backrub_mover (core::Real weight) |
Convenience method to add a backrub move to the simulation. More... | |
void | add_kic_mover (core::Real weight, protocols::loops::Loop const &loop) |
Convenience method to add a kinematic closure move to the simulation. More... | |
void | add_small_mover (core::Real weight) |
Convenience method to add a small move to the simulation. More... | |
void | add_shear_mover (core::Real weight) |
Convenience method to add a shear move to the simulation. More... | |
void | add_sidechain_mover (core::Real weight, core::Real prob_uniform, core::Real prob_withinrot, bool preserve_cbeta) |
Convenience method to add a sidechain move to the simulation. More... | |
void | add_sidechain_mc_mover (core::Real weight, core::Real prob_uniform, core::Real prob_withinrot, bool preserve_cbeta, core::Size ntrials) |
Convenience method to add a Monte Carlo sidechain move to the simulation. This move uses an internal Monte Carlo loop to generate a whole new set of sidechain conformations. More... | |
void | add_observer (ThermodynamicObserverOP observer) |
Add the given observer to this simulation. More... | |
ThermodynamicMover const & | last_move () const |
Return the most recently used ThermodynamicMover. More... | |
bool | last_accepted () const |
Return true if the last attempted move was accepted. More... | |
![]() | |
Mover () | |
virtual | ~Mover () |
virtual MoverSP | create () |
virtual void | apply (core::io::serialization::PipeMap &pmap) |
virtual void | parse_state (SerializableState const &state) |
virtual void | parse_def (utility::lua::LuaObject const &def, utility::lua::LuaObject const &score_fxns, utility::lua::LuaObject const &tasks, MoverCacheSP cache) |
virtual void | save_state (SerializableState &state) |
Mover (std::string const &type_name) | |
sets the type for a mover; name_ has been removed (2010/05/14) More... | |
Mover (Mover const &other) | |
Mover & | operator= (Mover const &other) |
assignment operator More... | |
virtual core::Real | last_proposal_density_ratio () |
std::string const & | type () const |
void | set_type (std::string const &setting) |
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... | |
void | set_current_tag (std::string const &new_tag) |
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 |
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... | |
void | type (const std::string &type_in) |
std::string | get_type () const |
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... | |
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... | |
void | set_current_job (protocols::jobdist::BasicJobCOP job) |
jobdist::BasicJobCOP | get_current_job () const |
virtual void | show (std::ostream &output=std::cout) const |
Outputs details about the Mover, including current settings. More... | |
Private Attributes | |
core::Size | stride_ |
Additional Inherited Members | |
![]() | |
static std::string | name () |
static void | register_options () |
Overload this static method if you access options within the mover. More... | |
![]() | |
TemperatureControllerOP const & | tempering () |
Protected non-const access to the TemperatureController. More... | |
ThermodynamicMoverOP | mover_by_index (numeric::Size idx) const |
Return the mover that was added at the given index. More... | |
void | wind_down_simulation (core::pose::Pose &pose) |
Finalize all the movers and observers used in this simulation, and write some debrief statistics to the tracer. More... | |
core::Size | prepare_simulation (core::pose::Pose &pose) |
Initialize all the movers and observers to be used in this simulation. More... | |
void | set_last_accepted (bool setting) |
Indicate whether or not the last attempted move was accepted. More... | |
void | set_last_move (ThermodynamicMoverOP setting) |
Indicate what type of move was last attempted. More... | |
utility::vector1 < ThermodynamicObserverOP > const & | observers () |
Return a list of all observers attached to this simulation. More... | |
protocols::moves::MonteCarlo & | nonconst_monte_carlo () |
Protected non-const access to the MonteCarlo object. More... | |
![]() | |
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... | |
Run a sidechain-only canonical Monte Carlo simulation.
The Monte Carlo algorithm present in apply() has been optimized for the case where only the sidechains can moves. This makes it possible speed up score function evaluation by either precalculating and/or caching residue pair energies. In this specific case, however, I'm not exactly sure how the algorithm is doing its optimization.
typedef MetropolisHastingsMover protocols::canonical_sampling::SidechainMetropolisHastingsMover::Parent |
protocols::canonical_sampling::SidechainMetropolisHastingsMover::SidechainMetropolisHastingsMover | ( | ) |
Default constructor.
Referenced by fresh_instance().
protocols::canonical_sampling::SidechainMetropolisHastingsMover::SidechainMetropolisHastingsMover | ( | core::Size | stride | ) |
Constructor with stride parameter.
protocols::canonical_sampling::SidechainMetropolisHastingsMover::SidechainMetropolisHastingsMover | ( | SidechainMetropolisHastingsMover const & | metropolis_hastings_mover | ) |
Copy constructor.
References canonical_sampling.
|
virtual |
Default destructor.
|
virtual |
Run the sidechain-only simulation.
Reimplemented from protocols::canonical_sampling::MetropolisHastingsMover.
References protocols::jd2::Job::add_string_real_pair(), protocols::jd2::Job::add_string_string_pair(), utility::pointer::owning_ptr< T >::get(), protocols::jd2::get_current_job(), protocols::jd2::jd2_used(), protocols::canonical_sampling::MetropolisHastingsMover::monte_carlo(), move, protocols::canonical_sampling::MetropolisHastingsMover::nonconst_monte_carlo(), protocols::canonical_sampling::MetropolisHastingsMover::ntrials(), protocols::canonical_sampling::MetropolisHastingsMover::observers(), output_count(), pass_metropolis(), protocols::canonical_sampling::MetropolisHastingsMover::prepare_simulation(), protocols::canonical_sampling::MetropolisHastingsMover::random_mover(), core::pose::Pose::replace_residue(), core::pose::Pose::residue(), runtime_assert, score, protocols::canonical_sampling::MetropolisHastingsMover::set_last_accepted(), protocols::moves::MonteCarlo::set_last_accepted_pose(), protocols::canonical_sampling::MetropolisHastingsMover::set_last_move(), protocols::moves::MonteCarlo::set_lowest_score_pose(), protocols::canonical_sampling::MetropolisHastingsMover::tempering(), core::pose::Pose::total_residue(), protocols::canonical_sampling::tr, and protocols::canonical_sampling::MetropolisHastingsMover::wind_down_simulation().
|
virtual |
Return a copy of this mover.
Reimplemented from protocols::canonical_sampling::MetropolisHastingsMover.
|
virtual |
Return a newly instantiated mover.
Reimplemented from protocols::canonical_sampling::MetropolisHastingsMover.
References SidechainMetropolisHastingsMover().
|
virtual |
Return the name of this mover.
Reimplemented from protocols::canonical_sampling::MetropolisHastingsMover.
core::Size protocols::canonical_sampling::SidechainMetropolisHastingsMover::output_count | ( | core::Size | ct | ) | const |
Return non-zero if the observers should be invoked on this iteration.
References stride_.
Referenced by apply().
|
virtual |
Use a RosettaScripts tag to configure this mover.
Reimplemented from protocols::canonical_sampling::MetropolisHastingsMover.
References protocols::canonical_sampling::MetropolisHastingsMover::parse_my_tag(), and stride_.
bool protocols::canonical_sampling::SidechainMetropolisHastingsMover::pass_metropolis | ( | core::Real | delta_energy, |
core::Real | last_proposal_density_ratio | ||
) | const |
Return true if a move should be accepted, given delta_energy and proposal_density_ratio.
References protocols::moves::Mover::last_proposal_density_ratio(), protocols::canonical_sampling::MetropolisHastingsMover::monte_carlo(), protocols::RG, protocols::canonical_sampling::tr, and numeric::random::RandomGenerator::uniform().
Referenced by apply().
|
inline |
Set the frequency with which the observers should be invoked.
|
private |
Referenced by output_count(), and parse_my_tag().