Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RestrictIdentitiesAtAlignedPositions.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/task_operations/RestrictIdentitiesAtAlignedPositionsOperation.hh
11 /// @brief TaskOperation class that restricts the identities at positions aligned with those of another pdb with the positions observed in that pdb
12 /// @author Sarel Fleishman
13 
14 #ifndef INCLUDED_protocols_toolbox_task_operations_RestrictIdentitiesAtAlignedPositions_hh
15 #define INCLUDED_protocols_toolbox_task_operations_RestrictIdentitiesAtAlignedPositions_hh
16 
17 // Unit Headers
20 
21 // Project Headers
22 #include <core/pose/Pose.fwd.hh>
24 #include <utility/tag/Tag.fwd.hh>
25 #include <core/pose/Pose.fwd.hh>
26 
27 // Utility Headers
28 #include <core/types.hh>
29 
30 // C++ Headers
31 #include <utility/vector1.hh>
32 
33 
34 namespace protocols {
35 namespace toolbox {
36 namespace task_operations {
37 
38 ///@details this class is a TaskOperation to prevent repacking of residues not near an interface.
40 {
41 public:
43 
45 
47 
48  virtual TaskOperationOP clone() const;
49 
50  virtual
51  void
53 
54  virtual void parse_tag( TagPtr );
55 
58  void source_pose( std::string const s );
59  void chain( core::Size const c ){ chain_ = c; }
60  core::Size chain() const{ return chain_; }
63  bool prevent_repacking() const{ return prevent_repacking_; }
64  void prevent_repacking( bool const b ){ prevent_repacking_ = b; }
65  void keep_aas( std::string const s ){ keep_aas_ = s; }
66  std::string keep_aas() const{ return keep_aas_; }
67  void restrict_identities( bool const b ){ restrict_identities_ = b; }
68  bool restrict_identities() const { return restrict_identities_; }
69 private:
71  utility::vector1< core::Size > res_ids_; // start and end will be parsed at apply time to determine the relevant residue numbers
72  core::Size chain_; //dflt 1; chain on which to search for aligned residues
73  bool design_only_target_residues_; //dflt false; if true, designs only the target residues to the identities seen in the source_pose and repacks a 6A shell around. If false, sets the target residues to design, and does not change the packer tasks for other residues
74  bool prevent_repacking_; //dflt 0; if the identity of the aligned and target residue is the same, should we prevent repacking?
75  std::string keep_aas_;//dflt "ACDEFGHIKLMNPQRSTVWY"
76  bool restrict_identities_; //dflt false; set to true, then keep_aas_ above takes effect
77 };
78 
79 } //namespace protocols
80 } //namespace toolbox
81 } //namespace task_operations
82 
83 #endif // INCLUDED_protocols_toolbox_TaskOperations_RestrictIdentitiesAtAlignedPositionsOperation_HH