![]() |
Rosetta
2021.16
|
#include <NeighborsByDistanceCalculator.hh>

Public Types | |
| typedef core::pose::metrics::StructureDependentCalculator | parent |
Public Member Functions | |
| NeighborsByDistanceCalculator (core::Size central_residue, core::Real dist_cutoff=basic::options::option[basic::options::OptionKeys::pose_metrics::neighbor_by_distance_cutoff]) | |
| central_residue is the residue whose neighbors we find More... | |
| core::pose::metrics::PoseMetricCalculatorOP | clone () const override |
| core::Size | central_residue () const |
| return central residue More... | |
| core::Real | dist_cutoff () const |
| return distance cutoff More... | |
Public Member Functions inherited from core::pose::metrics::StructureDependentCalculator | |
| StructureDependentCalculator () | |
| void | notify_structure_change () override |
| void | get (std::string const &key, basic::MetricValueBase &val, Pose const &this_pose) override |
| std::string | get (std::string const &key, Pose const &this_pose) override |
Public Member Functions inherited from core::pose::metrics::PoseMetricCalculator | |
| PoseMetricCalculator () | |
| virtual void | notify_energy_change () |
Protected Member Functions | |
| void | lookup (std::string const &key, basic::MetricValueBase *valptr) const override |
| std::string | print (std::string const &key) const override |
| void | recompute (core::pose::Pose const &pose) override |
Private Attributes | |
| core::Size const | central_residue_ |
| stores the input - whose neighbors are we finding? More... | |
| core::Real const | dist_cutoff_ |
| stores the input - how far away is a neighbor? More... | |
| core::Size | num_neighbors_ |
| the number of neighbors, INCLUSIVE of this residue More... | |
| std::set< core::Size > | neighbors_ |
| the set of neighbors, INCLUSIVE of this residue More... | |
this calculator determines the number and resids of residues within X angstroms of the given residue. Its intended purpose is the backend for a TaskOperation that allows one to construct a PackerTask based on neighborhoods around a set of particular residues. (It combines with a NeighborhoodByDistanceCalculator for that purpose). It can return the identity of its seeded central residue and distance (just get functions) and calculate the neighbors and count of neighbors around that residue within that distance. It uses the PointGraph class to do this; if you have a better/faster implementation please code it up and replace this one. Note that returned data is INCLUSIVE of the central residue - it is part of the count and part of the std::set.
| typedef core::pose::metrics::StructureDependentCalculator protocols::pose_metric_calculators::NeighborsByDistanceCalculator::parent |
| protocols::pose_metric_calculators::NeighborsByDistanceCalculator::NeighborsByDistanceCalculator | ( | core::Size | central_residue, |
| core::Real | dist_cutoff = basic::options::option[basic::options::OptionKeys::pose_metrics::neighbor_by_distance_cutoff] |
||
| ) |
central_residue is the residue whose neighbors we find
|
inline |
return central residue
References central_residue_.
|
overridevirtual |
Implements core::pose::metrics::PoseMetricCalculator.
|
inline |
return distance cutoff
References dist_cutoff_.
|
overrideprotectedvirtual |
Implements core::pose::metrics::StructureDependentCalculator.
References central_residue_, dist_cutoff_, neighbors_, and num_neighbors_.
|
overrideprotectedvirtual |
Implements core::pose::metrics::StructureDependentCalculator.
References central_residue_, dist_cutoff_, neighbors_, num_neighbors_, and core::id::to_string().
|
overrideprotectedvirtual |
|
private |
stores the input - whose neighbors are we finding?
Referenced by central_residue(), lookup(), print(), and recompute().
|
private |
stores the input - how far away is a neighbor?
Referenced by dist_cutoff(), lookup(), print(), and recompute().
|
private |
the set of neighbors, INCLUSIVE of this residue
Referenced by lookup(), print(), and recompute().
|
private |
the number of neighbors, INCLUSIVE of this residue
Referenced by lookup(), print(), and recompute().
1.8.7