Rosetta
|
–brief– More...
#include <FragmentScoreFilter.hh>
Public Member Functions | |
FragmentScoreFilter () | |
~FragmentScoreFilter () override | |
bool | apply (core::pose::Pose const &pose) const override |
returns true if the structure passes the filter, false otherwise More... | |
void | rescore_fragment_crmsd (core::pose::PoseOP const pose, utility::vector1< frag_picker::Candidate > candidates, frag_picker::scores::FragmentCrmsd *fc) const |
Function is required to get FragmentCrmsd scores from the RosettaScripts pose; if FragmentCrmsd is calculated using the ScoreMap, it tries to get a pose from the command line. Similar functions will likely need to be implemented for pose-dependent fragment scores. TO DO: Make this function take weight and priority based on weights file, then have it call a constructor with the RosettaScripts pose for ANY fragment scoretype. This will rescore everything with the new pose no matter what scoretype is used. More... | |
void | setup_fragment_picker (core::pose::PoseOP const pose, frag_picker::FragmentPickerOP picker) const |
Setup the FragmentPicker. Replicates much of the functionality from the FragmentPicker's parse_my_tag() function. More... | |
core::Real | compute (core::pose::Pose const pose) const |
Compute filter value. More... | |
core::Real | get_result (utility::vector1< core::Real >) const |
Given a list of scores, find the one the user is interested in. More... | |
core::Real | report_sm (core::pose::Pose const &pose) const override |
required for reporting score values More... | |
void | report (std::ostream &os, core::pose::Pose const &pose) const override |
allows printing data to a stream More... | |
std::string | name () const override |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data) override |
parse XML tag (to use this Filter in Rosetta Scripts) More... | |
protocols::filters::FilterOP | fresh_instance () const override |
required in the context of the parser/scripting scheme More... | |
protocols::filters::FilterOP | clone () const override |
required in the context of the parser/scripting scheme More... | |
![]() | |
Filter () | |
Filter (std::string const &) | |
~Filter () override | |
virtual std::string | get_type () const |
std::string | get_user_defined_name () const |
void | set_user_defined_name (std::string const &name) |
virtual void | clear () |
used to clear internal variables if needed. Using fresh_instance is preferred since it's a pure virtual More... | |
virtual core::Real | score (core::pose::Pose &pose) |
virtual void | provide_citation_info (basic::citation_manager::CitationCollectionList &) const |
Provide citations to the passed CitationCollectionList Subclasses should add the info for themselves and any other classes they use. More... | |
Static Public Member Functions | |
static std::string | class_name () |
static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
Private Attributes | |
core::Real | threshold_ |
Threshold number for passing or failing filter. More... | |
std::string | direction_ |
Choose whether numbers that are higher or numbers that are lower than the filter pass. More... | |
std::string | score_type_ = "FragmentCrmsd" |
Choose which score type to filter based on. More... | |
core::pose::ResidueIndexDescriptionCOP | start_res_ |
Start evaluating fragments at this residue. More... | |
core::pose::ResidueIndexDescriptionCOP | end_res_ |
Stop evaluating fragments after this residue. More... | |
core::Size | fragment_size_ = 9 |
Size of fragments to evaluate. More... | |
std::string | compute_ = "maximum" |
Should the final score be the minimum, maximum, or average of the positions queried? More... | |
std::string | sort_by_ = "FragmentCrmsd" |
How to choose the best fragment at each position (by default, it takes the lowest FragmentCrmsd at each position and returns the average FragmentCrmsd of all positions; however, suggested use is to set sort_by_ to 'average', which calculates the average of the score_type for each fragment. You may specify a different score type (including TotalScore) here and it will choose the fragment with the lowest of that score type at each position.) More... | |
std::string | outputs_folder_ |
Folder to place sequence profile files. More... | |
std::string | outputs_name_ = "pose" |
Basename of sequence profile files. More... | |
std::string | csblast_ |
Location of CSBLAST program. More... | |
std::string | blast_pgp_ |
Location of BLAST PGP program. More... | |
std::string | placeholder_seqs_ |
Location of sequence database for BLAST PGP. More... | |
std::string | sparks_x_ |
Location of SPARKS-X directory. More... | |
std::string | sparks_x_query_ |
Location of SPARKS-X query script. More... | |
std::string | psipred_ |
Path to run_psipred_single script. More... | |
std::string | vall_path_ |
Path to vall database. More... | |
std::string | frags_scoring_config_ |
Path to scoring config file. More... | |
core::Size | n_frags_ |
How many fragments per position? More... | |
core::Size | n_candidates_ |
How many candidates per position? More... | |
bool | print_out_info_to_pdb_ |
Prints scores for all residues to the pdb. More... | |
Additional Inherited Members | |
![]() | |
std::string | scorename_ |
–brief–
protocols::frag_picker::FragmentScoreFilter::FragmentScoreFilter | ( | ) |
|
overridedefault |
|
overridevirtual |
returns true if the structure passes the filter, false otherwise
Implements protocols::filters::Filter.
References compute(), direction_, threshold_, and protocols::frag_picker::TR().
|
static |
Referenced by protocols::frag_picker::FragmentScoreFilterCreator::keyname(), name(), and provide_xml_schema().
|
overridevirtual |
required in the context of the parser/scripting scheme
Implements protocols::filters::Filter.
core::Real protocols::frag_picker::FragmentScoreFilter::compute | ( | core::pose::Pose const | pose | ) | const |
Compute filter value.
References core::pose::Pose::chain(), core::pose::Pose::chain_sequence(), core::kinematics::distance(), end_res_, fragment_size_, protocols::jd2::JobDistributor::get_instance(), get_result(), protocols::frag_picker::scores::FragmentScoreMap::get_score_components(), protocols::filters::Filter::get_user_defined_name(), name(), core::conformation::Residue::name3(), core::conformation::membrane::out, print_out_info_to_pdb_, rescore_fragment_crmsd(), protocols::filters::Filter::score(), score_type_, setup_fragment_picker(), core::pose::Pose::size(), sort_by_, core::pose::Pose::split_by_chain(), start_res_, core::id::to_string(), and protocols::frag_picker::TR().
Referenced by apply(), report(), and report_sm().
|
overridevirtual |
required in the context of the parser/scripting scheme
Implements protocols::filters::Filter.
core::Real protocols::frag_picker::FragmentScoreFilter::get_result | ( | utility::vector1< core::Real > | scores | ) | const |
|
overridevirtual |
|
overridevirtual |
parse XML tag (to use this Filter in Rosetta Scripts)
Reimplemented from protocols::filters::Filter.
References blast_pgp_, compute_, csblast_, direction_, end_res_, fragment_size_, frags_scoring_config_, n_candidates_, n_frags_, outputs_folder_, outputs_name_, core::pose::parse_resnum(), placeholder_seqs_, print_out_info_to_pdb_, psipred_, score_type_, sort_by_, sparks_x_, sparks_x_query_, start_res_, threshold_, and vall_path_.
|
static |
|
overridevirtual |
allows printing data to a stream
Reimplemented from protocols::filters::Filter.
References compute().
|
overridevirtual |
required for reporting score values
Reimplemented from protocols::filters::Filter.
References compute().
void protocols::frag_picker::FragmentScoreFilter::rescore_fragment_crmsd | ( | core::pose::PoseOP const | pose, |
utility::vector1< frag_picker::Candidate > | candidates, | ||
frag_picker::scores::FragmentCrmsd * | fc | ||
) | const |
Function is required to get FragmentCrmsd scores from the RosettaScripts pose; if FragmentCrmsd is calculated using the ScoreMap, it tries to get a pose from the command line. Similar functions will likely need to be implemented for pose-dependent fragment scores. TO DO: Make this function take weight and priority based on weights file, then have it call a constructor with the RosettaScripts pose for ANY fragment scoretype. This will rescore everything with the new pose no matter what scoretype is used.
References protocols::frag_picker::scores::FragmentCrmsd::score(), protocols::frag_picker::scores::FragmentCrmsd::set_pose(), and protocols::frag_picker::TR().
Referenced by compute().
void protocols::frag_picker::FragmentScoreFilter::setup_fragment_picker | ( | core::pose::PoseOP const | pose, |
frag_picker::FragmentPickerOP | picker | ||
) | const |
Setup the FragmentPicker. Replicates much of the functionality from the FragmentPicker's parse_my_tag() function.
References blast_pgp_, protocols::frag_picker::convert_binary_checkpoint(), core::sequence::create_fasta_file(), csblast_, protocols::simple_filters::dssp(), fragment_size_, frags_scoring_config_, n_candidates_, n_frags_, outputs_folder_, outputs_name_, placeholder_seqs_, psipred_, core::sequence::read_fasta_file(), protocols::frag_picker::run_command(), sparks_x_, sparks_x_query_, protocols::frag_picker::TR(), and vall_path_.
Referenced by compute().
|
private |
Location of BLAST PGP program.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Should the final score be the minimum, maximum, or average of the positions queried?
Referenced by get_result(), and parse_my_tag().
|
private |
Location of CSBLAST program.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Choose whether numbers that are higher or numbers that are lower than the filter pass.
Referenced by apply(), and parse_my_tag().
|
private |
Stop evaluating fragments after this residue.
Referenced by compute(), and parse_my_tag().
|
private |
Size of fragments to evaluate.
Referenced by compute(), parse_my_tag(), and setup_fragment_picker().
|
private |
Path to scoring config file.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
How many candidates per position?
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
How many fragments per position?
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Folder to place sequence profile files.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Basename of sequence profile files.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Location of sequence database for BLAST PGP.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Prints scores for all residues to the pdb.
Referenced by compute(), and parse_my_tag().
|
private |
Path to run_psipred_single script.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Choose which score type to filter based on.
Referenced by compute(), and parse_my_tag().
|
private |
How to choose the best fragment at each position (by default, it takes the lowest FragmentCrmsd at each position and returns the average FragmentCrmsd of all positions; however, suggested use is to set sort_by_ to 'average', which calculates the average of the score_type for each fragment. You may specify a different score type (including TotalScore) here and it will choose the fragment with the lowest of that score type at each position.)
Referenced by compute(), and parse_my_tag().
|
private |
Location of SPARKS-X directory.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Location of SPARKS-X query script.
Referenced by parse_my_tag(), and setup_fragment_picker().
|
private |
Start evaluating fragments at this residue.
Referenced by compute(), and parse_my_tag().
|
private |
Threshold number for passing or failing filter.
Referenced by apply(), and parse_my_tag().
|
private |
Path to vall database.
Referenced by parse_my_tag(), and setup_fragment_picker().