Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SingleMotif.cc
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/motifs/Motif.cc
11 /// @brief Implementation of interaction motifs
12 
13 // AUTO-REMOVED #include <core/pose/Pose.hh>
14 // AUTO-REMOVED #include <core/pose/PDBInfo.hh>
17 // AUTO-REMOVED #include <core/graph/Graph.hh>
18 
20 
21 #include <core/kinematics/Jump.hh>
22 
23 #include <basic/Tracer.hh>
24 
25 // AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
26 // AUTO-REMOVED #include <core/scoring/ScoreType.hh>
27 
28 // AUTO-REMOVED #include <core/pack/packer_neighbors.hh>
29 // AUTO-REMOVED #include <core/pack/task/PackerTask.hh>
30 // AUTO-REMOVED #include <core/pack/task/TaskFactory.hh>
31 
32 // AUTO-REMOVED #include <core/pack/rotamer_set/RotamerSet.hh>
33 // AUTO-REMOVED #include <core/pack/rotamer_set/RotamerSetFactory.hh>
34 
36 
37 // AUTO-REMOVED #include <utility/string_util.hh>
38 // AUTO-REMOVED #include <utility/tools/make_vector1.hh>
39 // AUTO-REMOVED #include <utility/tools/make_map.hh>
40 #include <sstream>
41 
42 #include <utility/vector1.hh>
43 
44 
45 namespace protocols {
46 namespace motifs {
47 
48 static basic::Tracer mt( "protocols.motifs.Motif", basic::t_info );
49 
51  std::string const resname1,
52  std::string const res1_atom1,
53  std::string const res1_atom2,
54  std::string const res1_atom3,
55  std::string const resname2,
56  std::string const res2_atom1,
57  std::string const res2_atom2,
58  std::string const res2_atom3,
59  core::kinematics::Jump const & orientation
60 ) : Motif(
61  resname1,
62  res1_atom1,
63  res1_atom2,
64  res1_atom3,
65  resname2,
66  res2_atom1,
67  res2_atom2,
68  res2_atom3,
69  orientation
70  )
71 {}
72 
74  core::pose::Pose const & pose,
75  Size const residue_position_1,
76  char const chain1,
77  std::string const res1_atom1_name,
78  std::string const res1_atom2_name,
79  std::string const res1_atom3_name,
80  Size const residue_position_2,
81  char const chain2,
82  std::string const res2_atom1_name,
83  std::string const res2_atom2_name,
84  std::string const res2_atom3_name
85 ) : Motif(
86  pose,
87  residue_position_1,
88  chain1,
89  res1_atom1_name,
90  res1_atom2_name,
91  res1_atom3_name,
92  residue_position_2,
93  chain2,
94  res2_atom1_name,
95  res2_atom2_name,
96  res2_atom3_name
97  )
98 {}
99 
101  core::pose::Pose const & pose,
102  Size const residue_position_1,
103  std::string const res1_atom1_name,
104  std::string const res1_atom2_name,
105  std::string const res1_atom3_name,
106  Size const residue_position_2,
107  std::string const res2_atom1_name,
108  std::string const res2_atom2_name,
109  std::string const res2_atom3_name
110 ) : Motif(
111  pose,
112  residue_position_1,
113  res1_atom1_name,
114  res1_atom2_name,
115  res1_atom3_name,
116  residue_position_2,
117  res2_atom1_name,
118  res2_atom2_name,
119  res2_atom3_name
120  )
121 {}
122 
124  core::conformation::Residue const & res1,
125  core::conformation::Residue const & res2
126 ) : Motif(
127  res1,
128  res2
129  )
130 {}
131 
133  SingleMotif const & src
134 ) : Motif(
135  src
136  )
137 {}
138 
139 // SingleMotif constructor for ligands
141  std::string const resname1,
142  std::string const res1_atom1,
143  std::string const res1_atom2,
144  std::string const res1_atom3,
145  std::string const res2_atom1,
146  std::string const res2_atom2,
147  std::string const res2_atom3,
148  core::kinematics::Jump const & orientation
149 ) : Motif(
150  resname1,
151  res1_atom1,
152  res1_atom2,
153  res1_atom3,
154  res2_atom1,
155  res2_atom2,
156  res2_atom3,
157  orientation
158  )
159 {}
160 
161 std::ostream & operator <<(
162  std::ostream & os,
163  const SingleMotif & motif
164 )
165 {
166  os << motif.print();
167  return os;
168 }
169 
170 }
171 }