Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GraftOneCDRLoop.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/antibody2/GraftOneCDRLoop.hh
11 /// @brief grafts a cdr onto the template of an antibody framework
12 /// @detailed
13 /// @author Jianqing Xu (xubest@gmail.com)
14 
15 
16 #ifndef INCLUDED_protocols_antibody2_GraftOneCDRLoop_hh
17 #define INCLUDED_protocols_antibody2_GraftOneCDRLoop_hh
18 
20 
21 #include <protocols/moves/Mover.hh>
22 #include <core/pose/Pose.hh>
26 
27 namespace protocols {
28 namespace antibody2 {
29 
30 /// @brief Grafts only one CDR onto a framework
32 public:
33  // default constructor
35 
36  // constructor with arguments
37  GraftOneCDRLoop(AntibodyCDRNameEnum const & cdr_name,
38  AntibodyInfoOP antibody_info,
39  Ab_TemplateInfoOP ab_t_info);
40 
41 
43 
44  virtual void apply( core::pose::Pose & pose_in );
45 
46  virtual std::string get_name() const;
47 
48 
49  /// @brief enable benchmark mode
50  inline void enable_benchmark_mode( bool setting ) {
51  benchmark_ = setting;
52  }
53 
54  ///@brief users can pass their own scorefunction for packing after grafting
56  scorefxn_ = scorefxn;
57  }
58 
59  ///@brief R2 just graft R2 by copying some stem residues, and remove H3 to do
60  /// H3 loop modeling later. But the terminal has been changed by this
61  /// grafting. Therefore, in R3, an option for not copying h3 stem is
62  /// provided.
63  void h3_stem_off( bool setting ){
64  h3_stem_not_graft_ = setting;
65  }
66 
67  void set_flank_size(double setting){
68  flank_size_=setting;
69  }
70 
71  ///@brief copy ctor
72  GraftOneCDRLoop( GraftOneCDRLoop const & rhs );
73 
74  ///@brief assignment operator
75  GraftOneCDRLoop & operator=( GraftOneCDRLoop const & rhs );
76 
77 
78 private:
79  void set_default();
80  void init();
81  void finalize_setup();
83 
84 
85 private:
86 
87  // Limits of query loop
90 
94 
95  bool benchmark_;
97 
99 
100 
101 }; // class GraftOneCDRLoop
102 
103 
104 
105 
106 
107 } // antibody2
108 } // protocols
109 
110 
111 
112 
113 
114 
115 
116 
117 #endif