Rosetta
|
#include <SSPredictionFilter.hh>
Public Member Functions | |
SSPredictionFilter () | |
SSPredictionFilter (core::Real const threshold, std::string const &cmd, std::string const &blueprint_filename, bool const use_probability, bool const mismatch_probability, bool const use_scratch_dir=false) | |
~SSPredictionFilter () override | |
bool | apply (core::pose::Pose const &pose) const override |
Returns true if the given pose passes the filter, false otherwise. More... | |
protocols::filters::FilterOP | clone () const override |
protocols::filters::FilterOP | fresh_instance () const override |
void | report (std::ostream &out, core::pose::Pose const &pose) const override |
core::Real | report_sm (core::pose::Pose const &pose) const override |
used to report filter internals through a score or silent file More... | |
core::Real | compute (core::pose::Pose const &pose) const |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data_map) override |
Called by FilterFactory when constructing new Filter. Takes care of the specific mover's parsing. More... | |
std::string | name () const override |
void | set_secstruct (std::string const secstruct) |
Sets the secondary structure to be compared with the psipred result. If neither this nor the blueprint is set, DSSP will be used to determine the pose secondary structure. More... | |
void | set_cmd (std::string const &cmd) |
Sets the psipred executable (has no effect if "use_svm" is true) More... | |
void | set_blueprint (protocols::parser::BluePrintOP blueprint) |
Sets a blueprint object which can be used to determine the desired secondary structure. More... | |
void | set_blueprint_file (std::string const &blueprint_file) |
Sets a blueprint file which can be used to determine the desired secondary structure. More... | |
void | set_threshold (core::Real const threshold) |
Sets the threshold. If use_probablility is true, the filter will pass if the calculated value is <= threshold. If use_probability is false, the filter will pass if the calcualted value is >= threshold. More... | |
void | set_use_probability (bool const use_probability) |
Sets whether or not to use the predicted SS probabilities to compute a value, or to use the predicted secondary structure (match or not matching) for each residue. Values are combined into a boltzmann sum-like-value using the provided temperature, so that poorly predicted residues have a larger impact on the score. More... | |
void | set_mismatch_probability (bool const mismatch_probability) |
assumes use_probability, if set this will compute the cumulative probability of having correct secondary structure at all residues More... | |
void | set_use_confidence (bool const use_confidence) |
tells whether to use the psipred pass2 confidence values – overrrides use_probability. More... | |
void | set_temperature (core::Real const temp) |
Sets the temperature which is used to compute probability-based values. More... | |
void | set_use_svm (bool const use_svm) |
If set, a trained SVM will be used instead of psipred to predict the secondary structure. More... | |
void | set_psipred_interface (core::io::external::PsiPredInterfaceOP psipred) |
Sets the psipred interface object that will be used to call psipred. More... | |
![]() | |
Filter () | |
Filter (std::string const &) | |
~Filter () override | |
virtual std::string | get_type () const |
std::string | get_user_defined_name () const |
void | set_user_defined_name (std::string const &name) |
virtual void | clear () |
used to clear internal variables if needed. Using fresh_instance is preferred since it's a pure virtual More... | |
virtual core::Real | score (core::pose::Pose &pose) |
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 std::string | class_name () |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
Private Member Functions | |
core::Real | compute_boltz_sum (utility::vector1< core::Real > const &probabilities) const |
computes the weighted boltzmann sum of the passed vector More... | |
core::Real | compute_mismatch_prob (utility::vector1< core::Real > const &probabilities) const |
computes one minus the geometric mean of the passed vector More... | |
void | set_scratch_dir () |
set the scratch dir to out::path::scratch or error if that's not set More... | |
Private Attributes | |
core::Real | threshold_ |
std::string | cmd_ |
protocols::parser::BluePrintOP | blueprint_ |
bool | use_probability_ |
bool | mismatch_probability_ |
bool | use_confidence_ |
tells whether to use the psipred pass2 confidence values – overrrides use_probability. More... | |
bool | use_svm_ |
should we use svm to estimate secondary structure? More... | |
core::Real | temp_ |
what temperature should we be using doing a boltzmann sum? More... | |
protocols::ss_prediction::SS_predictorOP | ss_predictor_ |
the object which predicts the secondary structure More... | |
core::io::external::PsiPredInterfaceOP | psipred_interface_ |
the object which communicates with psipred and interprets its output More... | |
std::string | secstruct_ |
std::string | scratch_dir_ |
the scratch folder to use with psipred (or "") More... | |
Additional Inherited Members | |
![]() | |
std::string | scorename_ |
protocols::denovo_design::filters::SSPredictionFilter::SSPredictionFilter | ( | ) |
protocols::denovo_design::filters::SSPredictionFilter::SSPredictionFilter | ( | core::Real const | threshold, |
std::string const & | cmd, | ||
std::string const & | blueprint_filename, | ||
bool const | use_probability, | ||
bool const | mismatch_probability, | ||
bool const | use_scratch_dir = false |
||
) |
References scratch_dir_, set_psipred_interface(), and set_scratch_dir().
|
overridedefault |
|
overridevirtual |
Returns true if the given pose passes the filter, false otherwise.
Implements protocols::filters::Filter.
References compute(), threshold_, and use_probability_.
|
static |
|
overridevirtual |
Implements protocols::filters::Filter.
core::Real protocols::denovo_design::filters::SSPredictionFilter::compute | ( | core::pose::Pose const & | pose | ) | const |
References blueprint_, compute_boltz_sum(), compute_mismatch_prob(), protocols::simple_filters::dssp(), core::io::external::generate_prob(), protocols::ss_prediction::get_label(), protocols::ss_prediction::get_prob(), core::conformation::Residue::is_protein(), mismatch_probability_, core::conformation::Residue::name1(), core::io::external::PsiPredResult::nres, core::io::external::PsiPredResult::psipred2_confidence, psipred_interface_, core::io::external::PsiPredResult::psipred_prob, core::pose::Pose::residue(), secstruct_, core::pose::Pose::size(), ss_predictor_, protocols::TR(), use_confidence_, use_probability_, and use_svm_.
Referenced by apply(), report(), and report_sm().
|
private |
computes the weighted boltzmann sum of the passed vector
References core::simple_metrics::metrics::sum, temp_, and protocols::TR().
Referenced by compute().
|
private |
computes one minus the geometric mean of the passed vector
computes the overall probability P as the product of each residue probability p. Then returns the Nth root of P for N residues.
References core::simple_metrics::metrics::sum, and protocols::TR().
Referenced by compute().
|
overridevirtual |
Implements protocols::filters::Filter.
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References class_name().
|
overridevirtual |
Called by FilterFactory when constructing new Filter. Takes care of the specific mover's parsing.
Reimplemented from protocols::filters::Filter.
References cmd_, mismatch_probability_, scratch_dir_, set_blueprint_file(), set_cmd(), set_mismatch_probability(), set_psipred_interface(), set_scratch_dir(), set_secstruct(), set_temperature(), set_threshold(), set_use_confidence(), set_use_probability(), set_use_svm(), ss_predictor_, temp_, threshold_, use_confidence_, use_probability_, and use_svm_.
|
static |
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References compute(), and core::conformation::membrane::out.
|
overridevirtual |
used to report filter internals through a score or silent file
Reimplemented from protocols::filters::Filter.
References compute().
void protocols::denovo_design::filters::SSPredictionFilter::set_blueprint | ( | protocols::parser::BluePrintOP | blueprint | ) |
Sets a blueprint object which can be used to determine the desired secondary structure.
References blueprint_.
Referenced by set_blueprint_file().
void protocols::denovo_design::filters::SSPredictionFilter::set_blueprint_file | ( | std::string const & | blueprint_file | ) |
Sets a blueprint file which can be used to determine the desired secondary structure.
References blueprint_, set_blueprint(), and protocols::TR().
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_cmd | ( | std::string const & | cmd | ) |
Sets the psipred executable (has no effect if "use_svm" is true)
References cmd_.
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_mismatch_probability | ( | bool const | mismatch_probability | ) |
assumes use_probability, if set this will compute the cumulative probability of having correct secondary structure at all residues
References mismatch_probability_.
Referenced by parse_my_tag().
|
inline |
Sets the psipred interface object that will be used to call psipred.
References psipred_interface_.
Referenced by parse_my_tag(), and SSPredictionFilter().
|
private |
set the scratch dir to out::path::scratch or error if that's not set
References scratch_dir_.
Referenced by parse_my_tag(), and SSPredictionFilter().
void protocols::denovo_design::filters::SSPredictionFilter::set_secstruct | ( | std::string const | secstruct | ) |
Sets the secondary structure to be compared with the psipred result. If neither this nor the blueprint is set, DSSP will be used to determine the pose secondary structure.
References secstruct_.
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_temperature | ( | core::Real const | temp | ) |
Sets the temperature which is used to compute probability-based values.
References temp_.
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_threshold | ( | core::Real const | threshold | ) |
Sets the threshold. If use_probablility is true, the filter will pass if the calculated value is <= threshold. If use_probability is false, the filter will pass if the calcualted value is >= threshold.
References threshold_.
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_use_confidence | ( | bool const | use_confidence | ) |
tells whether to use the psipred pass2 confidence values – overrrides use_probability.
References use_confidence_.
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_use_probability | ( | bool const | use_probability | ) |
Sets whether or not to use the predicted SS probabilities to compute a value, or to use the predicted secondary structure (match or not matching) for each residue. Values are combined into a boltzmann sum-like-value using the provided temperature, so that poorly predicted residues have a larger impact on the score.
References use_probability_.
Referenced by parse_my_tag().
void protocols::denovo_design::filters::SSPredictionFilter::set_use_svm | ( | bool const | use_svm | ) |
If set, a trained SVM will be used instead of psipred to predict the secondary structure.
References use_svm_.
Referenced by parse_my_tag().
|
private |
Referenced by compute(), set_blueprint(), and set_blueprint_file().
|
private |
Referenced by parse_my_tag(), and set_cmd().
|
private |
Referenced by compute(), parse_my_tag(), and set_mismatch_probability().
|
private |
the object which communicates with psipred and interprets its output
Referenced by compute(), and set_psipred_interface().
|
private |
the scratch folder to use with psipred (or "")
Referenced by parse_my_tag(), set_scratch_dir(), and SSPredictionFilter().
|
private |
Referenced by compute(), and set_secstruct().
|
private |
the object which predicts the secondary structure
Referenced by compute(), and parse_my_tag().
|
private |
what temperature should we be using doing a boltzmann sum?
Referenced by compute_boltz_sum(), parse_my_tag(), and set_temperature().
|
private |
Referenced by apply(), parse_my_tag(), and set_threshold().
|
private |
tells whether to use the psipred pass2 confidence values – overrrides use_probability.
Referenced by compute(), parse_my_tag(), and set_use_confidence().
|
private |
Referenced by apply(), compute(), parse_my_tag(), and set_use_probability().
|
private |
should we use svm to estimate secondary structure?
Referenced by compute(), parse_my_tag(), and set_use_svm().