Rosetta
|
#include <FragmentSampler.hh>
Public Member Functions | |
~FragmentSampler () override | |
FragmentSampler (topology_broker::TopologyBrokerOP broker) | |
This constructor does not work – Fix it before using it. More... | |
moves::MoverOP | clone () const override |
FragmentSampler has virtual functions... use this to obtain a new instance. More... | |
void | apply (core::pose::Pose &pose) override |
Main Method. More... | |
std::string | get_name () const override |
Each derived class must specify its name. The class name. More... | |
void | set_cycles (core::Real increase_cycles=1.0) |
void | set_score_weight (core::scoring::ScoreType, core::Real setting, StageID stage=ALL_STAGES) |
sets a score weight for all stages of abinitio More... | |
virtual checkpoint::CheckPointer & | get_checkpoints () |
void | topology_broker (topology_broker::TopologyBrokerOP set) |
core::scoring::ScoreFunction const & | current_scorefxn () const |
bool | just_smooth_cycles () const |
core::Size | stage1_cycles () const |
core::Size | stage2_cycles () const |
core::Size | stage3_cycles () const |
void | set_stage4_cycles (core::Size stage4_cycles_new) |
core::Size | stage4_cycles () const |
bool | bQuickTest () const |
bool | check_loops (core::pose::Pose &pose) |
![]() | |
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_each_job () const |
Inform the Job Distributor (August '08 vintage) whether this object needs to be freshly regenerated on each use. 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... | |
virtual MoverOP | fresh_instance () const |
Generates a new Mover object freshly created with the default ctor. 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 |
virtual void | parse_my_tag (TagCOP tag, basic::datacache::DataMap &data) |
Called by MoverFactory when constructing new Movers. Takes care of the specific mover's parsing. More... | |
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 void | show (std::ostream &output=std::cout) const |
Outputs details about the Mover, including current settings. 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... | |
virtual void | provide_citation_info (basic::citation_manager::CitationCollectionList &) const |
Provide citations to the passed CitationCollectionList Subclasses should add the info for themselves and any other classes they use. More... | |
Static Public Member Functions | |
static void | register_options () |
![]() | |
static std::string | name () |
static void | register_options () |
Overload this static method if you access options within the mover. More... | |
Protected Attributes | |
core::Size | stage1_cycles_ |
core::Size | stage2_cycles_ |
core::Size | stage3_cycles_ |
core::Size | stage4_cycles_ |
Private Types | |
typedef moves::Mover | Parent |
typedef moves::Mover | BaseClass |
Private Member Functions | |
void | set_default_options () |
void | set_default_scores () |
void | set_default_mc (core::scoring::ScoreFunction const &scorefxn) |
void | checkpointed_cycle_block (core::pose::Pose &, StageID, void(FragmentSampler::*cycles)(core::pose::Pose &)) |
std::string const & | id2string (StageID id) |
basic::ProfTag | id2proftag (StageID id) |
Static Private Attributes | |
static std::string const | id2string_ [] = { "all_stages", "stage1", "stage2", "stage3", "stage3", "stage3", "stage4"} |
static basic::ProfTag const | id2proftag_ [] = { basic::STAGE1, basic::STAGE1, basic::STAGE2, basic::STAGE3, basic::STAGE3, basic::STAGE3, basic::STAGE4 } |
Additional Inherited Members | |
![]() | |
typedef utility::tag::TagCOP | TagCOP |
typedef core::pose::Pose | Pose |
typedef core::pose::PoseCOP | PoseCOP |
typedef std::list< std::string > | Strings |
@ detail general usage: FragmentSampler abinitio; abinitio.init( pose ); ... while(nstruct) { abinitio.apply( pose ); }
call FragmentSampler::register_options() before core::init::init to add relevant options to the applications help
, with the following stages, all of which uses a different ScoreFunction based on the cen_std.wts in minirosetta_database:
The class implements the basic abinito approach as known from rosetta++. We tried to set this up, such that behaviour of the protocol can be changed in many different ways ( see, e.g., FoldConstraints ). To be able to change the behaviour of the protocol easily the class-apply function and methods called therein (e.g., prepare_XXX() / do_XXX_cycles() ) should not directly change moves or trials. A reference to the currently used score-function should be obtained by mc().score_function() ...
Behaviour can be changed in the following ways:
use non-classic FragmentMover --> eg. not uniformly sampled fragments, but using some weighting --> large and small moves doesn't have to be 3mers and 9mers... use other movers... —> or other fragets for the "convenience constructor" use custom trial classes --> overload update_moves()
change sampling behaviour: overload prepare_XXX() methods: these are called before the cycling for a certain stage begins overload do_stageX_cycles() : the actual loops over trial-moves ...
change scoring functions: overload set_default_scores() weight-changes effective for all stages: set_score_weight()
|
private |
|
private |
|
overridedefault |
protocols::abinitio::FragmentSampler::FragmentSampler | ( | topology_broker::TopologyBrokerOP | broker | ) |
This constructor does not work – Fix it before using it.
@detail large (stage1/stage2) small(stage2/stage3/stage4) smooth_small ( stage3/stage4)
References set_defaults(), and protocols::moves::Mover::type().
|
overridevirtual |
Main Method.
Implements protocols::moves::Mover.
References protocols::topology_broker::TopologyBroker::apply_filter(), check_loops(), checkpointed_cycle_block(), protocols::moves::MonteCarlo::clear_poses(), protocols::abinitio::contains_stageid(), current_scorefxn(), core::pack::interaction_graph::debug, do_stage1_cycles(), do_stage2_cycles(), do_stage3_cycles(), do_stage4_cycles(), protocols::abinitio::END_ABINITIO, protocols::moves::FAIL_RETRY, protocols::moves::Mover::get_current_tag(), mc(), protocols::jd2::output_intermediate_pose(), prepare_stage1(), prepare_stage2(), prepare_stage3(), prepare_stage4(), replace_scorefxn(), protocols::moves::MonteCarlo::reset(), protocols::moves::Mover::set_last_move_status(), skip_stages_, protocols::abinitio::STAGE_1, protocols::abinitio::STAGE_2, protocols::abinitio::STAGE_3, protocols::abinitio::STAGE_3b, protocols::abinitio::STAGE_4, topology_broker(), topology_broker_, total_trials_, and tr().
Referenced by protocols::abinitio::ConstraintFragmentSampler::apply().
|
inline |
References bQuickTest_.
Referenced by set_default_options().
bool protocols::abinitio::FragmentSampler::check_loops | ( | core::pose::Pose & | pose | ) |
References core::pose::Pose::data(), core::pose::Pose::fold_tree(), protocols::loophash::get_rt_over_leap_fast(), core::pose::datacache::CacheableDataType::MEMBRANE_TOPOLOGY, protocols::loophash::LoopHashMap::radial_count(), core::scoring::rg, core::kinematics::FoldTree::show(), core::pose::Pose::size(), protocols::loops::start, protocols::loops::stop, and tr().
Referenced by apply().
|
private |
References protocols::checkpoint::CheckPointer::checkpoint(), core::pose::Pose::constraint_set(), current_scorefxn(), core::pack::interaction_graph::debug, protocols::checkpoint::CheckPointer::debug(), protocols::checkpoint::CheckPointer::flush_checkpoints(), get_checkpoints(), protocols::moves::Mover::get_current_tag(), id2proftag(), id2string(), mc(), protocols::jd2::output_intermediate_pose(), recover_low(), protocols::moves::MonteCarlo::recover_low(), protocols::moves::MonteCarlo::reset_counters(), core::scoring::ScoreFunction::show(), core::scoring::ScoreFunction::show_additional(), protocols::moves::MonteCarlo::show_counters(), protocols::moves::MonteCarlo::total_trials(), total_trials_, and tr().
Referenced by apply().
|
overridevirtual |
FragmentSampler has virtual functions... use this to obtain a new instance.
Reimplemented from protocols::moves::Mover.
scoring::ScoreFunction const & protocols::abinitio::FragmentSampler::current_scorefxn | ( | ) | const |
References mc(), and protocols::moves::MonteCarlo::score_function().
Referenced by apply(), checkpointed_cycle_block(), do_stage1_cycles(), protocols::abinitio::ConstraintFragmentSampler::do_stage1_cycles(), do_stage2_cycles(), do_stage3_cycles(), do_stage4_cycles(), recover_low(), replace_scorefxn(), and protocols::abinitio::ConstraintFragmentSampler::set_max_seq_sep().
|
protected |
References mc(), and protocols::moves::MonteCarlo::score_function().
|
protectedvirtual |
Reimplemented in protocols::abinitio::ConstraintFragmentSampler.
References protocols::moves::RepeatMover::apply(), current_scorefxn(), core::pack::interaction_graph::debug, mc(), mc_ptr(), mover(), protocols::jd2::output_intermediate_pose(), protocols::moves::MonteCarlo::reset(), stage1_cycles(), and protocols::abinitio::STAGE_1.
Referenced by apply(), and protocols::abinitio::ConstraintFragmentSampler::do_stage1_cycles().
|
protectedvirtual |
References protocols::moves::RepeatMover::apply(), current_scorefxn(), mc_ptr(), mover(), protocols::jd2::output_intermediate_pose(), stage2_cycles(), and protocols::abinitio::STAGE_2.
Referenced by apply().
|
protectedvirtual |
@detail stage3 cycles: nloop1 : outer iterations nloop2 : inner iterations stage3_cycle : trials per inner iteration every inner iteration we switch between score_stage3a ( default: score2 ) and score_stage3b ( default: score 5 )
prepare_loop_in_stage3() is called before the stage3_cycles() of trials are started.
first outer loop-iteration is done with TrialMover trial_large() all following iterations with trial_small()
start each iteration with the lowest_score_pose. ( mc->recover_low() – called in prepare_loop_in_stage3() )
References protocols::moves::RepeatMover::apply(), protocols::checkpoint::CheckPointer::checkpoint(), current_scorefxn(), protocols::checkpoint::CheckPointer::debug(), get_checkpoints(), protocols::moves::Mover::get_current_tag(), mc_ptr(), mover(), protocols::jd2::output_intermediate_pose(), prepare_loop_in_stage3(), recover_low(), short_insert_region_, stage3_cycles(), protocols::abinitio::STAGE_3a, protocols::abinitio::STAGE_3b, and tr().
Referenced by apply().
|
protectedvirtual |
References protocols::moves::RepeatMover::apply(), protocols::checkpoint::CheckPointer::checkpoint(), current_scorefxn(), protocols::checkpoint::CheckPointer::debug(), get_checkpoints(), protocols::moves::Mover::get_current_tag(), mc_ptr(), mover(), protocols::jd2::output_intermediate_pose(), prepare_loop_in_stage4(), recover_low(), stage4_cycles(), protocols::abinitio::STAGE_4, and tr().
Referenced by apply().
|
inlinevirtual |
References checkpoints_.
Referenced by checkpointed_cycle_block(), do_stage3_cycles(), and do_stage4_cycles().
|
overridevirtual |
Each derived class must specify its name. The class name.
Implements protocols::moves::Mover.
|
inlineprivate |
References id2proftag_, and protocols::abinitio::LAST_STAGE.
Referenced by checkpointed_cycle_block().
|
inlineprivate |
References id2string_, and protocols::abinitio::LAST_STAGE.
Referenced by checkpointed_cycle_block().
|
inline |
References just_smooth_cycles_.
|
inlineprotected |
References mc_.
Referenced by protocols::abinitio::ConstraintFragmentSampler::apply(), apply(), checkpointed_cycle_block(), current_scorefxn(), do_stage1_cycles(), protocols::abinitio::ConstraintFragmentSampler::do_stage1_cycles(), set_current_weight(), and protocols::abinitio::ConstraintFragmentSampler::set_max_seq_sep().
|
inlineprotected |
References mc_.
|
inlineprotected |
References mc_.
Referenced by do_stage1_cycles(), protocols::abinitio::ConstraintFragmentSampler::do_stage1_cycles(), do_stage2_cycles(), do_stage3_cycles(), and do_stage4_cycles().
|
protectedvirtual |
References protocols::topology_broker::TopologyBroker::apply_filter(), protocols::topology_broker::TopologyBroker::mover(), and topology_broker().
Referenced by do_stage1_cycles(), protocols::abinitio::ConstraintFragmentSampler::do_stage1_cycles(), do_stage2_cycles(), do_stage3_cycles(), and do_stage4_cycles().
|
protectedvirtual |
Reimplemented in protocols::abinitio::ConstraintFragmentSampler.
References replace_scorefxn(), protocols::abinitio::STAGE_3a, protocols::abinitio::STAGE_3b, and protocols::analysis::total.
Referenced by do_stage3_cycles(), and protocols::abinitio::ConstraintFragmentSampler::prepare_loop_in_stage3().
|
protectedvirtual |
Reimplemented in protocols::abinitio::ConstraintFragmentSampler.
References replace_scorefxn(), protocols::abinitio::STAGE_4, and protocols::analysis::total.
Referenced by do_stage4_cycles(), and protocols::abinitio::ConstraintFragmentSampler::prepare_loop_in_stage4().
|
protectedvirtual |
Reimplemented in protocols::abinitio::ConstraintFragmentSampler.
References mc_, replace_scorefxn(), protocols::abinitio::STAGE_1, and temperature_.
Referenced by apply(), and protocols::abinitio::ConstraintFragmentSampler::prepare_stage1().
|
protectedvirtual |
Reimplemented in protocols::abinitio::ConstraintFragmentSampler.
References replace_scorefxn(), and protocols::abinitio::STAGE_2.
Referenced by apply(), and protocols::abinitio::ConstraintFragmentSampler::prepare_stage2().
|
protectedvirtual |
References replace_scorefxn(), and protocols::abinitio::STAGE_3a.
Referenced by apply().
|
protectedvirtual |
References replace_scorefxn(), and protocols::abinitio::STAGE_4.
Referenced by apply().
|
protected |
References protocols::abinitio::contains_stageid(), current_scorefxn(), mc_, recover_low_stages_, core::scoring::ScoreFunction::show(), and tr().
Referenced by checkpointed_cycle_block(), do_stage3_cycles(), and do_stage4_cycles().
|
static |
@detail call this: FragmentSampler::register_options() before devel::init(). Derived classes that overload this function should also call Parent::register_options()
References core::pack::interaction_graph::debug, and protocols::moves::Mover::register_options().
|
protectedvirtual |
Reimplemented in protocols::abinitio::ConstraintFragmentSampler.
References current_scorefxn(), mc_, score_stage1_, score_stage2_, score_stage3a_, score_stage3b_, score_stage4_, protocols::abinitio::STAGE_1, protocols::abinitio::STAGE_2, protocols::abinitio::STAGE_3, protocols::abinitio::STAGE_3a, protocols::abinitio::STAGE_3b, protocols::abinitio::STAGE_4, and temperature_.
Referenced by apply(), prepare_loop_in_stage3(), prepare_loop_in_stage4(), prepare_stage1(), prepare_stage2(), prepare_stage3(), prepare_stage4(), and protocols::abinitio::ConstraintFragmentSampler::replace_scorefxn().
|
protected |
void protocols::abinitio::FragmentSampler::set_cycles | ( | core::Real | increase_cycles = 1.0 | ) |
References stage1_cycles_, stage2_cycles_, stage3_cycles_, and stage4_cycles_.
Referenced by set_default_options().
|
private |
References mc_, set_mc(), protocols::canonical_sampling::mc_convergence_checks::setup_convergence_checks_from_cmdline(), and temperature_.
Referenced by set_defaults().
|
private |
References apply_large_frags_, bQuickTest(), bQuickTest_, just_smooth_cycles_, recover_low_stages_, set_cycles(), short_insert_region_, skip_stages_, protocols::abinitio::STAGE_1, protocols::abinitio::STAGE_2, protocols::abinitio::STAGE_3, protocols::abinitio::STAGE_3a, protocols::abinitio::STAGE_3b, and protocols::abinitio::STAGE_4.
Referenced by set_defaults().
|
private |
|
protected |
References score_stage4_, set_default_mc(), set_default_options(), set_default_scores(), and temperature_.
Referenced by FragmentSampler(), and protocols::abinitio::ConstraintFragmentSampler::set_defaults().
|
protected |
References mc_.
Referenced by set_default_mc().
void protocols::abinitio::FragmentSampler::set_score_weight | ( | core::scoring::ScoreType | type, |
core::Real | setting, | ||
StageID | stage = ALL_STAGES |
||
) |
sets a score weight for all stages of abinitio
References protocols::abinitio::ALL_STAGES, core::scoring::name_from_score_type(), score_stage1_, score_stage2_, score_stage3a_, score_stage3b_, score_stage4_, protocols::abinitio::STAGE_1, protocols::abinitio::STAGE_2, protocols::abinitio::STAGE_3a, protocols::abinitio::STAGE_3b, protocols::abinitio::STAGE_4, tr(), and protocols::moves::Mover::type().
Referenced by protocols::abinitio::ConstraintFragmentSampler::replace_scorefxn(), protocols::abinitio::ConstraintFragmentSampler::set_constraint_weight(), set_default_scores(), and protocols::abinitio::ConstraintFragmentSampler::set_defaults().
|
inline |
References stage4_cycles_.
|
inline |
References stage1_cycles_.
Referenced by do_stage1_cycles(), and protocols::abinitio::ConstraintFragmentSampler::do_stage1_cycles().
|
inline |
References stage2_cycles_.
Referenced by do_stage2_cycles().
|
inline |
References stage3_cycles_.
Referenced by do_stage3_cycles().
|
inline |
References stage4_cycles_.
Referenced by do_stage4_cycles().
|
protected |
References topology_broker_.
Referenced by apply(), mover(), and protocols::abinitio::ConstraintFragmentSampler::set_max_seq_sep().
void protocols::abinitio::FragmentSampler::topology_broker | ( | topology_broker::TopologyBrokerOP | set | ) |
References topology_broker_.
|
private |
Referenced by set_default_options().
|
private |
Referenced by bQuickTest(), and set_default_options().
|
private |
Referenced by get_checkpoints().
|
staticprivate |
Referenced by id2proftag().
|
staticprivate |
Referenced by id2string().
|
private |
Referenced by just_smooth_cycles(), and set_default_options().
|
private |
Referenced by mc(), mc_ptr(), prepare_stage1(), recover_low(), replace_scorefxn(), set_default_mc(), and set_mc().
|
private |
Referenced by recover_low(), and set_default_options().
|
private |
Referenced by replace_scorefxn(), set_default_scores(), and set_score_weight().
|
private |
Referenced by replace_scorefxn(), set_default_scores(), and set_score_weight().
|
private |
Referenced by replace_scorefxn(), set_default_scores(), and set_score_weight().
|
private |
Referenced by replace_scorefxn(), set_default_scores(), and set_score_weight().
|
private |
Referenced by replace_scorefxn(), set_default_scores(), set_defaults(), and set_score_weight().
|
private |
Referenced by do_stage3_cycles(), and set_default_options().
|
private |
Referenced by apply(), and set_default_options().
|
protected |
Referenced by set_cycles(), and stage1_cycles().
|
protected |
Referenced by set_cycles(), and stage2_cycles().
|
protected |
Referenced by set_cycles(), and stage3_cycles().
|
protected |
Referenced by set_cycles(), set_stage4_cycles(), and stage4_cycles().
|
private |
Referenced by prepare_stage1(), replace_scorefxn(), set_default_mc(), and set_defaults().
|
private |
Referenced by apply(), and topology_broker().
|
private |
Referenced by apply(), and checkpointed_cycle_block().