![]() |
Rosetta Protocols
2014.35
|
#include <VallData.hh>
Public Member Functions | |
VallData () | |
default constructor More... | |
VallData (std::string const &filename) | |
constructor from input vall database file More... | |
void | shrink () |
removes excess storage capacity to minimize memory usage More... | |
void | read_file (std::string const &filename) |
read from vall database file "filename" More... | |
void | add_line (const char sq, const char ss, const Real ph, const Real ps, const Real om) |
read in one more line from Vall input file More... | |
utility::vector1< char > const & | sequence () const |
utility::vector1< char > const & | secstruct () const |
utility::vector1< char > const & | bigbin () const |
utility::vector1< Real > const & | phi () const |
utility::vector1< Real > const & | psi () const |
utility::vector1< Real > const & | omega () const |
utility::vector1< Size > const & | chain () const |
int | size () const |
number of lines in Vall database More... | |
Size | num_chains () const |
number of chains More... | |
void | get_frags (Size const nfrags, std::string const &target_seq, std::string const &target_ss, Real const seq_weight, Real const ss_weight, bool const exclude_gly, bool const exclude_pro, bool const exclude_cis_peptides, utility::vector1< Size > const &homs_to_exclude, SingleResidueTorsionFragmentLibrary &library, Real const bb_weight=0.0, std::string const &target_bb=std::string()) const |
pick fragments in a single window More... | |
void | get_frags (Size const nfrags, std::string const &target_seq, utility::vector1< std::map< char, core::Real > > const &target_ss, Real const seq_weight, Real const ss_weight, bool const exclude_gly, bool const exclude_pro, bool const exclude_cis_peptides, utility::vector1< Size > const &homs_to_exclude, SingleResidueTorsionFragmentLibrary &library, Real const bb_weight=0.0, std::string const &target_bb=std::string()) const |
void | get_cheating_frags (Size const nfrags, std::string const &target_seq, std::string const &target_ss, utility::vector1< Real > const &target_phi, utility::vector1< Real > const &target_psi, utility::vector1< Real > const &target_omega, Real const seq_weight, Real const ss_weight, Real const torsion_weight, Real const min_torsion_dev, Real const max_torsion_dev, utility::vector1< Size > const &homs_to_exclude, SingleResidueTorsionFragmentLibrary &library) const |
Private Attributes | |
utility::vector1< char > | sequence_ |
utility::vector1< char > | secstruct_ |
utility::vector1< char > | bigbin_ |
utility::vector1< Real > | phi_ |
utility::vector1< Real > | psi_ |
utility::vector1< Real > | omega_ |
utility::vector1< Size > | chain_ |
|
inline |
|
inline |
constructor from input vall database file
References bigbin_, omega_, phi_, psi_, read_file(), secstruct_, and sequence_.
|
inline |
read in one more line from Vall input file
References bigbin_, chain_, omega_, phi_, psi_, runtime_assert, secstruct_, sequence_, and protocols::frags::torsion2big_bin().
Referenced by read_file().
|
inline |
References bigbin_.
|
inline |
References chain_.
Referenced by protocols::frags::dump_vall_fasta().
void protocols::frags::VallData::get_cheating_frags | ( | Size const | nfrags, |
std::string const & | target_seq, | ||
std::string const & | target_ss, | ||
utility::vector1< Real > const & | target_phi, | ||
utility::vector1< Real > const & | target_psi, | ||
utility::vector1< Real > const & | target_omega, | ||
Real const | seq_weight, | ||
Real const | ss_weight, | ||
Real const | torsion_weight, | ||
Real const | min_torsion_dev, | ||
Real const | max_torsion_dev, | ||
utility::vector1< Size > const & | homs_to_exclude, | ||
SingleResidueTorsionFragmentLibrary & | library | ||
) | const |
References chain_, protocols::frags::heap_extract(), protocols::frags::heap_init(), protocols::frags::heap_insert(), protocols::frags::SingleResidueTorsionFragmentLibrary::insert_fragment(), nn, omega(), omega_, phi(), phi_, psi(), psi_, runtime_assert, score, secstruct_, seq, sequence_, size(), ss, protocols::frags::torsion_dev_score(), protocols::frags::TR, and numeric::random::uniform().
Referenced by protocols::frags::get_cheating_frags().
void protocols::frags::VallData::get_frags | ( | Size const | nfrags, |
std::string const & | target_seq, | ||
std::string const & | target_ss, | ||
Real const | seq_weight, | ||
Real const | ss_weight, | ||
bool const | exclude_gly, | ||
bool const | exclude_pro, | ||
bool const | exclude_cis_peptides, | ||
utility::vector1< Size > const & | homs_to_exclude, | ||
SingleResidueTorsionFragmentLibrary & | library, | ||
Real const | bb_weight = 0.0 , |
||
std::string const & | target_bb = std::string() |
||
) | const |
pick fragments in a single window
scan through vall database, for each position within each window, if sequence does not match target sequence, penalize by seq_weight; if secstruct does not match target secstruct, penalize by ss_weight. In the end, picking top "nfrags" fragments with lowest penalty score (this internally uses a "heap" implementation).SEE ALSO THE DUPLICATE COPY BELOW WHICH INCLUDES FILTERING BY TARGET TORSION ANGLES IE, IF YOU FIX A BUG HERE FIX IT DOWN THERE AS WELL (THANKS)
References bigbin_, chain_, protocols::frags::heap_extract(), protocols::frags::heap_init(), protocols::frags::heap_insert(), protocols::frags::SingleResidueTorsionFragmentLibrary::insert_fragment(), nn, omega(), omega_, phi(), phi_, psi(), psi_, runtime_assert, score, secstruct_, seq, sequence_, size(), ss, protocols::frags::TR, and numeric::random::uniform().
Referenced by protocols::frags::get_frags().
void protocols::frags::VallData::get_frags | ( | Size const | nfrags, |
std::string const & | target_seq, | ||
utility::vector1< std::map< char, core::Real > > const & | target_ss, | ||
Real const | seq_weight, | ||
Real const | ss_weight, | ||
bool const | exclude_gly, | ||
bool const | exclude_pro, | ||
bool const | exclude_cis_peptides, | ||
utility::vector1< Size > const & | homs_to_exclude, | ||
SingleResidueTorsionFragmentLibrary & | library, | ||
Real const | bb_weight = 0.0 , |
||
std::string const & | target_bb = std::string() |
||
) | const |
References bigbin_, chain_, protocols::comparative_modeling::features::E, end, H, protocols::frags::heap_extract(), protocols::frags::heap_init(), protocols::frags::heap_insert(), protocols::frags::SingleResidueTorsionFragmentLibrary::insert_fragment(), nn, omega(), omega_, phi_, psi_, runtime_assert, score, secstruct_, seq, sequence_, size(), ss, protocols::frags::TR, and numeric::random::uniform().
|
inline |
References omega_.
Referenced by get_cheating_frags(), get_frags(), and read_file().
|
inline |
References phi_.
Referenced by get_cheating_frags(), get_frags(), and read_file().
|
inline |
References psi_.
Referenced by get_cheating_frags(), get_frags(), and read_file().
void protocols::frags::VallData::read_file | ( | std::string const & | filename | ) |
read from vall database file "filename"
support both old format and new format, i.e., with "trimmed" in filename
References add_line(), utility::io::izstream::close(), utility::io::izstream::eof(), utility::io::izstream::getline(), omega(), phi(), psi(), seq, shrink(), ss, and utility_exit_with_message.
Referenced by VallData().
|
inline |
References secstruct_.
|
inline |
References sequence_.
Referenced by protocols::frags::dump_vall_fasta().
|
inline |
removes excess storage capacity to minimize memory usage
References bigbin_, omega_, phi_, psi_, secstruct_, and sequence_.
Referenced by read_file().
|
inline |
number of lines in Vall database
References sequence_.
Referenced by get_cheating_frags(), and get_frags().
|
private |
Referenced by add_line(), bigbin(), get_frags(), shrink(), and VallData().
|
private |
Referenced by add_line(), chain(), get_cheating_frags(), get_frags(), and num_chains().
|
private |
Referenced by add_line(), get_cheating_frags(), get_frags(), omega(), shrink(), and VallData().
|
private |
Referenced by add_line(), get_cheating_frags(), get_frags(), phi(), shrink(), and VallData().
|
private |
Referenced by add_line(), get_cheating_frags(), get_frags(), psi(), shrink(), and VallData().
|
private |
Referenced by add_line(), get_cheating_frags(), get_frags(), secstruct(), shrink(), and VallData().
|
private |
Referenced by add_line(), get_cheating_frags(), get_frags(), sequence(), shrink(), size(), and VallData().