Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LayerOperations.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 protocols/toolbox/LayerOperations.hh
11 /// @brief select residues depending on layer: core, boundary, and surface
12 /// and the layer are defined by accessible surface area of each residue, like nobu's just more general
13 /// @author Eva
14 
15 #ifndef INCLUDED_protocols_toolbox_LayerOperations_hh
16 #define INCLUDED_protocols_toolbox_LayerOperations_hh
17 
18 #include <core/types.hh>
19 #include <core/pose/Pose.fwd.hh>
20 #include <core/chemical/AA.hh>
21 #include <core/id/AtomID_Map.hh>
23 
24 #include <core/scoring/sasa.hh>
25 //#include <protocols/toolbox/LayerOperations.fwd.hh>
26 #include <map>
27 #include <utility/vector1.hh>
28 
29 //package headers
32 #include <core/types.hh>
33 
34 
35 // Utility Headers
36 #include <utility/tag/Tag.fwd.hh>
37 #include <utility/vector1.hh>
38 
39 namespace protocols {
40 namespace toolbox {
41 namespace task_operations{
42 
44 public:
45  typedef core::Size Size;
46  //typedef core::Real Real;
48  //typedef core::chemical::AA AA;
50  typedef core::Real Real;
51  //typedef core::pose::Pose Pose;
57 
58 public: // constructor/destructor
59 
60  /// @brief default constructor
62 
63  /// @brief value constructor
64  LayerOperations( bool const pick_core, bool const pick_boundary, bool const pick_surface );
65 
66  /// @brief value constructor
67  /// @detail selected layer can be given by string, for example, core_surface or core_boundary_surface
68  LayerOperations( String const pick );
69 
70  /// @brief destructor
72 
73  /// @brief make clone
74  virtual TaskOperationOP clone() const;
75 
76 public:
77 
79 
80 public: // mutator
81 
82  /// @brief
83  void
84  set_design_layer( bool const pick_core, bool const pick_boundary, bool const pick_surface )
85  {
86  pick_core_ = pick_core;
87  pick_boundary_ = pick_boundary;
88  pick_surface_ = pick_surface;
89  }
90 
91  /// @brief set pore radius for colculating asa
92  void pore_radius( Real const ps ){
93  pore_radius_ = ps;
94  }
95 
96  /// @brief accessible surface for evaluating residues are in surface or not
97  void sasa_surface( Real const r, String const ss="" );
98 
99  /// @brief accessible surface for evaluating residues are in core or not
100  void sasa_core( Real const r, String const ss="" );
101 
102  /// @brief accessible surface for evaluating residues are in core or not
103  void make_rasmol_format_file( bool const b ){
105  }
106 
107  /// @brief
108  //void exclude_aatypes_for_selection( utility::vector1< AA > const & aas );
109 
110  /// @brief
111  //void restrict_aatypes_for_selection( utility::vector1< AA > const & aas );
112 
113 public: // accessor
114 
115  /// @brief accessbile surface are of each residue
116  Real rsd_sasa( Size const i ) const;
117 
118  /// @brief return defined layer for each residue
119  String layer( Size const i ) const;
120 
121  /// @brief selected residues on boundary
123 
124  /// @brief selected residues in core
126 
127  /// @brief selected residues on surface
129 
130 
131 public: // main operation
132 
133 
134  /// @brief apply
136  compute( Pose const & pose );
137 
138 private: // helper functions
139 
140  /// @brief
142 
143  /// @brief
145  calc_rsd_sasa( Pose const & pose ) const;
146 
147 protected:
148 
149  /// @brief design/repack core ?
151 
152  /// @brief design/repack boundary ?
154 
155  /// @brief design surface ?
157 
158  /// @brief pore radius for calculating asa( accessible surface area )
160 
161  /// @brief asa pore radius for calculating asa
162  std::map< char, Real > burial_;
163 
164  /// @brief pore radius for calculating asa
165  std::map< char, Real > surface_;
166 
167  /// @brief amino acid types excluded for selection
168  //utility::vector1< AA > excluded_aatypes_for_selection_;
169 
170  /// @brief amino acid types restricted for selection
171  //utility::vector1< AA > restricted_aatypes_for_selection_;
172 
173  /// @brief selected residues in core
175 
176  /// @brief selected residues at boundary
178 
179  /// @brief selected residues on surface
181 
182  /// @brief create rasmol format script for selected residues; red: surface, blue: core, green: boundary
184 
185  /// @brief asa for each residue
187 
188  /// @brief
190 
191  /// @brief design selection?
192  bool design_;
193 
194  /// @brief repack the rest of the protein?
196 
197  /// @brief which chain to pick
199 
200  /// @brief take chains apart, as defined by user specified jump number
202 
203 };
204 
205 }
206 }
207 } // protocols
208 
209 #endif