|
Rosetta 3.5
|
scores a fragment by secondary structure similarity The score for each position is P(H), P(L) or P(E) if a vall residue is within Helix, Loop or Extended secondary stucture element, respectively. P(H), P(L) and P(E) denotes the probability that a given residue in a query is within Helix, Loop or Extended secondary stucture element. The total score of a fragment is a simple sum of all positions; for N-mer fragment is a sum of N terms
If P(H), P(L) and P(E) probabilities takes only 1.0 and 0.0 values, result of this scoring function should be the same as SecondaryIdentity, although the later one is faster.
More...
#include <SecondarySimilarity.hh>


Public Member Functions | |
| SecondarySimilarity (Size priority, Real lowest_acceptable_value, bool use_lowest, core::fragment::SecondaryStructureOP query_prediction, std::string prediction_name, Size sequence_length, utility::vector1< Size > &frag_sizes, Size longest_vall_chunk) | |
| ~SecondarySimilarity () | |
| void | do_caching (VallChunkOP) |
| void | do_caching_simple (VallChunkOP) |
| bool | cached_score (FragmentCandidateOP f, FragmentScoreMapOP empty_map) |
| void | clean_up () |
| virtual bool | score (FragmentCandidateOP, FragmentScoreMapOP) |
| Computes the score. More... | |
| core::fragment::SecondaryStructureOP | get_secondary_prediction () |
| returns the secondary structure porediction object that is used by this score More... | |
| std::string & | get_prediction_name () |
Public Member Functions inherited from protocols::frag_picker::scores::CachingScoringMethod | |
| CachingScoringMethod (Size priority, Real lowest_acceptable_value, bool use_lowest, std::string name) | |
Public Member Functions inherited from protocols::frag_picker::scores::FragmentScoringMethod | |
| FragmentScoringMethod (Size priority, Real lowest_acceptable_value, bool use_lowest, std::string name) | |
| std::string & | get_score_name () |
| Returns a name of this scoring method. More... | |
| Size | get_id () |
| Returns an integer index assigned to this scoring method by a scoring manager. More... | |
| void | set_id (Size id) |
| Sets a new integer index for this scoring method. More... | |
| Size | get_priority () |
| Returns a priority of this scoring method. More... | |
| Real | get_min_allowed_score () |
| Returns the lowest acceptable score value for this scoring method. More... | |
| bool | get_use_lowest () |
| Returns the boolean choice on using the above lowest acceptable score value. More... | |
| void | set_min_allowed_score (Real lowest_acceptable_value) |
| Sets a new value of the lowest acceptable score. More... | |
Protected Attributes | |
| Matrix | scores_ |
| utility::vector1< Matrix > | cache_ |
Private Attributes | |
| std::string | prediction_name_ |
| core::fragment::SecondaryStructureOP | query_ss_ |
| utility::vector1 < utility::vector1< Real > > | raw_probs_ |
| Size | query_len_ |
| std::string | cached_scores_id_ |
scores a fragment by secondary structure similarity The score for each position is P(H), P(L) or P(E) if a vall residue is within Helix, Loop or Extended secondary stucture element, respectively. P(H), P(L) and P(E) denotes the probability that a given residue in a query is within Helix, Loop or Extended secondary stucture element. The total score of a fragment is a simple sum of all positions; for N-mer fragment is a sum of N terms
If P(H), P(L) and P(E) probabilities takes only 1.0 and 0.0 values, result of this scoring function should be the same as SecondaryIdentity, although the later one is faster.
Definition at line 48 of file SecondarySimilarity.hh.
| protocols::frag_picker::scores::SecondarySimilarity::SecondarySimilarity | ( | Size | priority, |
| Real | lowest_acceptable_value, | ||
| bool | use_lowest, | ||
| core::fragment::SecondaryStructureOP | query_prediction, | ||
| std::string | prediction_name, | ||
| Size | sequence_length, | ||
| utility::vector1< Size > & | frag_sizes, | ||
| Size | longest_vall_chunk | ||
| ) |
Definition at line 123 of file SecondarySimilarity.cc.
References cache_, protocols::frag_picker::scores::create_cache(), query_len_, query_ss_, raw_probs_, and scores_.
|
inline |
Definition at line 55 of file SecondarySimilarity.hh.
|
virtual |
Reimplemented from protocols::frag_picker::scores::CachingScoringMethod.
Definition at line 105 of file SecondarySimilarity.cc.
References cache_, protocols::frag_picker::scores::FragmentScoringMethod::id_, protocols::frag_picker::scores::FragmentScoringMethod::lowest_acceptable_value_, and protocols::frag_picker::scores::FragmentScoringMethod::use_lowest_.
|
inlinevirtual |
Implements protocols::frag_picker::scores::CachingScoringMethod.
Definition at line 60 of file SecondarySimilarity.hh.
|
virtual |
Implements protocols::frag_picker::scores::CachingScoringMethod.
Definition at line 67 of file SecondarySimilarity.cc.
References cache_, cached_scores_id_, do_caching_simple(), protocols::frag_picker::scores::rolling_score(), scores_, core::io::serialization::size(), and protocols::frag_picker::scores::trSecondarySimilarity().
| void protocols::frag_picker::scores::SecondarySimilarity::do_caching_simple | ( | VallChunkOP | chunk) |
Definition at line 84 of file SecondarySimilarity.cc.
References query_len_, query_ss_, raw_probs_, scores_, and protocols::frag_picker::scores::trSecondarySimilarity().
Referenced by do_caching().
|
inline |
Definition at line 68 of file SecondarySimilarity.hh.
|
inline |
returns the secondary structure porediction object that is used by this score
Definition at line 66 of file SecondarySimilarity.hh.
References query_ss_.
|
virtual |
Computes the score.
Reimplemented from protocols::frag_picker::scores::CachingScoringMethod.
Definition at line 42 of file SecondarySimilarity.cc.
References protocols::frag_picker::scores::FragmentScoringMethod::id_, protocols::frag_picker::scores::FragmentScoringMethod::lowest_acceptable_value_, query_ss_, and protocols::frag_picker::scores::FragmentScoringMethod::use_lowest_.
|
protected |
Definition at line 71 of file SecondarySimilarity.hh.
Referenced by cached_score(), do_caching(), and SecondarySimilarity().
|
private |
Definition at line 78 of file SecondarySimilarity.hh.
Referenced by do_caching().
|
private |
Definition at line 73 of file SecondarySimilarity.hh.
|
private |
Definition at line 76 of file SecondarySimilarity.hh.
Referenced by do_caching_simple(), and SecondarySimilarity().
|
private |
Definition at line 74 of file SecondarySimilarity.hh.
Referenced by do_caching_simple(), get_secondary_prediction(), score(), and SecondarySimilarity().
|
private |
Definition at line 75 of file SecondarySimilarity.hh.
Referenced by do_caching_simple(), and SecondarySimilarity().
|
protected |
Definition at line 68 of file SecondarySimilarity.hh.
Referenced by do_caching(), do_caching_simple(), and SecondarySimilarity().
1.8.4