![]() |
Rosetta Core
2014.35
|
#include <MatrixScoringScheme.hh>
Public Member Functions | |
MatrixScoringScheme () | |
MatrixScoringScheme (Real open, Real extend, utility::file::FileName const &fn) | |
ctor More... | |
MatrixScoringScheme (Real open, Real extend, utility::vector1< utility::vector1< core::Real > > matrix) | |
ScoringSchemeOP | clone () const |
returns owning pointer to a new object with a deep copy of this object's values. More... | |
virtual | ~MatrixScoringScheme () |
dtor More... | |
void | read_from_database (std::string name="BLOSUM62") |
Read an alignment matrix from the given database filename using the NCBI BLOSUM format for matrices. More... | |
void | read_from_file (utility::file::FileName const &fn) |
Read an alignment matrix from the given filename using the NCBI BLOSUM format for matrices. More... | |
void | read_data (utility::io::izstream &input) |
utility::vector1< Real > | values_for_aa (char aa) |
Get the values for amino acid aa, in Rosetta aa order. More... | |
utility::vector1< Real > | values_for_aa (core::chemical::AA aa) |
Get the values for amino acid aa, in Rosetta aa order. More... | |
utility::vector1 < utility::vector1< Real > > | scoring_matrix () const |
virtual Real | score (SequenceOP seq1, SequenceOP seq2, Size pos1, Size pos2) |
![]() | |
ScoringScheme () | |
ctor More... | |
virtual | ~ScoringScheme () |
dtor More... | |
virtual Real | gap_open () const |
Gets the gap opening penalty. More... | |
virtual Real | gap_extend () const |
Gets the gap extension penalty. More... | |
void | gap_open (Real const gap_open) |
Sets the gap opening penalty. More... | |
void | gap_extend (Real const gap_extend) |
Sets the gap extension penalty. More... | |
std::string | type () const |
getters for type, which is a unique string name for this object. More... | |
void | type (std::string new_type) |
getters for type, which is a unique string name for this object. More... | |
void | unimplemented_method_error (std::string const &method_name) const |
Utility method for producing useful error messages and exiting from program. Declared const which is funny, because exiting the program certainly changes the state of this object! This might be replaced with exception handling if we ever start using those. More... | |
bool | is_good (Real const &num) |
Private Member Functions | |
void | init_type () |
Private Attributes | |
utility::vector1 < utility::vector1< Real > > | scoring_matrix_ |
|
inline |
References core::sequence::ScoringScheme::gap_extend(), core::sequence::ScoringScheme::gap_open(), and init_type().
Referenced by clone().
|
inline |
|
inline |
|
inlinevirtual |
dtor
|
inlinevirtual |
returns owning pointer to a new object with a deep copy of this object's values.
Implements core::sequence::ScoringScheme.
References core::sequence::ScoringScheme::gap_extend(), core::sequence::ScoringScheme::gap_open(), MatrixScoringScheme(), and scoring_matrix().
|
inlineprivate |
References core::sequence::ScoringScheme::type().
Referenced by MatrixScoringScheme().
|
virtual |
Reimplemented from core::sequence::ScoringScheme.
References core::chemical::aa_from_oneletter_code(), core::sequence::end, getline(), core::chemical::num_aa_types, core::chemical::oneletter_code_specifies_aa(), score(), scoring_matrix_, and utility_exit_with_message.
Referenced by read_from_file().
void core::sequence::MatrixScoringScheme::read_from_database | ( | std::string | name = "BLOSUM62" | ) |
Read an alignment matrix from the given database filename using the NCBI BLOSUM format for matrices.
References basic::database::full_name(), and read_from_file().
Referenced by core::sequence::SequenceProfile::generate_from_sequence().
|
virtual |
Read an alignment matrix from the given filename using the NCBI BLOSUM format for matrices.
Reimplemented from core::sequence::ScoringScheme.
References read_data(), and utility_exit_with_message.
Referenced by MatrixScoringScheme(), and read_from_database().
|
virtual |
Implements core::sequence::ScoringScheme.
References aa1, aa2, core::chemical::aa_from_oneletter_code(), core::chemical::aa_unk, length, runtime_assert, scoring_matrix_, and core::sequence::tr.
Referenced by read_data().
utility::vector1< utility::vector1< Real > > core::sequence::MatrixScoringScheme::scoring_matrix | ( | ) | const |
References scoring_matrix_.
Referenced by clone().
utility::vector1< Real > core::sequence::MatrixScoringScheme::values_for_aa | ( | char | aa | ) |
Get the values for amino acid aa, in Rosetta aa order.
References core::chemical::aa_ala, core::chemical::aa_from_oneletter_code(), core::chemical::oneletter_code_specifies_aa(), scoring_matrix_, and core::io::serialization::size().
Referenced by core::sequence::SequenceProfile::generate_from_sequence().
utility::vector1< Real > core::sequence::MatrixScoringScheme::values_for_aa | ( | core::chemical::AA | aa | ) |
Get the values for amino acid aa, in Rosetta aa order.
References scoring_matrix_.
|
private |
Referenced by read_data(), score(), scoring_matrix(), and values_for_aa().