Rosetta Protocols  2014.35
Public Member Functions | Private Member Functions | Private Attributes | List of all members
protocols::generalized_kinematic_closure::selector::GeneralizedKICselector Class Reference

#include <GeneralizedKICselector.hh>

Public Member Functions

 GeneralizedKICselector ()
 Creator for GeneralizedKICselector. More...
 
 ~GeneralizedKICselector ()
 Destructor for GeneralizedKICselector mover. More...
 
std::string get_name () const
 Returns the name of this class. More...
 
std::string get_selector_type_name (core::Size const selector_type) const
 Given a selector type, return its name. Returns "unknown_selector" if not recognized. More...
 
selector_type get_selector_type_by_name (std::string const &selectorname) const
 Given the name of a selector type, return the selector type enum. Returns unknown_selector if not recognized. More...
 
void set_selector_type (selector_type const &stype)
 Sets the selector type for this selector. More...
 
void set_selector_type (std::string const &stypename)
 Sets the selector type for this selector by name. More...
 
selector_type get_selector_type () const
 Returns the selector type for this selector. More...
 
void set_scorefunction (core::scoring::ScoreFunctionOP sfxn)
 Set the scorefunction used by this selector. More...
 
void set_boltzmann_temp (core::Real const &temp)
 Set the Boltzmann temperature used by this selector. More...
 
core::Real get_boltzmann_temp () const
 Returns the Boltzmann temperature used by this selector. More...
 
void apply (core::pose::Pose &pose, core::pose::Pose const &original_pose, utility::vector1< std::pair< core::Size, core::Size > > const &residue_map, utility::vector1< std::pair< core::id::AtomID, numeric::xyzVector< core::Real > > > const &atomlist, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &torsions, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &bondangles, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &bondlengths, utility::vector1< core::Size > const &nsol_for_attempt, core::Size const total_solutions) const
 Applies a selector type to choose a solution and set a loop pose. More...
 

Private Member Functions

void apply_random_selector (utility::vector1< core::Size > const &nsol_for_attempt, core::Size const total_solutions, core::Size &chosen_attempt_number, core::Size &chosen_solution) const
 Applies a random_selector selector. More...
 
void apply_lowest_energy_selector (utility::vector1< core::Size > const &nsol_for_attempt, core::Size const total_solutions, core::Size &chosen_attempt_number, core::Size &chosen_solution, core::scoring::ScoreFunctionOP sfxn, utility::vector1< std::pair< core::Size, core::Size > > const &residue_map, utility::vector1< std::pair< core::id::AtomID, numeric::xyzVector< core::Real > > > const &atomlist, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &torsions, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &bondangles, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &bondlengths, core::pose::Pose const &ref_loop_pose, core::pose::Pose const &ref_pose, core::Real const &boltzmann_kbt, bool const use_boltzmann) const
 Applies a lowest_energy_selector selector. More...
 
void apply_lowest_rmsd_selector (utility::vector1< core::Size > const &nsol_for_attempt, core::Size const total_solutions, core::Size &chosen_attempt_number, core::Size &chosen_solution, utility::vector1< std::pair< core::Size, core::Size > > const &residue_map, utility::vector1< std::pair< core::id::AtomID, numeric::xyzVector< core::Real > > > const &atomlist, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &torsions, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &bondangles, utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &bondlengths, core::pose::Pose const &ref_loop_pose) const
 Applies a lowest_rmsd_selector selector. More...
 

Private Attributes

selector_type selectortype_
 The selector type for this selector (see the selector_type enum for all types). More...
 
core::scoring::ScoreFunctionOP selector_sfxn_
 An owning pointer to a scoring function that a selector can use. More...
 
core::Real boltzmann_kbt_
 A Boltzmann temperature (kbt, in Rosetta energy units) that some selectors can use. More...
 

Constructor & Destructor Documentation

protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::GeneralizedKICselector ( )

Creator for GeneralizedKICselector.

protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::~GeneralizedKICselector ( )

Destructor for GeneralizedKICselector mover.

Member Function Documentation

void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::apply ( core::pose::Pose pose,
core::pose::Pose const &  original_pose,
utility::vector1< std::pair< core::Size, core::Size > > const &  residue_map,
utility::vector1< std::pair< core::id::AtomID, numeric::xyzVector< core::Real > > > const &  atomlist,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  torsions,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  bondangles,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  bondlengths,
utility::vector1< core::Size > const &  nsol_for_attempt,
core::Size const  total_solutions 
) const

Applies a selector type to choose a solution and set a loop pose.

Parameters
[in,out]pose– The loop to be closed. This function puts it into its new, closed conformation.
[in]original_pose– The original pose. Can be used for reference by selectors.
[in]residue_map– Mapping of (loop residue, original pose residue).
[in]atomlist– The list of (AtomID, original XYZ coordinates of atoms) representing the chain that was closed.
[in]torsions– Matrix of [closure attempt #][solution #][torsion #] with torsion values for each torsion angle in the chain. A selector will pick one solution.
[in]bondangles– Matrix of [closure attempt #][solution #][angle #] with bond angle values for each bond angle in the chain. A selector will pick one solution.
[in]bondlengths– Matrix of [closure attempt #][solution #][bondlength #] with bond length for each bond in the chain. A selector will pick one solution.
[in]nsol_for_attempt– List of the number of solutions for each attempt.
[in]total_solutions– Total number of solutions found.

References apply_lowest_energy_selector(), apply_lowest_rmsd_selector(), apply_random_selector(), protocols::generalized_kinematic_closure::selector::boltzmann_energy_selector, boltzmann_kbt_, protocols::generalized_kinematic_closure::selector::lowest_energy_selector, protocols::generalized_kinematic_closure::selector::lowest_rmsd_selector, protocols::generalized_kinematic_closure::selector::random_selector, selector_sfxn_, selectortype_, protocols::generalized_kinematic_closure::set_loop_pose(), and utility_exit_with_message.

void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::apply_lowest_energy_selector ( utility::vector1< core::Size > const &  nsol_for_attempt,
core::Size const  total_solutions,
core::Size chosen_attempt_number,
core::Size chosen_solution,
core::scoring::ScoreFunctionOP  sfxn,
utility::vector1< std::pair< core::Size, core::Size > > const &  residue_map,
utility::vector1< std::pair< core::id::AtomID, numeric::xyzVector< core::Real > > > const &  atomlist,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  torsions,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  bondangles,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  bondlengths,
core::pose::Pose const &  ref_loop_pose,
core::pose::Pose const &  ref_pose,
core::Real const &  boltzmann_kbt,
bool const  use_boltzmann 
) const
private

Applies a lowest_energy_selector selector.

This picks the lowest-energy solution, as scored with sfxn. It's a good idea to use a modified scorefunction for this (something that just has the backbone conformation and H-bonding terms, for example, since side-chains will not be repacked by default prior to invoking this selector).

This picks the lowest-energy solution, as scored with sfxn. It's a good idea to use a modified scorefunction for this (something that just has the backbone conformation and H-bonding terms, for example, since side-chains will not be repacked by default prior to invoking this selector). If the use_boltzmann parameter is set to true, the function randomly selects a solution weighted by exp(-E/kbt).

References protocols::generalized_kinematic_closure::copy_loop_pose_to_original(), core::scoring::get_score_function(), protocols::generalized_kinematic_closure::set_loop_pose(), and numeric::random::RandomGenerator::uniform().

Referenced by apply().

void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::apply_lowest_rmsd_selector ( utility::vector1< core::Size > const &  nsol_for_attempt,
core::Size const  total_solutions,
core::Size chosen_attempt_number,
core::Size chosen_solution,
utility::vector1< std::pair< core::Size, core::Size > > const &  residue_map,
utility::vector1< std::pair< core::id::AtomID, numeric::xyzVector< core::Real > > > const &  atomlist,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  torsions,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  bondangles,
utility::vector1< utility::vector1< utility::vector1< core::Real > > > const &  bondlengths,
core::pose::Pose const &  ref_loop_pose 
) const
private

Applies a lowest_rmsd_selector selector.

This picks the solution with the lowest RMSD from the starting pose.

References rms_wrapper(), and protocols::generalized_kinematic_closure::set_loop_pose().

Referenced by apply().

void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::apply_random_selector ( utility::vector1< core::Size > const &  nsol_for_attempt,
core::Size const  total_solutions,
core::Size chosen_attempt_number,
core::Size chosen_solution 
) const
private

Applies a random_selector selector.

This picks a solution randomly from the solutions that passed filters.

References numeric::random::RandomGenerator::random_range().

Referenced by apply().

core::Real protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::get_boltzmann_temp ( ) const
inline

Returns the Boltzmann temperature used by this selector.

References boltzmann_kbt_.

std::string protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::get_name ( ) const

Returns the name of this class.

Returns the name of this class ("GeneralizedKICselector").

selector_type protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::get_selector_type ( ) const
inline

Returns the selector type for this selector.

References selectortype_.

selector_type protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::get_selector_type_by_name ( std::string const &  selectorname) const

Given the name of a selector type, return the selector type enum. Returns unknown_selector if not recognized.

References protocols::generalized_kinematic_closure::selector::end_of_selector_list, get_selector_type_name(), and protocols::generalized_kinematic_closure::selector::unknown_selector.

Referenced by set_selector_type().

std::string protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::get_selector_type_name ( core::Size const  selector_type) const
void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::set_boltzmann_temp ( core::Real const &  temp)
inline

Set the Boltzmann temperature used by this selector.

References boltzmann_kbt_.

void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::set_scorefunction ( core::scoring::ScoreFunctionOP  sfxn)
inline

Set the scorefunction used by this selector.

References selector_sfxn_.

void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::set_selector_type ( selector_type const &  stype)
void protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::set_selector_type ( std::string const &  stypename)

Member Data Documentation

core::Real protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::boltzmann_kbt_
private

A Boltzmann temperature (kbt, in Rosetta energy units) that some selectors can use.

Referenced by apply(), get_boltzmann_temp(), and set_boltzmann_temp().

core::scoring::ScoreFunctionOP protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::selector_sfxn_
private

An owning pointer to a scoring function that a selector can use.

This must be set explicitly; otherwise, it's set to NULL by default.

Referenced by apply(), and set_scorefunction().

selector_type protocols::generalized_kinematic_closure::selector::GeneralizedKICselector::selectortype_
private

The selector type for this selector (see the selector_type enum for all types).

Referenced by apply(), get_selector_type(), and set_selector_type().


The documentation for this class was generated from the following files: