Rosetta
|
transform the output from a regular filter into a sigmoid ranging from 0-1 according to: fx = 1/[1 + exp[ ( x - offset ) * steepness ] The function asymptotically reaches 1 at negative values and 0 at positive values. It's 0.5 at the offset and steepness determines its slope at the offset More...
#include <SigmoidFilter.hh>
Public Member Functions | |
Sigmoid () | |
~Sigmoid () override | |
filters::FilterOP | clone () const override |
filters::FilterOP | fresh_instance () const override |
bool | apply (core::pose::Pose const &pose) const override |
Returns true if the given pose passes the filter, false otherwise. More... | |
void | report (std::ostream &out, core::pose::Pose const &pose) const override |
core::Real | report_sm (core::pose::Pose const &pose) const override |
used to report filter internals through a score or silent file More... | |
void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &) override |
Called by FilterFactory when constructing new Filter. Takes care of the specific mover's parsing. More... | |
core::Real | compute (core::pose::Pose const &pose) const |
core::Real | steepness () const |
void | steepness (core::Real const s) |
core::Real | offset () |
void | offset (core::Real const o) |
bool | negate () const |
void | negate (bool const b) |
protocols::filters::FilterOP | filter () const |
void | filter (protocols::filters::FilterOP f) |
void | reset_baseline (core::pose::Pose const &pose, bool const attempt_read_from_checkpoint) |
The first MC trajectory should not read the baseline from the checkpoint file, instead, it should set the baseline attempt_read_from_checkpoint determines whether a read attempt from checkpoint should be attempted. More... | |
core::Real | threshold () const |
allows within-trajectory resetting of the baseline. Notice this is nonconst, so can't be called from apply. attempt_read_from_checkpoint should be true for MC trials > 1, but false otherwise More... | |
void | threshold (core::Real const t) |
void | baseline_checkpointing_filename (std::string const &s) |
std::string | baseline_checkpointing_filename () const |
std::string | name () const override |
![]() | |
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) |
static void | attributes (utility::tag::AttributeList &attlist) |
Private Attributes | |
protocols::filters::FilterOP | filter_ |
core::Real | steepness_ |
dflt NULL More... | |
core::Real | offset_ |
core::Real | baseline_ |
dflt 0 More... | |
bool | negate_ |
dflt 0; this is tricky; used internally to keep track of where the pose started. It is only reset by reset_baseline, and cannot, due to constness, be changed by apply More... | |
core::Real | threshold_ |
dflt false More... | |
std::string | baseline_checkpointing_filename_ |
dflt 0 (always accept) More... | |
Additional Inherited Members | |
![]() | |
std::string | scorename_ |
transform the output from a regular filter into a sigmoid ranging from 0-1 according to: fx = 1/[1 + exp[ ( x - offset ) * steepness ] The function asymptotically reaches 1 at negative values and 0 at positive values. It's 0.5 at the offset and steepness determines its slope at the offset
protocols::calc_taskop_filters::Sigmoid::Sigmoid | ( | ) |
|
overridedefault |
|
overridevirtual |
Returns true if the given pose passes the filter, false otherwise.
Implements protocols::filters::Filter.
References compute(), threshold(), and protocols::hybridization::val.
|
static |
|
inline |
References baseline_checkpointing_filename_.
|
inline |
References baseline_checkpointing_filename_.
|
static |
Referenced by protocols::calc_taskop_filters::SigmoidFilterCreator::keyname(), name(), and provide_xml_schema().
|
inlineoverridevirtual |
Implements protocols::filters::Filter.
core::Real protocols::calc_taskop_filters::Sigmoid::compute | ( | core::pose::Pose const & | pose | ) | const |
References baseline_, filter(), negate(), offset_, report_sm(), steepness_, protocols::calc_taskop_filters::TR(), and protocols::hybridization::val.
Referenced by apply(), report(), and report_sm().
protocols::filters::FilterOP protocols::calc_taskop_filters::Sigmoid::filter | ( | ) | const |
References filter_.
Referenced by compute(), parse_my_tag(), and reset_baseline().
void protocols::calc_taskop_filters::Sigmoid::filter | ( | protocols::filters::FilterOP | f | ) |
References filter_.
|
inlineoverridevirtual |
Implements protocols::filters::Filter.
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References class_name().
|
inline |
References negate_.
Referenced by compute(), and parse_my_tag().
|
inline |
References protocols::match::upstream::b, and negate_.
|
inline |
References offset_.
Referenced by parse_my_tag().
|
inline |
References offset_.
|
overridevirtual |
Called by FilterFactory when constructing new Filter. Takes care of the specific mover's parsing.
Reimplemented from protocols::filters::Filter.
References baseline_checkpointing_filename_, filter(), negate(), offset(), protocols::rosetta_scripts::parse_filter(), steepness(), threshold(), and protocols::calc_taskop_filters::TR().
|
static |
|
overridevirtual |
Reimplemented from protocols::filters::Filter.
References compute(), and protocols::hybridization::val.
|
overridevirtual |
used to report filter internals through a score or silent file
Reimplemented from protocols::filters::Filter.
References compute().
Referenced by compute().
void protocols::calc_taskop_filters::Sigmoid::reset_baseline | ( | core::pose::Pose const & | pose, |
bool const | attempt_read_from_checkpoint | ||
) |
The first MC trajectory should not read the baseline from the checkpoint file, instead, it should set the baseline attempt_read_from_checkpoint determines whether a read attempt from checkpoint should be attempted.
References baseline_, baseline_checkpointing_filename_, core::sequence::end, filter(), core::conformation::membrane::in, core::conformation::membrane::out, and protocols::calc_taskop_filters::TR().
|
inline |
References steepness_.
Referenced by parse_my_tag().
|
inline |
References steepness_.
|
inline |
allows within-trajectory resetting of the baseline. Notice this is nonconst, so can't be called from apply. attempt_read_from_checkpoint should be true for MC trials > 1, but false otherwise
References threshold_.
Referenced by apply(), and parse_my_tag().
|
inline |
References protocols::hybridization::t, and threshold_.
|
private |
dflt 0
Referenced by compute(), and reset_baseline().
|
private |
dflt 0 (always accept)
Referenced by baseline_checkpointing_filename(), parse_my_tag(), and reset_baseline().
|
private |
Referenced by filter().
|
private |
dflt 0; this is tricky; used internally to keep track of where the pose started. It is only reset by reset_baseline, and cannot, due to constness, be changed by apply
Referenced by negate().
|
private |
|
private |
dflt NULL
Referenced by compute(), and steepness().
|
private |
dflt false
Referenced by threshold().