Rosetta
|
The core of the fragment picking machinery. More...
#include <FragmentPicker.hh>
Public Member Functions | |
FragmentPicker () | |
FragmentPicker (std::string fragment_score_manager_type) | |
~FragmentPicker () override | |
FragmentPickerCOP | get_self_ptr () const |
FragmentPickerOP | get_self_ptr () |
FragmentPickerCAP | get_self_weak_ptr () const |
FragmentPickerAP | get_self_weak_ptr () |
void | parse_command_line () |
void | set_max_threads (core::Size const setting) |
Set the number of threads to use. More... | |
void | keep_all_protocol () |
Picks fragments and saves them into proper files - independently for each query position. More... | |
void | bounded_protocol () |
Picks fragments and saves them into proper files - uses bounded queue. More... | |
void | quota_protocol () |
void | fragment_contacts (core::Size const fragment_size, utility::vector1< Candidates > const &fragment_set) |
scores::FragmentScoreManagerOP | get_score_manager (core::Size index=1) |
returns a pointer to a scoring manager More... | |
void | nonlocal_pairs_at_position (core::Size const position, core::Size const &fragment_size, utility::vector1< bool > const &skip, utility::vector1< Candidates > const &fragment_set, utility::vector1< nonlocal::NonlocalPairOP > &pairs) |
void | nonlocal_pairs (core::Size const fragment_size, utility::vector1< Candidates > const &fragment_set) |
void | read_vall (std::string const &fn) |
reads a vall file More... | |
void | read_vall (utility::vector1< std::string > const &fns) |
void | set_vall (VallProviderOP vall_chunks) |
sets vall data More... | |
VallProviderOP | get_vall () |
void | set_frag_sizes (utility::vector1< core::Size > size, bool clear) |
Lets you set frag sizes outside the command line. More... | |
utility::vector1< core::Size > | get_frag_sizes () const |
getter for frag_sizes_ More... | |
void | set_n_frags (core::Size n_frags) |
Sets n_frags_. More... | |
core::Size | get_n_frags () const |
Gets n_frags_. More... | |
void | set_n_candidates (core::Size n_candidates) |
Sets n_candidates_. More... | |
core::Size | get_n_candidates () const |
Gets n_candidates_. More... | |
void | set_selector (FragmentSelectingRuleOP selector) |
Sets selector_. More... | |
void | set_query_sa (utility::vector1< core::Real > &query_sa) |
Sets the query surface area. More... | |
void | set_query_phi (utility::vector1< core::Real > &query_phi) |
Sets the query phi angles. More... | |
void | set_query_psi (utility::vector1< core::Real > &query_psi) |
Sets the query psi angles. More... | |
void | set_query_phi_conf (utility::vector1< core::Real > &query_phi_conf) |
Sets the query phi angle confidence. More... | |
void | set_query_psi_conf (utility::vector1< core::Real > &query_psi_conf) |
Sets the query psi angle confidence. More... | |
void | set_query_seq (core::sequence::SequenceProfileOP query_sequence) |
sets the query sequence More... | |
void | set_query_seq (std::string &query_sequence) |
sets the query sequence More... | |
std::string & | get_query_seq_string () |
Returns the sequence we are picking fragments for (as a string) More... | |
core::sequence::SequenceProfileOP | get_query_seq () |
utility::vector1< core::Real > & | get_query_sa_prediction () |
Returns the solvent accessibility prediction. More... | |
utility::vector1< core::Real > & | get_query_phi_prediction () |
Returns the phi prediction. More... | |
utility::vector1< core::Real > & | get_query_psi_prediction () |
Returns the psi prediction. More... | |
utility::vector1< core::Real > & | get_query_phi_prediction_conf () |
Returns the phi prediction confidence. More... | |
utility::vector1< core::Real > & | get_query_psi_prediction_conf () |
Returns the psi prediction confidence. More... | |
utility::vector1< core::Real > & | get_query_residue_depth () |
Returns residue depth values. More... | |
void | set_query_profile (core::sequence::SequenceProfileOP profile) |
Sets the sequence object we are picking fragments for. More... | |
core::fragment::SecondaryStructureOP | get_query_ss (std::string prediction_name) |
Returns the query secondary structure as a SecondaryStructure object. More... | |
void | read_ss_files (utility::vector1< std::string > const &sec_str_input) |
Reads a bunch of ss predicitons from files and plugs them into the picker. More... | |
std::string & | get_query_ss_string (std::string prediction_name) |
Returns the query secondary structure as a string. More... | |
void | add_query_ss (std::string, std::string) |
Sets the query secondary structure. More... | |
core::Size | count_query_ss () |
Sets the query secondary structure. More... | |
void | read_ss_file (std::string const &, std::string const &) |
Identifies if the ss file is psipred or talos, calls appropriate reader. More... | |
void | read_spine_x (std::string const &file_name) |
Reads spine-x phi, psi, and solvent accessibility predictions. More... | |
void | read_depth (std::string const &file_name) |
Reads DEPTH residue depth values. More... | |
core::Size | size_of_query () |
void | set_picked_positions (core::Size, core::Size) |
Asks the picker to pick fragments from a given range in a query sequence. More... | |
void | set_picked_positions (utility::vector1< core::Size >) |
Asks the picker to pick fragments for given positions in a query sequence. More... | |
utility::vector1< core::Size > | get_picked_positions () const |
returns vector of picked positions More... | |
void | pick_chunk_candidates (VallChunkOP chunk, basic::thread_manager::RosettaThreadAssignmentInfo const &assignments) |
picks fragment candidates. More... | |
void | pick_candidates () |
void | get_final_fragments (core::Size qPos, core::Size frag_size, Candidates &out) |
void | get_final_fragments (core::Size qPos, Candidates &out) |
void | pick_candidates (core::Size i_pos, core::Size frag_len) |
core::Real | total_score (scores::FragmentScoreMapOP f, core::Size index=1) |
Calculates total score for a given vector of small scores (FragmentScoreMap object pointer) More... | |
void | save_candidates () |
void | save_fragments () |
core::Size | max_frag_len () |
How long is the longest fragment? More... | |
void | show_scoring_methods (std::ostream &out, core::Size index=1) |
void | add_scoring_method (scores::FragmentScoringMethodOP scoring_term, core::Real weight, core::Size index=1) |
adds a new scoring method to the scoring scheme More... | |
void | create_scores (std::string file_name) |
Creates scoring methods from score file, same as using frags::scoring::config command-line option. More... | |
utility::vector1< core::fragment::ConstantLengthFragSetOP > | getFragSet (int residueInPose_) |
void | read_psipred_ss2 (std::string const &, std::string) |
Reads query secondary structure prediction from a PsiPred file. More... | |
void | read_talos_ss (std::string const &, std::string) |
Reads query secondary structure prediction from a Talos+ file. More... | |
void | parse_quota_command_line () |
void | set_up_quota_nnmake_style () |
void | set_up_ss_abego_quota () |
bool | is_valid_chunk (VallChunkOP chunk) |
bool | is_valid_chunk (core::Size const frag_len, VallChunkOP chunk) |
void | output_fragments (core::Size const fragment_size, utility::vector1< Candidates > const &final_fragments) |
void | set_candidates_collector (core::Size frag_size, CandidatesCollectorOP sink, core::Size index=1) |
sets a collector where fragment candidates will be kept until final selection More... | |
CandidatesCollectorOP | get_candidates_collector (core::Size frag_size, core::Size index=1) |
returns a pointer to the candidates collector currently used More... | |
void | add_chunk_filter (VallChunkFilterOP filter) |
adds a chunk filter that will be used to screen chunks before they are cut into fragments More... | |
Public Attributes | |
utility::vector1< core::Size > | frag_sizes_ |
core::Size | n_candidates_ |
core::Size | n_frags_ |
std::string | prefix_ |
FragmentSelectingRuleOP | selector_ |
Static Public Attributes | |
static QuotaDebug | log_25_ |
static QuotaDebug | log_200_ |
Private Member Functions | |
void | output_pair_counts (core::Size const fragment_size, core::Size const neighbors, std::map< std::pair< core::Real, ContactType >, ContactCountsOP > contact_counts) |
The core of the fragment picking machinery.
FragmentPicker class does:
|
inline |
|
inline |
|
overridedefault |
|
inline |
adds a chunk filter that will be used to screen chunks before they are cut into fragments
References filters_.
void protocols::frag_picker::FragmentPicker::add_query_ss | ( | std::string | query_secondary, |
std::string | prediction_name | ||
) |
Sets the query secondary structure.
|
inline |
adds a new scoring method to the scoring scheme
References scores_.
void protocols::frag_picker::FragmentPicker::bounded_protocol | ( | ) |
Picks fragments and saves them into proper files - uses bounded queue.
This protocol scores all vall data against all query positions and keeps a limited number of candidates per position using a bounded queue. When all candidates for all positions are scored, it selects final fragments.
References protocols::frag_picker::tr().
|
inline |
Sets the query secondary structure.
References query_ss_profile_.
|
inline |
Creates scoring methods from score file, same as using frags::scoring::config command-line option.
References get_self_ptr(), and scores_.
void protocols::frag_picker::FragmentPicker::fragment_contacts | ( | core::Size const | fragment_size, |
utility::vector1< Candidates > const & | fragment_set | ||
) |
|
inline |
returns a pointer to the candidates collector currently used
one may need this instance to access the candidates that have been found by the picker
References candidates_sink_, and candidates_sinks_.
void protocols::frag_picker::FragmentPicker::get_final_fragments | ( | core::Size | qPos, |
Candidates & | out | ||
) |
References core::conformation::membrane::out.
void protocols::frag_picker::FragmentPicker::get_final_fragments | ( | core::Size | qPos, |
core::Size | frag_size, | ||
Candidates & | out | ||
) |
References core::conformation::membrane::in, and core::conformation::membrane::out.
utility::vector1< core::Size > protocols::frag_picker::FragmentPicker::get_frag_sizes | ( | ) | const |
getter for frag_sizes_
core::Size protocols::frag_picker::FragmentPicker::get_n_candidates | ( | ) | const |
Gets n_candidates_.
core::Size protocols::frag_picker::FragmentPicker::get_n_frags | ( | ) | const |
Gets n_frags_.
utility::vector1< core::Size > protocols::frag_picker::FragmentPicker::get_picked_positions | ( | ) | const |
returns vector of picked positions
|
inline |
Returns the phi prediction.
References query_phi_prediction_.
|
inline |
Returns the phi prediction confidence.
References query_phi_prediction_conf_.
|
inline |
Returns the psi prediction.
References query_psi_prediction_.
|
inline |
Returns the psi prediction confidence.
References query_psi_prediction_conf_.
|
inline |
Returns residue depth values.
References query_residue_depth_.
|
inline |
Returns the solvent accessibility prediction.
References query_sa_prediction_.
|
inline |
References query_profile_.
|
inline |
Returns the sequence we are picking fragments for (as a string)
References query_seq_as_string_.
|
inline |
Returns the query secondary structure as a SecondaryStructure object.
References query_ss_profile_.
|
inline |
Returns the query secondary structure as a string.
References query_ss_as_string_.
|
inline |
returns a pointer to a scoring manager
References scores_.
|
inline |
|
inline |
Referenced by create_scores().
|
inline |
|
inline |
|
inline |
References chunks_.
utility::vector1< ConstantLengthFragSetOP > protocols::frag_picker::FragmentPicker::getFragSet | ( | int | residueInPose_ | ) |
bool protocols::frag_picker::FragmentPicker::is_valid_chunk | ( | core::Size const | frag_len, |
VallChunkOP | chunk | ||
) |
bool protocols::frag_picker::FragmentPicker::is_valid_chunk | ( | VallChunkOP | chunk | ) |
References protocols::frag_picker::tr().
void protocols::frag_picker::FragmentPicker::keep_all_protocol | ( | ) |
Picks fragments and saves them into proper files - independently for each query position.
This protocol scores all vall data against a given position and keeps all the candidates unless they fail an energy filter When all candidates for a positions are scored, it selects fragments for the position and proceeds to the next position. Bounded queue is not used
References core::chemical::element::I, core::conformation::membrane::out, and protocols::frag_picker::tr().
|
inline |
How long is the longest fragment?
References frag_sizes_.
void protocols::frag_picker::FragmentPicker::nonlocal_pairs | ( | core::Size const | fragment_size, |
utility::vector1< Candidates > const & | fragment_set | ||
) |
References core::pose::add_score_line_string(), core::scoring::alignment, protocols::frag_picker::CEN, protocols::frag_picker::contact_name(), core::sequence::end, core::chemical::element::F, core::pose::is_ideal_pose(), core::fragment::make_pose_from_frags(), nonlocal_pairs_at_position(), core::import_pose::PDB_file, core::import_pose::pose_from_file(), core::sequence::read_aln(), core::scoring::ref, protocols::forge::methods::replace(), core::pose::Pose::residue(), core::pose::setPoseExtraScore(), core::pose::Pose::size(), protocols::frag_picker::tr(), core::io::silent::SilentFileData::write_silent_struct(), and core::conformation::Residue::xyz().
void protocols::frag_picker::FragmentPicker::nonlocal_pairs_at_position | ( | core::Size const | position, |
core::Size const & | fragment_size, | ||
utility::vector1< bool > const & | skip, | ||
utility::vector1< Candidates > const & | fragment_set, | ||
utility::vector1< nonlocal::NonlocalPairOP > & | pairs | ||
) |
References protocols::frag_picker::CEN, and core::scoring::pair.
Referenced by nonlocal_pairs().
void protocols::frag_picker::FragmentPicker::output_fragments | ( | core::Size const | fragment_size, |
utility::vector1< Candidates > const & | final_fragments | ||
) |
References core::chemical::element::I, and protocols::frag_picker::tr().
|
private |
void protocols::frag_picker::FragmentPicker::parse_command_line | ( | ) |
void protocols::frag_picker::FragmentPicker::parse_quota_command_line | ( | ) |
void protocols::frag_picker::FragmentPicker::pick_candidates | ( | ) |
References pick_chunk_candidates(), and protocols::frag_picker::tr().
void protocols::frag_picker::FragmentPicker::pick_candidates | ( | core::Size | i_pos, |
core::Size | frag_len | ||
) |
References protocols::frag_picker::tr().
void protocols::frag_picker::FragmentPicker::pick_chunk_candidates | ( | VallChunkOP | chunk, |
basic::thread_manager::RosettaThreadAssignmentInfo const & | assignments | ||
) |
picks fragment candidates.
These basically become fragments if pass the final selection. Fragment candidates are stored in a container that a user must plug into the picker multi-threaded task
Referenced by pick_candidates().
void protocols::frag_picker::FragmentPicker::quota_protocol | ( | ) |
void protocols::frag_picker::FragmentPicker::read_depth | ( | std::string const & | file_name | ) |
Reads DEPTH residue depth values.
void protocols::frag_picker::FragmentPicker::read_psipred_ss2 | ( | std::string const & | file_name, |
std::string | prediction_name | ||
) |
Reads query secondary structure prediction from a PsiPred file.
void protocols::frag_picker::FragmentPicker::read_spine_x | ( | std::string const & | file_name | ) |
Reads spine-x phi, psi, and solvent accessibility predictions.
References protocols::frag_picker::sa_faraggi_max().
void protocols::frag_picker::FragmentPicker::read_ss_file | ( | std::string const & | file_name, |
std::string const & | prediction_name | ||
) |
Identifies if the ss file is psipred or talos, calls appropriate reader.
References protocols::antibody::l1, protocols::antibody::l2, protocols::antibody::l3, and protocols::antibody::l4.
void protocols::frag_picker::FragmentPicker::read_ss_files | ( | utility::vector1< std::string > const & | sec_str_input | ) |
Reads a bunch of ss predicitons from files and plugs them into the picker.
References protocols::frag_picker::tr().
void protocols::frag_picker::FragmentPicker::read_talos_ss | ( | std::string const & | file_name, |
std::string | prediction_name | ||
) |
Reads query secondary structure prediction from a Talos+ file.
void protocols::frag_picker::FragmentPicker::read_vall | ( | std::string const & | fn | ) |
reads a vall file
void protocols::frag_picker::FragmentPicker::read_vall | ( | utility::vector1< std::string > const & | fns | ) |
void protocols::frag_picker::FragmentPicker::save_candidates | ( | ) |
void protocols::frag_picker::FragmentPicker::save_fragments | ( | ) |
|
inline |
sets a collector where fragment candidates will be kept until final selection
References candidates_sink_, and candidates_sinks_.
void protocols::frag_picker::FragmentPicker::set_frag_sizes | ( | utility::vector1< core::Size > | size, |
bool | clear | ||
) |
Lets you set frag sizes outside the command line.
void protocols::frag_picker::FragmentPicker::set_max_threads | ( | core::Size const | setting | ) |
Set the number of threads to use.
A value of zero means use all available threads.
References core::id::to_string(), and protocols::frag_picker::tr().
void protocols::frag_picker::FragmentPicker::set_n_candidates | ( | core::Size | n_candidates | ) |
Sets n_candidates_.
void protocols::frag_picker::FragmentPicker::set_n_frags | ( | core::Size | n_frags | ) |
Sets n_frags_.
void protocols::frag_picker::FragmentPicker::set_picked_positions | ( | core::Size | from, |
core::Size | to | ||
) |
Asks the picker to pick fragments from a given range in a query sequence.
Referenced by set_query_profile().
void protocols::frag_picker::FragmentPicker::set_picked_positions | ( | utility::vector1< core::Size > | q_positions | ) |
Asks the picker to pick fragments for given positions in a query sequence.
void protocols::frag_picker::FragmentPicker::set_query_phi | ( | utility::vector1< core::Real > & | query_phi | ) |
Sets the query phi angles.
Directly sets the query phi angles instead of reading it from a file
void protocols::frag_picker::FragmentPicker::set_query_phi_conf | ( | utility::vector1< core::Real > & | query_phi_conf | ) |
Sets the query phi angle confidence.
Directly sets the query phi angle confidence instead of reading it from a file
|
inline |
Sets the sequence object we are picking fragments for.
References query_profile_, query_seq_as_string_, and set_picked_positions().
void protocols::frag_picker::FragmentPicker::set_query_psi | ( | utility::vector1< core::Real > & | query_psi | ) |
Sets the query psi angles.
Directly sets the query psi angles isntead of reading it from a file
void protocols::frag_picker::FragmentPicker::set_query_psi_conf | ( | utility::vector1< core::Real > & | query_psi_conf | ) |
Sets the query psi angle confidence.
Directly sets the query psi angle confidence instead of reading it form a file
void protocols::frag_picker::FragmentPicker::set_query_sa | ( | utility::vector1< core::Real > & | query_sa | ) |
Sets the query surface area.
Directly sets the query surface area instead of reading it from a file
void protocols::frag_picker::FragmentPicker::set_query_seq | ( | core::sequence::SequenceProfileOP | query_sequence | ) |
sets the query sequence
Well, it is a sequence profile, but the sequence can be extracted from it
void protocols::frag_picker::FragmentPicker::set_query_seq | ( | std::string & | query_sequence | ) |
sets the query sequence
References protocols::frag_picker::tr().
|
inline |
Sets selector_.
References selector_.
void protocols::frag_picker::FragmentPicker::set_up_quota_nnmake_style | ( | ) |
void protocols::frag_picker::FragmentPicker::set_up_ss_abego_quota | ( | ) |
References protocols::frag_picker::quota::ABEGO_SS_Config::get_pool_bins(), protocols::frag_picker::quota::QuotaConfig::get_pool_name(), protocols::frag_picker::quota::ABEGO_SS_Config::n_columns(), protocols::frag_picker::quota::ABEGO_SS_Config::probability(), protocols::frag_picker::quota::ABEGO_SS_Config::size(), and protocols::frag_picker::tr().
|
inline |
sets vall data
References chunks_.
|
inline |
References core::conformation::membrane::out, and scores_.
|
inline |
References query_profile_, and query_seq_as_string_.
core::Real protocols::frag_picker::FragmentPicker::total_score | ( | scores::FragmentScoreMapOP | f, |
core::Size | index = 1 |
||
) |
Calculates total score for a given vector of small scores (FragmentScoreMap object pointer)
FragmentScoreManager that is stored inside the picker is used for this calculation. It particular it provides weights
References protocols::analysis::total.
|
private |
|
private |
Referenced by get_candidates_collector(), and set_candidates_collector().
|
private |
Referenced by FragmentPicker(), get_candidates_collector(), and set_candidates_collector().
|
private |
Referenced by get_vall(), and set_vall().
|
private |
|
private |
Referenced by FragmentPicker().
|
private |
|
private |
Referenced by FragmentPicker().
|
private |
Referenced by add_chunk_filter().
utility::vector1<core::Size> protocols::frag_picker::FragmentPicker::frag_sizes_ |
Referenced by max_frag_len().
|
static |
|
static |
|
private |
Referenced by FragmentPicker().
|
private |
Number of threads to use. Default value is zero, meaning use all available threads. Must be set to zero or one in single-threaded build.
Referenced by FragmentPicker().
core::Size protocols::frag_picker::FragmentPicker::n_candidates_ |
core::Size protocols::frag_picker::FragmentPicker::n_frags_ |
|
private |
Referenced by FragmentPicker().
std::string protocols::frag_picker::FragmentPicker::prefix_ |
Referenced by FragmentPicker().
|
private |
Referenced by get_query_phi_prediction().
|
private |
Referenced by get_query_phi_prediction_conf().
|
private |
|
private |
Referenced by get_query_seq(), set_query_profile(), and size_of_query().
|
private |
Referenced by get_query_psi_prediction().
|
private |
Referenced by get_query_psi_prediction_conf().
|
private |
Referenced by get_query_residue_depth().
|
private |
Referenced by get_query_sa_prediction().
|
private |
Referenced by get_query_seq_string(), set_query_profile(), and size_of_query().
|
private |
Referenced by get_query_ss_string().
|
private |
Referenced by count_query_ss(), and get_query_ss().
|
private |
Referenced by add_scoring_method(), create_scores(), FragmentPicker(), get_score_manager(), and show_scoring_methods().
FragmentSelectingRuleOP protocols::frag_picker::FragmentPicker::selector_ |
Referenced by set_selector().
|
private |