|
Rosetta 3.5
|
#include <OptEData.hh>


Public Types | |
| typedef core::chemical::AA | AA |
Public Types inherited from protocols::optimize_weights::OptEPositionData | |
| typedef core::Real | Real |
| typedef core::Size | Size |
| typedef core::optimization::Multivec | Multivec |
| typedef core::scoring::EnergyMap | EnergyMap |
| typedef core::scoring::ScoreTypes | ScoreTypes |
Public Member Functions | |
| PNatAAOptEPositionData () | |
| virtual | ~PNatAAOptEPositionData () |
| virtual Real | get_score (Multivec const &component_weights, Multivec const &vars, Multivec &dE_dvars, Size const num_energy_dofs, int const num_ref_dofs, int const num_total_dofs, EnergyMap const &fixed_terms, ScoreTypes const &score_list, ScoreTypes const &fixed_score_list) const |
| virtual void | print_score (std::ostream &ostr, Multivec const &component_weights, Multivec const &vars, Multivec &dE_dvars, Size const num_energy_dofs, int const num_ref_dofs, int const num_total_dofs, EnergyMap const &fixed_terms, ScoreTypes const &score_list, ScoreTypes const &fixed_score_list) const |
| virtual void | range (ScoreTypes const &free_score_list, ScoreTypes const &fixed_score_list, EnergyMap &lower_bound, EnergyMap &upper_bound) const |
| Return the upper and lower bound on the unweighted components at this position if they are larger (or smaller) than the unweighted values already in the two input EnergyMaps. More... | |
| virtual Size | size () const |
| virtual OptEPositionDataType | type () const |
| virtual void | write_to_file (std::ofstream &outfile) const |
| virtual void | read_from_file (std::ifstream &infile) |
| virtual void | write_to_binary_file (std::ofstream &outfile) const |
| virtual void | read_from_binary_file (std::ifstream &infile) |
| virtual Size | memory_use () const |
| void | set_position (Size pos_in) |
| Size | position () const |
| void | set_native_aa (AA nat_in) |
| AA | native_aa () const |
| void | set_neighbor_count (Size nb_in) |
| Size | neighbor_count () const |
| void | add_rotamer_line_data (PNatAAOptERotamerDataOP rot_in) |
| PNatAAOptERotamerDataOPs & | data () |
| PNatAAOptERotamerDataOPs const & | data () const |
| PNatAAOptERotamerDataOPs::const_iterator | rotamer_data_begin () const |
| PNatAAOptERotamerDataOPs::const_iterator | rotamer_data_end () const |
Public Member Functions inherited from protocols::optimize_weights::OptEPositionData | |
| OptEPositionData () | |
| virtual | ~OptEPositionData () |
| void | tag (std::string const &tag_in) |
| std::string const & | tag () const |
Protected Member Functions | |
| void | process_rotamers (Multivec const &vars, Size const num_energy_dofs, EnergyMap const &fixed_terms, ScoreTypes const &score_list, ScoreTypes const &fixed_score_list, Size const aa_range, utility::vector1< Real > const &dummy_set, utility::vector1< Real > &best_energy_by_aa, utility::vector1< utility::vector1< Real > > &unweighted_E_dof, Multivec &ref_deriv_weight) const |
| used by derived class as well – finds the energies for the best rotamer for each amino acid More... | |
Protected Member Functions inherited from protocols::optimize_weights::OptEPositionData | |
| void | update_range (SingleStructureDataCOP structure, ScoreTypes const &free_score_list, ScoreTypes const &fixed_score_list, EnergyMap &lower_bound, EnergyMap &upper_bound) const |
| Helper function for range(); updates lower/upper_bound as needed so that score_list scores from structure are included in the range. More... | |
Private Attributes | |
| Size | position_ |
| AA | native_aa_ |
| Size | neighbor_count_ |
| PNatAAOptERotamerDataOPs | data_ |
Definition at line 332 of file OptEData.hh.
Definition at line 335 of file OptEData.hh.
| protocols::optimize_weights::PNatAAOptEPositionData::PNatAAOptEPositionData | ( | ) |
Definition at line 202 of file OptEData.cc.
|
virtual |
Definition at line 205 of file OptEData.cc.
|
inline |
Definition at line 455 of file OptEData.hh.
References data_.
|
inline |
Definition at line 461 of file OptEData.hh.
References data_.
|
inline |
Definition at line 467 of file OptEData.hh.
References data_.
|
virtual |
Does actual work for OptE minimization
Determine the metric for optimization of energy weights. Original source is Brian Kuhlman's FORTRAN weight training program. Since the goal is to maximize site-by-site sequence recovery, the metric is decomposable by positions, and this does the work for one position. First, a pass is made through all the rotamers at the position, and the lowest energy rotamer for each amino acid is identified. Next, a rough partition function is constructed. The score to be minimized is the negative log of the probabilty of selecting a native aa rotamer (needn't be the native conformation).
Limitations:
| num_energy_dofs | Basically, turn over all the private data from OptEMultiFunc |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData.
Definition at line 225 of file OptEData.cc.
References core::chemical::num_canonical_aas.
|
virtual |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData, and protocols::optimize_weights::NestedEnergyTermPNatAAOptEPositionData.
Definition at line 658 of file OptEData.cc.
|
inline |
Definition at line 440 of file OptEData.hh.
References native_aa_.
|
inline |
Definition at line 450 of file OptEData.hh.
References neighbor_count_.
|
inline |
Definition at line 430 of file OptEData.hh.
References position_.
|
virtual |
| num_energy_dofs | Basically, turn over all the private data from OptEMultiFunc |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData.
Definition at line 306 of file OptEData.cc.
References protocols::sic_dock::neighbor_count(), core::chemical::num_canonical_aas, and core::scoring::rna::X.
|
protected |
used by derived class as well – finds the energies for the best rotamer for each amino acid
Definition at line 438 of file OptEData.cc.
|
virtual |
Return the upper and lower bound on the unweighted components at this position if they are larger (or smaller) than the unweighted values already in the two input EnergyMaps.
Implements protocols::optimize_weights::OptEPositionData.
Definition at line 397 of file OptEData.cc.
|
virtual |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData, and protocols::optimize_weights::NestedEnergyTermPNatAAOptEPositionData.
Definition at line 610 of file OptEData.cc.
References core::chemical::aa_unk.
|
virtual |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData, and protocols::optimize_weights::NestedEnergyTermPNatAAOptEPositionData.
Definition at line 515 of file OptEData.cc.
References core::chemical::aa_from_name().
|
inline |
Definition at line 472 of file OptEData.hh.
References data_.
|
inline |
Definition at line 476 of file OptEData.hh.
References data_.
|
inline |
Definition at line 435 of file OptEData.hh.
References native_aa_.
|
inline |
Definition at line 445 of file OptEData.hh.
References neighbor_count_.
|
inline |
Definition at line 426 of file OptEData.hh.
References position_.
|
inlinevirtual |
Implements protocols::optimize_weights::OptEPositionData.
Definition at line 384 of file OptEData.hh.
References data_.
|
virtual |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData, and protocols::optimize_weights::NestedEnergyTermPNatAAOptEPositionData.
Definition at line 493 of file OptEData.cc.
References protocols::optimize_weights::prob_native_amino_acid.
|
virtual |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData, and protocols::optimize_weights::NestedEnergyTermPNatAAOptEPositionData.
Definition at line 567 of file OptEData.cc.
References rot(), and core::io::serialization::size().
|
virtual |
Implements protocols::optimize_weights::OptEPositionData.
Reimplemented in protocols::optimize_weights::PSSMOptEPositionData, and protocols::optimize_weights::NestedEnergyTermPNatAAOptEPositionData.
Definition at line 500 of file OptEData.cc.
References protocols::sic_dock::neighbor_count(), and rot().
|
private |
Definition at line 501 of file OptEData.hh.
Referenced by add_rotamer_line_data(), data(), rotamer_data_begin(), rotamer_data_end(), and size().
|
private |
Definition at line 499 of file OptEData.hh.
Referenced by native_aa(), and set_native_aa().
|
private |
Definition at line 500 of file OptEData.hh.
Referenced by neighbor_count(), and set_neighbor_count().
|
private |
Definition at line 498 of file OptEData.hh.
Referenced by position(), and set_position().
1.8.4