|
Rosetta 3.5
|
The loop-rebuild protocol. More...
#include <looprelax_protocols.hh>


Public Member Functions | |
| LoopRebuild (core::scoring::ScoreFunctionOP scorefxn, protocols::loops::Loops Loops_in) | |
| Construct te protocol object given a score function, list of loop segments to rebuild, and the fragment library to use. The skip rate of each loop is ignored (the decision of which loops to rebuild should be made outside the protocol). More... | |
| ~LoopRebuild () | |
| virtual protocols::moves::MoverOP | clone () const |
| Clone this object. More... | |
| void | set_default_settings () |
| sets all the standard settings for LoopBuild More... | |
| protocols::moves::MonteCarloOP | get_mc (core::pose::Pose &pose) |
| Get the protocol's Monte Carlo object. More... | |
| void | set_default_mc (core::pose::Pose &pose) |
| setting the mc object More... | |
| void | apply (core::pose::Pose &pose) |
| Apply the loop-rebuild protocol to the input pose. More... | |
| virtual std::string | get_name () const |
| Each derived class must specify its name. The class name. More... | |
| bool | extended_loop () |
| Are we extending the loops before running loop-rebuild? More... | |
| void | set_extended_loop (bool val) |
| Specify whether the protocol should extend the loops before running loop-rebuild. More... | |
| bool | get_success () |
| Were loops successfully built? More... | |
| bool | get_random_loop_flag () |
| void | set_random_loop_flag (bool setting=true) |
| int | get_allowed_failure_before_extend () |
| void | set_allowed_failure_before_extend (int setting) |
| int | get_allowed_failure_before_stop () |
| void | set_allowed_failure_before_stop (int setting) |
| bool | get_abort_on_failed_loop () |
| void | set_abort_on_failed_loop (bool setting=true) |
| bool | loop_model () |
| bool | get_ccd_closure_exist () |
| bool | get_desired_loops_exist () |
| core::Size | desired_loops () |
| core::Real | get_loop_combine_rate () |
| bool | get_combine_if_fail_exist () |
| core::Real | get_rmsd_tolerance () |
| Gets the RMSd tolerence, the most a loop may move during reconstruction. More... | |
| core::Real | get_chain_break_tolerance () |
| Gets the chainbreak tolerence, the largest the chainbreak score may be to accept a loop conformation. More... | |
Public Member Functions inherited from protocols::moves::Mover | |
| 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 |
| 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) |
| virtual void | parse_my_tag (TagPtr const tag, DataMap &data, Filters_map const &filters, Movers_map const &movers, Pose const &pose) |
| Called by MoverFactory when constructing new Movers. Takes care of the specific mover's parsing. More... | |
| 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... | |
| virtual bool | reinitialize_for_each_job () const |
| this function informs 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 |
| this function informs 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 |
| this is like clone(), except it generates a new mover object freshly created with the default ctor. This function should be pure virtual but that would disrupt the code base; MAKE SURE YOU DEFINE IT if you want to have your mover be a protocol handed to the job distributor (august 08 vintage). More... | |
| void | set_current_job (protocols::jobdist::BasicJobCOP job) |
| jobdist::BasicJobCOP | get_current_job () const |
Public Attributes | |
| int | allowed_failure_before_stop |
Private Member Functions | |
| bool | build_random_loops (core::pose::Pose &pose) |
| Rebuild all loops in the pose, chosen in a random order. More... | |
| void | set_looprlx_allow_move_map (int const &loop_begin, int const &loop_end, core::kinematics::MoveMap &mm) |
| core::Real | get_score_filter_cutoff () |
| Get the cutoff for score filtering loop conformations. CURRENTLY UNUSED IN THE PROTOCOL. More... | |
| bool | select_one_loop (int nres, int &selected_loop, std::vector< int > &folded_loops, std::vector< int > &inter_res, int &loop_begin, int &loop_end, int &cutpoint, bool &extend_this_loop, bool &are_loops_combined, int &combine_interval, int &loop_counter) |
| Select a loop at random from the input list. More... | |
| void | barcode_extend_stems (core::pose::Pose &pose, int &barcst_extend_begin, int &barcst_extend_end, int &loop_begin, int &loop_end, int const &old_loop_begin, int const &old_loop_end, int const &nres, int const &selected_loop, int const &total_combine, int const &backward_combine) |
| Extend the loop stems. More... | |
| void | extend_barcode_regions_if_chain_break (core::pose::Pose &pose, int const &loop_begin, int const &loop_end, int &n_chain_break_fail, bool &is_chain_break, int &barcst_extend_begin, int &barcst_extend_end) |
| If chainbreak score is greater than the tolerance, extend the loop. More... | |
| bool | shorten_long_terminal_loop () |
| bool | acceptable_rmsd_change (core::pose::Pose &pose1, core::pose::Pose &pose2) |
| Is the RMS change between these two poses below the acceptible threshold? More... | |
| core::Real | get_looprlx_cycle_ratio () |
| void | build_loop_with_ccd_closure (core::pose::Pose &pose, int const &loop_begin, int const &loop_end, int &cutpoint, bool const &extend_this_loop) |
| frag insertion + ccd close + minimize More... | |
| void | fast_ccd_close_loops (core::pose::Pose &pose, int const &loop_begin, int const &loop_end, int const &cutpoint, core::kinematics::MoveMap &mm) |
| Apply ccd moves to close the specified loop. More... | |
Additional Inherited Members | |
Public Types inherited from protocols::moves::Mover | |
| typedef utility::tag::TagPtr | TagPtr |
| typedef core::pose::Pose | Pose |
| typedef core::pose::PoseCOP | PoseCOP |
| typedef protocols::filters::Filters_map | Filters_map |
| typedef std::list< std::string > | Strings |
Static Public Member Functions inherited from protocols::moves::Mover | |
| static std::string | name () |
| static void | register_options () |
| overload this static method if you access options within the mover. these options will end up in -help of your application if users of this mover call register_options. do this recursively! if you use movers within your mover, call their register_options in your register_options() method. More... | |
Protected Member Functions inherited from protocols::moves::Mover | |
| 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... | |
The loop-rebuild protocol.
Definition at line 52 of file looprelax_protocols.hh.
| protocols::LoopRebuild::LoopRebuild | ( | core::scoring::ScoreFunctionOP | scorefxn, |
| protocols::loops::Loops | Loops_in | ||
| ) |
Construct te protocol object given a score function, list of loop segments to rebuild, and the fragment library to use. The skip rate of each loop is ignored (the decision of which loops to rebuild should be made outside the protocol).
Definition at line 102 of file looprelax_protocols.cc.
References frag_libs_, protocols::loops::read_loop_fragments(), and set_default_settings().
Referenced by clone().
| protocols::LoopRebuild::~LoopRebuild | ( | ) |
Definition at line 114 of file looprelax_protocols.cc.
|
private |
Is the RMS change between these two poses below the acceptible threshold?
Definition at line 1231 of file looprelax_protocols.cc.
References get_rmsd_tolerance(), core::pose::Pose::residue(), core::pose::Pose::total_residue(), protocols::TR(), and core::conformation::Residue::xyz().
Referenced by build_random_loops().
|
virtual |
Apply the loop-rebuild protocol to the input pose.
Apply the loop rebuilding protocol to a pose. The loops to be rebuilt and fragments are defined upon object construction.
Implements protocols::moves::Mover.
Definition at line 125 of file looprelax_protocols.cc.
References build_random_loops(), Loops_in_, mc_created, set_default_mc(), protocols::loops::set_secstruct_from_psipred_ss2(), protocols::loops::Loops::size(), success, protocols::TR(), and protocols::loops::Loops::verify_against().
Referenced by protocols::comparative_modeling::LoopRelaxMover::apply().
|
private |
Extend the loop stems.
Definition at line 1078 of file looprelax_protocols.cc.
References loop_model(), Loops_in_, core::conformation::Residue::name3(), core::pose::Pose::residue(), shorten_long_terminal_loop(), protocols::loops::Loops::size(), protocols::loops::start, protocols::loops::stop, and protocols::TR().
Referenced by build_random_loops().
|
private |
frag insertion + ccd close + minimize
Rebuild a loop via fragment insertion + ccd closure + minimization
Definition at line 420 of file looprelax_protocols.cc.
References core::conformation::Residue::aa(), core::chemical::aa_pro, core::chemical::aa_vrt, core::pose::add_variant_type_to_pose_residue(), core::chemical::ResidueType::atom_index(), core::scoring::atom_pair_constraint, protocols::loops::loop_closure::ccd::ccd_moves(), core::scoring::chainbreak, protocols::loops::Loop::choose_cutpoint(), core::pose::Pose::constraint_set(), protocols::loops::Loop::cut(), core::chemical::CUTPOINT_LOWER, core::chemical::CUTPOINT_UPPER, extended_loop(), fast_ccd_close_loops(), frag_libs_, get_ccd_closure_exist(), get_looprlx_cycle_ratio(), protocols::loops::idealize_loop(), core::scoring::linear_chainbreak, loop_model(), mc_, protocols::rigid::random, core::pose::Pose::residue(), core::pose::Pose::residue_type(), scorefxn_, protocols::loops::set_extended_torsions(), set_looprlx_allow_move_map(), protocols::forge::methods::set_single_loop_fold_tree(), core::pose::Pose::total_residue(), and protocols::TR().
Referenced by build_random_loops().
|
private |
Rebuild all loops in the pose, chosen in a random order.
Rebuild all the loops in the pose, one at a time, choosing each in random order.
Definition at line 226 of file looprelax_protocols.cc.
References acceptable_rmsd_change(), barcode_extend_stems(), protocols::loops::Loops::begin(), build_loop_with_ccd_closure(), core::pose::Pose::clear(), desired_loops(), protocols::loops::Loops::end(), extend_barcode_regions_if_chain_break(), core::pose::Pose::fold_tree(), get_abort_on_failed_loop(), get_allowed_failure_before_extend(), get_allowed_failure_before_stop(), get_combine_if_fail_exist(), get_desired_loops_exist(), get_random_loop_flag(), loop_model(), Loops_in_, protocols::loops::Loops::push_back(), core::util::remove_cutpoint_variants(), select_one_loop(), protocols::loops::Loops::size(), core::pose::Pose::total_residue(), and protocols::TR().
Referenced by apply().
|
virtual |
Clone this object.
Reimplemented from protocols::moves::Mover.
Definition at line 118 of file looprelax_protocols.cc.
References LoopRebuild().
| core::Size protocols::LoopRebuild::desired_loops | ( | ) |
Definition at line 1030 of file looprelax_protocols.cc.
References core::init().
Referenced by build_random_loops().
|
private |
If chainbreak score is greater than the tolerance, extend the loop.
Definition at line 1161 of file looprelax_protocols.cc.
References core::scoring::chainbreak, core::pose::Pose::energies(), core::pose::Pose::fold_tree(), get_chain_break_tolerance(), get_random_loop_flag(), core::scoring::linear_chainbreak, scorefxn_, core::scoring::Energies::total_energies(), core::pose::Pose::total_residue(), and protocols::TR().
Referenced by build_random_loops().
| bool protocols::LoopRebuild::extended_loop | ( | ) |
Are we extending the loops before running loop-rebuild?
Definition at line 1279 of file looprelax_protocols.cc.
References extend_loops, and use_default_extend_loops.
Referenced by build_loop_with_ccd_closure(), and select_one_loop().
|
private |
Apply ccd moves to close the specified loop.
CCD close the loop [loop_begin,loop_end]. Wraps protocols::loops::fast_ccd_loop_closure, setting reasonable weights for the protocol.
Definition at line 800 of file looprelax_protocols.cc.
References core::pose::Pose::conformation(), protocols::loops::loop_closure::ccd::fast_ccd_loop_closure(), core::conformation::Conformation::secstruct(), and core::pose::Pose::set_secstruct().
Referenced by build_loop_with_ccd_closure().
|
inline |
Definition at line 117 of file looprelax_protocols.hh.
References abort_on_failed_loop_.
Referenced by build_random_loops().
|
inline |
Definition at line 100 of file looprelax_protocols.hh.
References allowed_failure_before_extend_.
Referenced by build_random_loops().
|
inline |
Definition at line 108 of file looprelax_protocols.hh.
References allowed_failure_before_stop_.
Referenced by build_random_loops().
| bool protocols::LoopRebuild::get_ccd_closure_exist | ( | ) |
Definition at line 998 of file looprelax_protocols.cc.
References core::init().
Referenced by build_loop_with_ccd_closure().
| core::Real protocols::LoopRebuild::get_chain_break_tolerance | ( | ) |
Gets the chainbreak tolerence, the largest the chainbreak score may be to accept a loop conformation.
Definition at line 208 of file looprelax_protocols.cc.
References core::init().
Referenced by extend_barcode_regions_if_chain_break().
| bool protocols::LoopRebuild::get_combine_if_fail_exist | ( | ) |
Definition at line 1062 of file looprelax_protocols.cc.
References core::init().
Referenced by build_random_loops().
| bool protocols::LoopRebuild::get_desired_loops_exist | ( | ) |
Definition at line 1014 of file looprelax_protocols.cc.
References core::init().
Referenced by build_random_loops().
| core::Real protocols::LoopRebuild::get_loop_combine_rate | ( | ) |
Definition at line 1046 of file looprelax_protocols.cc.
References core::init().
Referenced by select_one_loop().
|
private |
Definition at line 1263 of file looprelax_protocols.cc.
References core::init().
Referenced by build_loop_with_ccd_closure().
| moves::MonteCarloOP protocols::LoopRebuild::get_mc | ( | core::pose::Pose & | pose) |
Get the protocol's Monte Carlo object.
returns mc object
/////////////////////////////////////////////////////////////////////// LRLoop combine_loops( const LRLoop &loop1 , const LRLoop &loop2 ){ return LRLoop( std::min( loop1.start() , loop2.start() ), std::max( loop1.start() , loop2.start() ), (loop1.cut() + loop2.cut()) / 2, 1.0 - (1.0-loop1.skip_rate()) * (1.0-loop2.skip_rate()) , loop1.is_extended() || loop2.is_extended() ); }
Definition at line 1422 of file looprelax_protocols.cc.
References mc_, mc_created, and set_default_mc().
|
virtual |
Each derived class must specify its name. The class name.
Implements protocols::moves::Mover.
Definition at line 185 of file looprelax_protocols.cc.
|
inline |
Definition at line 92 of file looprelax_protocols.hh.
References random_loop_flag_.
Referenced by build_random_loops(), extend_barcode_regions_if_chain_break(), and select_one_loop().
| core::Real protocols::LoopRebuild::get_rmsd_tolerance | ( | ) |
Gets the RMSd tolerence, the most a loop may move during reconstruction.
Definition at line 191 of file looprelax_protocols.cc.
References core::init().
Referenced by acceptable_rmsd_change().
|
private |
Get the cutoff for score filtering loop conformations. CURRENTLY UNUSED IN THE PROTOCOL.
Definition at line 965 of file looprelax_protocols.cc.
References core::init().
|
inline |
Were loops successfully built?
Definition at line 89 of file looprelax_protocols.hh.
References success.
| bool protocols::LoopRebuild::loop_model | ( | ) |
Definition at line 980 of file looprelax_protocols.cc.
References core::init().
Referenced by barcode_extend_stems(), build_loop_with_ccd_closure(), build_random_loops(), and select_one_loop().
|
private |
Select a loop at random from the input list.
Definition at line 840 of file looprelax_protocols.cc.
References extended_loop(), get_loop_combine_rate(), get_random_loop_flag(), loop_model(), Loops_in_, protocols::loops::Loops::size(), protocols::loops::start, protocols::loops::stop, and protocols::TR().
Referenced by build_random_loops().
|
inline |
Definition at line 120 of file looprelax_protocols.hh.
References abort_on_failed_loop_.
|
inline |
Definition at line 103 of file looprelax_protocols.hh.
References allowed_failure_before_extend_.
|
inline |
Definition at line 111 of file looprelax_protocols.hh.
References allowed_failure_before_stop_.
| void protocols::LoopRebuild::set_default_mc | ( | core::pose::Pose & | pose) |
setting the mc object
sets mc object
Definition at line 1443 of file looprelax_protocols.cc.
References m_Temperature_, mc_, and scorefxn_.
| void protocols::LoopRebuild::set_default_settings | ( | ) |
sets all the standard settings for LoopBuild
Definition at line 1431 of file looprelax_protocols.cc.
References abort_on_failed_loop_, allowed_failure_before_extend_, allowed_failure_before_stop_, mc_created, random_loop_flag_, and use_default_extend_loops.
Referenced by LoopRebuild().
| void protocols::LoopRebuild::set_extended_loop | ( | bool | val) |
Specify whether the protocol should extend the loops before running loop-rebuild.
Definition at line 1291 of file looprelax_protocols.cc.
References extend_loops, and use_default_extend_loops.
|
private |
Definition at line 395 of file looprelax_protocols.cc.
References core::id::BB, core::kinematics::MoveMap::set(), core::kinematics::MoveMap::set_bb(), core::kinematics::MoveMap::set_chi(), and core::kinematics::MoveMap::set_jump().
Referenced by build_loop_with_ccd_closure().
|
inline |
Definition at line 95 of file looprelax_protocols.hh.
References random_loop_flag_.
|
private |
Definition at line 1144 of file looprelax_protocols.cc.
References core::init().
Referenced by barcode_extend_stems().
|
private |
Definition at line 253 of file looprelax_protocols.hh.
Referenced by get_abort_on_failed_loop(), set_abort_on_failed_loop(), and set_default_settings().
|
private |
Definition at line 249 of file looprelax_protocols.hh.
Referenced by get_allowed_failure_before_extend(), set_allowed_failure_before_extend(), and set_default_settings().
| int protocols::LoopRebuild::allowed_failure_before_stop |
Definition at line 125 of file looprelax_protocols.hh.
|
private |
Definition at line 251 of file looprelax_protocols.hh.
Referenced by get_allowed_failure_before_stop(), set_allowed_failure_before_stop(), and set_default_settings().
|
private |
Definition at line 241 of file looprelax_protocols.hh.
Referenced by extended_loop(), and set_extended_loop().
|
private |
Definition at line 238 of file looprelax_protocols.hh.
Referenced by build_loop_with_ccd_closure(), and LoopRebuild().
|
private |
Definition at line 237 of file looprelax_protocols.hh.
Referenced by apply(), protocols::LoopRefine::apply(), barcode_extend_stems(), build_random_loops(), and select_one_loop().
|
private |
Definition at line 255 of file looprelax_protocols.hh.
Referenced by set_default_mc().
|
private |
Definition at line 236 of file looprelax_protocols.hh.
Referenced by build_loop_with_ccd_closure(), get_mc(), and set_default_mc().
|
private |
Definition at line 256 of file looprelax_protocols.hh.
Referenced by apply(), get_mc(), and set_default_settings().
|
private |
Definition at line 235 of file looprelax_protocols.hh.
|
private |
Definition at line 247 of file looprelax_protocols.hh.
|
private |
Definition at line 233 of file looprelax_protocols.hh.
|
private |
Definition at line 245 of file looprelax_protocols.hh.
Referenced by get_random_loop_flag(), set_default_settings(), and set_random_loop_flag().
|
private |
Definition at line 234 of file looprelax_protocols.hh.
Referenced by build_loop_with_ccd_closure(), extend_barcode_regions_if_chain_break(), and set_default_mc().
|
private |
Definition at line 258 of file looprelax_protocols.hh.
Referenced by apply(), and get_success().
|
private |
Definition at line 243 of file looprelax_protocols.hh.
Referenced by extended_loop(), set_default_settings(), and set_extended_loop().
1.8.4