![]() |
Rosetta Protocols
2014.35
|
scores a fragment by secondary structure similarity More...
#include <PartialSecondarySimilarity.hh>
Public Member Functions | |
PartialSecondarySimilarity (Size priority, Real lowest_acceptable_value, bool use_lowest, core::fragment::SecondaryStructureOP query_prediction, std::string prediction_name, Size sequence_length, Size longest_vall_chunk) | |
~PartialSecondarySimilarity () | |
void | do_caching (VallChunkOP) |
bool | cached_score (FragmentCandidateOP f, FragmentScoreMapOP empty_map) |
void | clean_up () |
virtual bool | score (FragmentCandidateOP, FragmentScoreMapOP) |
Computes the score. More... | |
std::string & | get_prediction_name () |
![]() | |
CachingScoringMethod (Size priority, Real lowest_acceptable_value, bool use_lowest, std::string name) | |
![]() | |
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_ |
![]() | |
Size | id_ |
Size | priority_ |
std::string | name_ |
Real | lowest_acceptable_value_ |
bool | use_lowest_ |
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.
protocols::frag_picker::scores::PartialSecondarySimilarity::PartialSecondarySimilarity | ( | Size | priority, |
Real | lowest_acceptable_value, | ||
bool | use_lowest, | ||
core::fragment::SecondaryStructureOP | query_prediction, | ||
std::string | prediction_name, | ||
Size | sequence_length, | ||
Size | longest_vall_chunk | ||
) |
|
inline |
|
virtual |
Reimplemented from protocols::frag_picker::scores::CachingScoringMethod.
References score().
|
inlinevirtual |
|
virtual |
Implements protocols::frag_picker::scores::CachingScoringMethod.
References protocols::frag_picker::VallChunk::at(), cached_scores_id_, protocols::frag_picker::VallChunk::chunk_key(), query_len_, raw_probs_, s, scores_, protocols::frag_picker::VallChunk::size(), and protocols::frag_picker::scores::trPartialSecondarySimilarity.
|
inline |
|
virtual |
Computes the score.
Reimplemented from protocols::frag_picker::scores::CachingScoringMethod.
References protocols::frag_picker::VallChunk::at(), chunk, protocols::frag_picker::scores::FragmentScoringMethod::id_, protocols::frag_picker::scores::FragmentScoringMethod::lowest_acceptable_value_, raw_probs_, s, ss, and protocols::frag_picker::scores::FragmentScoringMethod::use_lowest_.
Referenced by cached_score().
|
private |
Referenced by do_caching().
|
private |
Referenced by PartialSecondarySimilarity().
|
private |
Referenced by PartialSecondarySimilarity().
|
private |
Referenced by PartialSecondarySimilarity().
|
private |
|
private |
Referenced by do_caching(), and PartialSecondarySimilarity().
|
private |
Referenced by do_caching(), PartialSecondarySimilarity(), and score().
|
protected |
Referenced by do_caching(), and PartialSecondarySimilarity().