Rosetta
|
#include <SheetTopologyFilter.hh>
Public Types | |
typedef protocols::filters::Filter | Super |
typedef protocols::filters::Filter | Filter |
typedef std::string | String |
typedef protocols::filters::FilterOP | FilterOP |
typedef core::pose::Pose | Pose |
typedef protocols::fldsgn::topology::StrandPairingSet | StrandPairingSet |
typedef protocols::fldsgn::topology::StrandPairingSetOP | StrandPairingSetOP |
typedef protocols::fldsgn::topology::SS_Info2 | SS_Info2 |
typedef protocols::fldsgn::topology::SS_Info2_OP | SS_Info2_OP |
typedef utility::tag::TagCOP | TagCOP |
typedef basic::datacache::DataMap | DataMap |
typedef std::pair< core::Size, core::Size > | ResiduePairing |
typedef std::set< ResiduePairing > | ResiduePairingSet |
typedef utility::vector1< ResiduePairingSet > | ResiduePairingSets |
Public Member Functions | |
SheetTopologyFilter () | |
SheetTopologyFilter (StrandPairingSetOP const &sps) | |
SheetTopologyFilter (String const &sheet_topology) | |
SheetTopologyFilter (SheetTopologyFilter const &rval) | |
~SheetTopologyFilter () override | |
FilterOP | clone () const override |
FilterOP | fresh_instance () const override |
void | filtered_sheet_topology (StrandPairingSetOP const &sps) |
void | filtered_sheet_topology (String const &sheet_topology) |
void | set_secstruct (std::string const &ss) |
set user-specified pose secondary structure More... | |
void | set_use_dssp (bool const use_dssp) |
if true, and secstruct is unset, dssp is used on the input. Otherwise, the pose.secstruct() is used More... | |
void | set_ignore_register_shift (bool const ignore_register_shift) |
Set to true to ignore register shifts. More... | |
std::string | get_filtered_sheet_topology () const |
get filtered sheet_topology by StrandPairingSetOP More... | |
std::string | set_secstruct () const |
set user-specified pose secondary structure More... | |
bool | set_use_dssp () const |
if true, and secstruct is unset, dssp is used on the input. Otherwise, the pose.secstruct() is used More... | |
bool | set_ignore_register_shift () const |
Set to true to ignore register shifts. More... | |
void | parse_my_tag (TagCOP tag, basic::datacache::DataMap &) override |
parse xml More... | |
core::Real | compute (Pose const &pose) const |
returns the fraction of pairings that pass the filter More... | |
core::Real | report_sm (Pose const &pose) const override |
returns the fraction of pairings that pass More... | |
bool | apply (Pose const &pose) const override |
Returns true if the given pose passes the filter, false otherwise. More... | |
std::string | name () const override |
![]() | |
Filter () | |
Filter (std::string const &) | |
~Filter () override | |
virtual void | report (std::ostream &, core::pose::Pose const &) const |
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 Member Functions | |
std::string | get_filtered_sheet_topology (core::pose::Pose const &pose) const |
Returns the desired strand pairing topology string. More... | |
std::string | get_secstruct (core::pose::Pose const &pose) const |
Returns the pose secondary structure to be used in computation. More... | |
ResiduePairingSets | compute_residue_pairings (topology::StrandPairingSet &spairset, topology::SS_Info2 const &ss_info) const |
Given the filtered strand pairings, compute the number of residue pairings possible. More... | |
ResiduePairingSet | compute_paired_residues (topology::StrandPairing const &pairing, topology::SS_Info2 const &ss_info) const |
Computes number of pairings in the given StrandPairing. More... | |
core::Size | count_residue_pairings (ResiduePairingSets const &pair_sets) const |
Counts total number of residue pairings present in the ResiduePairingSets. More... | |
core::Size | count_good_pairings (ResiduePairingSet const &filtered_pair_set, ResiduePairingSet const &pose_pair_set) const |
Counts number of residue pairs in the filtered_pair_set are present in the pose_pair_set. More... | |
void | replace_register_shifts (topology::StrandPairingSet &spairset, topology::StrandPairingSet &filtered_spairset) const |
Replace register shift of pairings in pose_spairset with 99 if register shift in filtered_spairset is 99. More... | |
Private Attributes | |
String | filtered_sheet_topology_ |
String | secstruct_input_ |
bool | ignore_register_shift_ |
bool | use_dssp_ |
Additional Inherited Members | |
![]() | |
std::string | scorename_ |
typedef std::pair< core::Size, core::Size > protocols::fldsgn::filters::SheetTopologyFilter::ResiduePairing |
typedef std::set< ResiduePairing > protocols::fldsgn::filters::SheetTopologyFilter::ResiduePairingSet |
typedef utility::vector1< ResiduePairingSet > protocols::fldsgn::filters::SheetTopologyFilter::ResiduePairingSets |
typedef protocols::fldsgn::topology::SS_Info2 protocols::fldsgn::filters::SheetTopologyFilter::SS_Info2 |
typedef protocols::fldsgn::topology::SS_Info2_OP protocols::fldsgn::filters::SheetTopologyFilter::SS_Info2_OP |
typedef protocols::fldsgn::topology::StrandPairingSet protocols::fldsgn::filters::SheetTopologyFilter::StrandPairingSet |
typedef protocols::fldsgn::topology::StrandPairingSetOP protocols::fldsgn::filters::SheetTopologyFilter::StrandPairingSetOP |
typedef std::string protocols::fldsgn::filters::SheetTopologyFilter::String |
typedef utility::tag::TagCOP protocols::fldsgn::filters::SheetTopologyFilter::TagCOP |
protocols::fldsgn::filters::SheetTopologyFilter::SheetTopologyFilter | ( | ) |
protocols::fldsgn::filters::SheetTopologyFilter::SheetTopologyFilter | ( | StrandPairingSetOP const & | sps | ) |
References filtered_sheet_topology_.
protocols::fldsgn::filters::SheetTopologyFilter::SheetTopologyFilter | ( | String const & | sheet_topology | ) |
|
default |
|
inlineoverride |
|
overridevirtual |
Returns true if the given pose passes the filter, false otherwise.
Implements protocols::filters::Filter.
References compute(), filtered_sheet_topology_, and tr().
|
static |
Referenced by protocols::fldsgn::filters::SheetTopologyFilterCreator::keyname(), name(), and provide_xml_schema().
|
inlineoverridevirtual |
Implements protocols::filters::Filter.
core::Real protocols::fldsgn::filters::SheetTopologyFilter::compute | ( | Pose const & | pose | ) | const |
returns the fraction of pairings that pass the filter
[in] | pose | Pose to be checked |
Pose secondary structure is determined by the user inputs, and must match the pose length.
If the filtered sheet topology doesn't contain and strand pairings, the value returned is 1.0 (i.e. all pairings OK)
If the pose doesn't contain strands, the value returned is 0.0 (i.e. all pairings bad)
If the pose is missing a strand, the value returned is 0.0 (i.e. all pairings bad)
Otherwise, NP_actual/NP_filtered is returned, where NP_actual is the number of good residue pairings in the structure, and NP_filtered is total possible residue pairings in the sheet
References protocols::fldsgn::topology::StrandPairingSet::begin(), protocols::fldsgn::topology::calc_strand_pairing_set(), protocols::fldsgn::filters::compute_max_strand(), compute_residue_pairings(), count_good_pairings(), count_residue_pairings(), protocols::fldsgn::topology::StrandPairingSet::end(), protocols::fldsgn::filters::find_pairing_idx(), core::sequence::get_abego(), get_filtered_sheet_topology(), get_secstruct(), ignore_register_shift_, protocols::fldsgn::topology::StrandPairingSet::name(), protocols::fldsgn::topology::NO_STRANDS, protocols::fldsgn::topology::StrandPairing::orient(), protocols::fldsgn::filters::remove_register_shifts(), replace_register_shifts(), core::pose::Pose::size(), protocols::fldsgn::topology::StrandPairingSet::strand_pairing(), core::pose::Pose::total_residue(), and tr().
Referenced by apply(), and report_sm().
|
private |
Computes number of pairings in the given StrandPairing.
[in] | pairing | StrandPairing which contains residue pairing information |
[in] | ss_info | SS_Info2 object describing the secondary structure of the pose |
References protocols::fldsgn::topology::StrandPairing::begin1(), protocols::fldsgn::topology::StrandPairing::end1(), protocols::fldsgn::topology::StrandPairing::has_paired_residue(), protocols::fldsgn::topology::StrandPairing::residue_pair(), protocols::fldsgn::topology::StrandPairing::rgstr_shift(), protocols::fldsgn::topology::StrandPairing::s1(), protocols::fldsgn::topology::StrandPairing::s2(), protocols::fldsgn::topology::SS_Info2::strand(), and tr().
Referenced by compute_residue_pairings().
|
private |
Given the filtered strand pairings, compute the number of residue pairings possible.
[in] | spairset | The strand pairing set to be used to find residue pairings. It is non-const because the pairings are stored as OPs, so begin() and end() are non-const |
[in] | ss_info | SS_Info2 object describing the secondary structure of the pose |
References protocols::fldsgn::topology::StrandPairingSet::begin(), compute_paired_residues(), protocols::fldsgn::topology::StrandPairingSet::end(), core::scoring::pair, and tr().
Referenced by compute().
|
private |
|
private |
Counts total number of residue pairings present in the ResiduePairingSets.
Referenced by compute().
void protocols::fldsgn::filters::SheetTopologyFilter::filtered_sheet_topology | ( | StrandPairingSetOP const & | sps | ) |
References filtered_sheet_topology_.
void protocols::fldsgn::filters::SheetTopologyFilter::filtered_sheet_topology | ( | String const & | sheet_topology | ) |
References filtered_sheet_topology_.
|
inlineoverridevirtual |
Implements protocols::filters::Filter.
std::string protocols::fldsgn::filters::SheetTopologyFilter::get_filtered_sheet_topology | ( | ) | const |
get filtered sheet_topology by StrandPairingSetOP
References filtered_sheet_topology_.
Referenced by compute().
|
private |
Returns the desired strand pairing topology string.
Rules for selecting this topology string:
References filtered_sheet_topology_, protocols::denovo_design::components::StructureDataFactory::get_from_const_pose(), protocols::denovo_design::components::SegmentPairing::get_strand_pairings(), and protocols::denovo_design::components::StructureDataFactory::has_cached_data().
|
private |
Returns the pose secondary structure to be used in computation.
Rules for selecting the secondary structure:
References protocols::simple_filters::dssp(), core::pose::Pose::secstruct(), secstruct_input_, tr(), and use_dssp_.
Referenced by compute().
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References class_name().
|
overridevirtual |
parse xml
Reimplemented from protocols::filters::Filter.
References filtered_sheet_topology_, ignore_register_shift_, protocols::fldsgn::topology::StrandPairingSet::name(), protocols::parser::BluePrint::secstruct(), set_secstruct(), set_use_dssp(), protocols::parser::BluePrint::strand_pairings(), tr(), and use_dssp_.
|
static |
|
private |
Replace register shift of pairings in pose_spairset with 99 if register shift in filtered_spairset is 99.
References protocols::fldsgn::filters::find_pairing(), core::scoring::pair, and protocols::fldsgn::topology::StrandPairingSet::push_back().
Referenced by compute().
|
overridevirtual |
returns the fraction of pairings that pass
Reimplemented from protocols::filters::Filter.
References compute().
bool protocols::fldsgn::filters::SheetTopologyFilter::set_ignore_register_shift | ( | ) | const |
Set to true to ignore register shifts.
References ignore_register_shift_.
void protocols::fldsgn::filters::SheetTopologyFilter::set_ignore_register_shift | ( | bool const | ignore_register_shift | ) |
Set to true to ignore register shifts.
References ignore_register_shift_.
std::string protocols::fldsgn::filters::SheetTopologyFilter::set_secstruct | ( | ) | const |
set user-specified pose secondary structure
References secstruct_input_.
Referenced by parse_my_tag().
void protocols::fldsgn::filters::SheetTopologyFilter::set_secstruct | ( | std::string const & | ss | ) |
set user-specified pose secondary structure
References secstruct_input_.
bool protocols::fldsgn::filters::SheetTopologyFilter::set_use_dssp | ( | ) | const |
if true, and secstruct is unset, dssp is used on the input. Otherwise, the pose.secstruct() is used
References use_dssp_.
Referenced by parse_my_tag().
void protocols::fldsgn::filters::SheetTopologyFilter::set_use_dssp | ( | bool const | use_dssp | ) |
if true, and secstruct is unset, dssp is used on the input. Otherwise, the pose.secstruct() is used
References use_dssp_.
|
private |
Referenced by apply(), filtered_sheet_topology(), get_filtered_sheet_topology(), parse_my_tag(), and SheetTopologyFilter().
|
private |
Referenced by compute(), parse_my_tag(), and set_ignore_register_shift().
|
private |
Referenced by get_secstruct(), and set_secstruct().
|
private |
Referenced by get_secstruct(), parse_my_tag(), and set_use_dssp().