![]() |
Rosetta
2019.07
|
#include <PREMover.hh>
Public Types | |
typedef core::Real | Real |
typedef core::Size | Size |
typedef core::scoring::nmr::pre::PREData | PREData |
typedef core::scoring::nmr::pre::PREDataOP | PREDataOP |
typedef core::scoring::ScoreFunctionOP | ScoreFunctionOP |
typedef core::pose::Pose | Pose |
typedef protocols::moves::MoverOP | MoverOP |
typedef std::map< std::string, std::pair< std::string, core::Real > > | SpinlabelHistogramMap |
typedef utility::vector1 < PREDistanceRecord > | PREDistances |
typedef std::map< core::Size, PREDistances > | SpinlabelToPREDistances |
typedef utility::fixedsizearray1< Real, 8 > | Vec8 |
![]() | |
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 | |
PREMover () | |
Default constructor. More... | |
PREMover (std::string const &pre_data_file, Pose const &pose) | |
Construct PREMover from PRE data input file. More... | |
PREMover (PREMover const &other) | |
Copy constructor. More... | |
PREMover & | operator= (PREMover const &rhs) |
Copy assignment. More... | |
~PREMover () override | |
destructor More... | |
std::string | get_name () const override |
Get the name of this mover. More... | |
MoverOP | clone () const override |
Make a deep copy of this mover. More... | |
MoverOP | fresh_instance () const override |
Create a fresh instance of this mover. More... | |
void | apply (Pose &pose) override |
Calculate CB-CB distances from PRE rates and append them as atom pair distance constraints to the pose. More... | |
void | show (std::ostream &TR) const override |
Outputs details about the Mover, including current settings. More... | |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &datamap, protocols::filters::Filters_map const &, protocols::moves::Movers_map const &, core::pose::Pose const &pose) override |
Parse tags of XML script. More... | |
PREDataOP | get_pre_data () |
Getter and Setters. More... | |
ScoreFunctionOP | get_scorefunction () const |
bool | weighted_average () const |
bool | minimize_w_pre_csts () const |
void | set_pre_data (PREDataOP pre_data) |
void | set_scorefunction (ScoreFunctionOP sfxn) |
void | set_weighted_average (bool av) |
void | set_minimize_w_pre_csts (bool min) |
void | add_histogram_file (std::string const &spinlabel_name, std::string const &histogram_file, Real bin_size=0.5) |
![]() | |
Mover () | |
~Mover () override | |
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... | |
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... | |
virtual 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... | |
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... | |
void | set_current_job (protocols::jobdist::BasicJobCOP job) |
jobdist::BasicJobCOP | get_current_job () const |
Static Public Member Functions | |
static std::string | mover_name () |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
Create XML schema definition for PREMover. More... | |
![]() | |
static std::string | name () |
static void | register_options () |
Overload this static method if you access options within the mover. More... | |
Private Member Functions | |
Real | R2_to_dist_dd_curie (Vec8 const ¶ms, Real const R2) |
Calculate distance from R2 relaxation rate. More... | |
Real | R1_to_dist_dd_curie (Vec8 const ¶ms, Real const R1) |
Calculate distance from R1 relaxation rate. More... | |
void | pre_data_to_distances (core::scoring::nmr::pre::PREData &pre_data, SpinlabelToPREDistances &all_sl_distances) |
Calculate distances from relaxation rates and map them to their respective spinlabel and protein residue(s) More... | |
Private Attributes | |
SpinlabelHistogramMap | histogram_files_ |
Map of histogram files for very spinlabel type that is used in pre_data_. The histogram is used for instantiation of a SplineFunc potential for conversion of the measured PRE distance (e.g. for HN) into a CB-CB atom pair constraint. More... | |
PREDataOP | pre_data_ |
collection of all PRE datasets for multiple spinlabel sites More... | |
ScoreFunctionOP | sfxn_ |
scorefunction object More... | |
bool | weighted_average_ |
use PRESingleSet weights to calculate an average distance in case that the same PRE distance was measured multiple times (e.g. at different field strengths) for the same spinlabel site More... | |
bool | minimize_ |
Do one round of minimization of input pose after PRE distances constraints are added to the pose. More... | |
Additional Inherited Members | |
![]() | |
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... | |
typedef utility::vector1< PREDistanceRecord > protocols::nmr::pre::PREMover::PREDistances |
typedef std::map< std::string, std::pair< std::string, core::Real > > protocols::nmr::pre::PREMover::SpinlabelHistogramMap |
typedef std::map< core::Size, PREDistances > protocols::nmr::pre::PREMover::SpinlabelToPREDistances |
typedef utility::fixedsizearray1< Real, 8 > protocols::nmr::pre::PREMover::Vec8 |
protocols::nmr::pre::PREMover::PREMover | ( | ) |
Default constructor.
References core::scoring::get_score_function(), and sfxn_.
Referenced by clone(), and operator=().
protocols::nmr::pre::PREMover::PREMover | ( | std::string const & | pre_data_file, |
Pose const & | pose | ||
) |
Construct PREMover from PRE data input file.
References histogram_files_, pre_data_, and protocols::nmr::pre::TR().
protocols::nmr::pre::PREMover::PREMover | ( | PREMover const & | other | ) |
Copy constructor.
|
override |
destructor
void protocols::nmr::pre::PREMover::add_histogram_file | ( | std::string const & | spinlabel_name, |
std::string const & | histogram_file, | ||
Real | bin_size = 0.5 |
||
) |
References histogram_files_.
Referenced by parse_my_tag().
|
overridevirtual |
Calculate CB-CB distances from PRE rates and append them as atom pair distance constraints to the pose.
Implements protocols::moves::Mover.
References core::conformation::Residue::aa(), core::chemical::ResidueType::atom_index(), core::scoring::atom_pair_constraint, core::pose::Pose::constraint_set(), core::sequence::end, core::conformation::Residue::has(), histogram_files_, core::chemical::is_canonical_L_aa_or_gly(), minimize_, pre_data_, pre_data_to_distances(), core::pose::Pose::residue(), sfxn_, core::id::to_string(), core::pose::Pose::total_residue(), protocols::nmr::pre::TR(), and core::conformation::Residue::type().
|
overridevirtual |
|
overridevirtual |
Create a fresh instance of this mover.
Reimplemented from protocols::moves::Mover.
|
overridevirtual |
|
inline |
Getter and Setters.
References pre_data_.
|
inline |
References sfxn_.
|
static |
Referenced by get_name(), protocols::nmr::pre::PREMoverCreator::keyname(), and provide_xml_schema().
Copy assignment.
References PREMover().
|
overridevirtual |
Parse tags of XML script.
Reimplemented from protocols::moves::Mover.
References add_histogram_file(), protocols::abinitio::filename(), minimize_, core::scoring::parse_score_function(), pre_data_, sfxn_, protocols::nmr::pre::TR(), and weighted_average_.
|
private |
Calculate distances from relaxation rates and map them to their respective spinlabel and protein residue(s)
References core::scoring::nmr::pre::PREData::get_number_spinlabel_sites(), core::scoring::nmr::pre::PREData::get_pre_multiset_vec(), core::scoring::nmr::R1_PARA, R1_to_dist_dd_curie(), core::scoring::nmr::R2_PARA, R2_to_dist_dd_curie(), protocols::nmr::pre::TR(), and weighted_average_.
Referenced by apply().
|
static |
Create XML schema definition for PREMover.
References mover_name(), and protocols::moves::xsd_type_definition_w_attributes_and_repeatable_subelements().
Referenced by protocols::nmr::pre::PREMoverCreator::provide_xml_schema().
|
private |
Calculate distance from R1 relaxation rate.
Considers dipolar and Curie relaxation params[1] = gamma_I: gyromagnetic ratio of the nuclear spin (must be provided in rad/(s*T), dimension is 10^6) params[2] = gJ: electron Lande factor params[3] = S: total spin quantum number params[4] = omega_I: nuclear spin resonance frequency (must be provided in rad/s, dimension is 10^6) params[5] = tau_c: total correlation time (must be provided in s, typical dimension is 10^-9) params[6] = tau_r: rotational correlation time (must be provided in s, typical dimension is 10^-9) params[7] = B0: magnetic field strength (in Tesla) params[8] = T: temperature (in K) R1: R1 relaxation rate (in Hz)
Referenced by pre_data_to_distances().
|
private |
Calculate distance from R2 relaxation rate.
Considers dipolar and Curie relaxation params[1] = gamma_I: gyromagnetic ratio of the nuclear spin (must be provided in rad/(s*T), dimension is 10^6) params[2] = gJ: electron Lande factor params[3] = S: total spin quantum number params[4] = omega_I: nuclear spin resonance frequency (must be provided in rad/s, dimension is 10^6) params[5] = tau_c: total correlation time (must be provided in s, typical dimension is 10^-9) params[6] = tau_r: rotational correlation time (must be provided in s, typical dimension is 10^-9) params[7] = B0: magnetic field strength (in Tesla) params[8] = T: temperature (in K) R2: R2 relaxation rate (in Hz)
Referenced by pre_data_to_distances().
|
inline |
References protocols::mean_field::min(), and minimize_.
|
inline |
References sfxn_.
|
inline |
References weighted_average_.
|
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 histogram_files_, and pre_data_.
|
inline |
References weighted_average_.
|
private |
Map of histogram files for very spinlabel type that is used in pre_data_. The histogram is used for instantiation of a SplineFunc potential for conversion of the measured PRE distance (e.g. for HN) into a CB-CB atom pair constraint.
Referenced by add_histogram_file(), apply(), PREMover(), and show().
|
private |
Do one round of minimization of input pose after PRE distances constraints are added to the pose.
Referenced by apply(), minimize_w_pre_csts(), parse_my_tag(), and set_minimize_w_pre_csts().
|
private |
collection of all PRE datasets for multiple spinlabel sites
Referenced by apply(), get_pre_data(), parse_my_tag(), PREMover(), set_pre_data(), and show().
|
private |
scorefunction object
Referenced by apply(), get_scorefunction(), parse_my_tag(), PREMover(), and set_scorefunction().
|
private |
use PRESingleSet weights to calculate an average distance in case that the same PRE distance was measured multiple times (e.g. at different field strengths) for the same spinlabel site
Referenced by parse_my_tag(), pre_data_to_distances(), set_weighted_average(), and weighted_average().