Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InterGroupNeighborsCalculator.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file /src/protocols/toolbox/PoseMetricCalculators/InterGroupNeighborsCalculator.hh
11 /// @brief This is complicated, so pay attention. This calculator is meant for finding interfaces between protein domains - like protein-protein interfaces but within a protein. It's more flexible than that, though. You define groups of residues within a protein (say, the N and C terminal domains). You then define which pairs of groups you are interested in. This calculator returns the union of the sets of residues at the interfaces between these domains/groups. This calculator contains a superset of the functionality of some of the other calculators, but is less efficient in simple cases. The pose does NOT have to have been scored.
12 /// @author Steven Lewis
13 
14 #ifndef INCLUDED_protocols_toolbox_pose_metric_calculators_InterGroupNeighborsCalculator_hh
15 #define INCLUDED_protocols_toolbox_pose_metric_calculators_InterGroupNeighborsCalculator_hh
16 
17 //Unit headers
20 
21 //
22 #include <core/pose/Pose.fwd.hh>
23 #include <basic/MetricValue.fwd.hh>
24 
25 //Utility headers
26 #include <basic/options/option.hh>
27 #include <core/types.hh>
28 //#include <utility/vector1.hh>
29 
30 //C++ headers
31 #include <set>
32 #include <utility> //pair
33 
34 // option key includes
35 #include <basic/options/keys/pose_metrics.OptionKeys.gen.hh>
36 
37 #include <utility/vector1.hh>
38 
39 
40 namespace protocols{
41 namespace toolbox {
42 namespace pose_metric_calculators {
43 
44 
45 /// @details This is complicated, so pay attention. You define groups of residues within a protein (say, the N and C terminal domains). You then define which pairs of groups you are interested in. This calculator returns the union of the sets of residues at the interfaces between these domains/groups. Functionally it is intended for "interface design" at the non-chainbreak interface between domains of multidomain proteins. It contains a superset of the functionality of some of the other calculators (so I'll be obsoleting them, maybe?). The pose does NOT have to have been scored.
46 /**
47  @li "groups" string returns the input groups; of type utility::vector1< std::pair< std::set< core::Size >, std::set< core::Size > > > (not a calculated value)
48  @li "dist_cutoff" returns the input cutoff distance for neighbor finding (not a calculated value)
49  @li "neighbors" returns a std::set<core::Size> of the neighbors calculated between the group pairs.
50  @li "num_neighbors" returns the size of the neighbors set.
51 **/
53 
54 public:
56  typedef std::set< core::Size > one_group;
57  typedef std::pair< one_group, one_group > group_pair;
59  //group_set = utility::vector1< std::pair< std::set<core::Size>, std::set<core::Size> > >
60 
61  ///@brief
63  group_set const & groups,
64  core::Real dist_cutoff = basic::options::option[basic::options::OptionKeys::pose_metrics::inter_group_neighbors_cutoff]
65  );
66 
68 
70 
72 
73  //accessors for non-recomputed input data
74  ///@brief return groups
75  group_set const & groups() const { return groups_; }
76 
77  ///@brief return distance cutoff
78  core::Real dist_cutoff() const { return dist_cutoff_; }
79 
80 protected:
81 
82  virtual void lookup( std::string const & key, basic::MetricValueBase * valptr ) const;
83  virtual std::string print( std::string const & key ) const;
84  virtual void recompute( core::pose::Pose const & pose );
85 
86 private:
87 
88  ///@brief stores the input - whose neighbors are we finding?
90  ///@brief stores the input - how far away is a neighbor?
92  ///@brief the number of neighbors in the set neighbors_
94  ///@brief the set of neighbors to return - union of interfaces between groups
95  std::set< core::Size > neighbors_;
96 
97 };
98 
99 } // namespace pose_metric_calculators
100 } // namespace toolbox
101 } // namespace protocols
102 
103 #endif //INCLUDED_protocols_toolbox_PoseMetricCalculators_InterGroupNeighborsCalculator_HH