Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
import_pose.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 // :noTabs=false:tabSize=4:indentSize=4:
4 //
5 // (c) Copyright Rosetta Commons Member Institutions.
6 // (c) This file is part of the Rosetta software suite and is made available under license.
7 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10 
11 /// @file core/import_pose/import_pose.hh
12 ///
13 /// @brief various functions to construct Pose object(s) from PDB(s)
14 /// @author Sergey Lyskov
15 
16 #ifndef INCLUDED_core_import_pose_import_pose_hh
17 #define INCLUDED_core_import_pose_import_pose_hh
18 
19 // Package headers
21 
22 // C++ headers
23 #include <iosfwd>
24 // AUTO-REMOVED #include <iostream>
25 // AUTO-REMOVED #include <string>
26 
27 // Utility headers
28 #include <basic/Tracer.fwd.hh>
29 // AUTO-REMOVED #include <utility/io/ozstream.fwd.hh>
30 
31 // Project headers
32 #include <core/types.hh>
34 // AUTO-REMOVED #include <core/conformation/Residue.fwd.hh>
35 // AUTO-REMOVED #include <core/id/AtomID_Mask.fwd.hh>
38 #include <core/pose/Pose.fwd.hh>
39 
40 #include <utility/vector1.hh>
41 
42 
43 namespace core {
44 namespace import_pose {
45 
46 /// @brief special Tracer instance acting as special param for all traced_dump_pdb functions
47 extern basic::Tracer TR_dump_pdb_dummy;
48 
49 void
51  const utility::vector1<std::string>& filenames,
53 
54 void
56  std::string const & file,
57  pose::Pose & pose,
58  io::pdb::FileData const & fd,
59  bool read_fold_tree = false
60 );
61 
62 void
64  std::string const & file,
65  pose::Pose & pose,
66  ImportPoseOptions const & options,
67  bool read_fold_tree = false
68 );
69 
70 /// @brief Returns a PoseOP object from the Pose created from input
71 /// PDB <filename>
72 /// @note: in PyRosetta, this will return a Pose object
73 ///
74 /// example(s):
75 /// pose = pose_from_pdb("YFP.pdb")
76 /// See also:
77 /// Pose
78 /// PDBInfo
79 /// make_pose_from_sequence
80 /// pose_from_rcsb
81 /// pose_from_sequence
83  std::string const & filename,
84  bool read_fold_tree = false
85 );
86 
87 /// @brief Returns a PoseOP object from the Pose created by reading the input
88 /// PDB <filename>, this constructor allows for a non-default ResidueTypeSet
89 /// <residue_set>
91  chemical::ResidueTypeSet const & residue_set,
92  std::string const & filename,
93  bool read_fold_tree = false
94 );
95 
96 void
98  pose::Pose & pose,
99  chemical::ResidueTypeSet const & residue_set,
100  std::string const & filename,
101  ImportPoseOptions const & options,
102  bool read_fold_tree = false
103 );
104 
105 /// @brief Reads in data from input PDB <filename> and stores it in the Pose
106 /// <pose>, this constructor allows for a non-default ResidueTypeSet
107 /// <residue_set>
108 void
110  pose::Pose & pose,
111  chemical::ResidueTypeSet const & residue_set,
112  std::string const & filename,
113  bool read_fold_tree = false
114 );
115 
116 /// @brief Reads in data from input PDB <filename> and stores it in the Pose
117 /// <pose>, uses the FA_STANDARD ResidueTypeSet (fullatom) by default
118 /// @note: will use centroid if in::file::centroid_input is true
119 ///
120 /// example(s):
121 /// pose_from_pdb(pose,"YFP.pdb")
122 /// See also:
123 /// Pose
124 /// PDBInfo
125 void
127  pose::Pose & pose,
128  std::string const & filename,
129  bool read_fold_tree = false
130 );
131 
132 void
134  pose::Pose & pose,
135  std::string const & filename,
136  ImportPoseOptions const & options,
137  bool read_fold_tree = false
138 );
139 
140 /// @brief Reads data from an input PDB containing multiple models named
141 /// <filename> and stores it in a vector of Pose objects named <poses> using
142 /// ResidueTypeSet <residue_set>
143 void
146  chemical::ResidueTypeSet const & residue_set,
147  std::string const & filename,
148  bool read_fold_tree = false
149 );
150 
151 void
154  chemical::ResidueTypeSet const & residue_set,
155  std::string const & filename,
156  ImportPoseOptions const & options,
157  bool read_fold_tree = false
158 );
159 
162  utility::vector1< std::string > const & filenames,
163  bool read_fold_tree = false
164 );
165 
168  utility::vector1< std::string > const & filenames,
169  ImportPoseOptions const & options,
170  bool read_fold_tree = false
171 );
172 
175  chemical::ResidueTypeSet const & residue_set,
176  utility::vector1< std::string > const & filenames,
177  ImportPoseOptions const & options,
178  bool read_fold_tree
179 );
180 
183  utility::vector1< std::string > const & filenames,
184  bool read_fold_tree = false
185 );
186 
189  chemical::ResidueTypeSet const & residue_set,
190  utility::vector1< std::string > const & filenames,
191  bool read_fold_tree
192 );
193 
194 /* utility::vector1< core::pose::Pose >
195 poses_from_pdbs(
196  chemical::ResidueTypeSet const & residue_set,
197  utility::vector1< std::string > const & filenames,
198  ImportPoseOptions const & options,
199  bool read_fold_tree = false
200 ); */
201 
202 /* utility::vector1< core::pose::PoseOP >
203 poseOPs_from_pdbs(
204  chemical::ResidueTypeSet const & residue_set,
205  utility::vector1< std::string > const & filenames,
206  bool read_fold_tree = false
207 ); */
208 
209 // FA_STANDARD residue set
210 
211 /// @brief Reads data from an input PDB containing multiple models named
212 /// <filename> and stores it in a vector of Pose objects named <poses>
213 /// using the FA_STANDARD ResidueTypeSet (fullatom)
214 void
217  std::string const & filename,
218  bool read_fold_tree = false
219 );
220 
221 void
223  pose::Pose & pose,
224  std::string const & pdbcontents,
225  std::string const & filename = ""
226 );
227 
228 void
230  pose::Pose & pose,
231  std::string const & pdbcontents,
232  ImportPoseOptions const & options,
233  std::string const & filename = ""
234 );
235 
236 void
238  pose::Pose & pose,
239  std::string const & pdbcontents,
240  chemical::ResidueTypeSet const & residue_set,
241  std::string const & filename
242 );
243 
244 void
246  pose::Pose & pose,
247  std::string const & pdbcontents,
248  chemical::ResidueTypeSet const & residue_set,
249  ImportPoseOptions const & options,
250  std::string const & filename
251 );
252 
254  pose::Pose & pose,
255  std::istream & pdb_stream,
256  std::string const & filename,
257  ImportPoseOptions const & options
258 );
259 
260 /// uses the CENTROID residue_set
261 
262 /// @brief Reads in data from input PDB <filename> and stores it in the Pose
263 /// <pose> using the CENTROID ResidueTypeSet (centroid)
264 void
266  pose::Pose & pose,
267  std::string const & filename,
268  bool read_fold_tree = false
269 );
270 
272 
274 
275 /// @brief Create pose object, using given FileData object.
276 /// If PDB cleanin specified - it will be applied first.
277 /// Constructs a ImportPoseOptions object from the command line
278 void build_pose(
279  io::pdb::FileData & fd, // const? naaaaah
280  pose::Pose & pose,
281  chemical::ResidueTypeSet const & residue_set
282 );
283 
284 /// @brief Create pose object, using given FileData object.
285 /// If PDB cleanin specified - it will be applied first
286 void build_pose(
287  io::pdb::FileData & fd, // const? naaaaah
288  pose::Pose & pose,
289  chemical::ResidueTypeSet const & residue_set,
290  ImportPoseOptions const & options
291 );
292 
293 /// @brief Create pose object, using given FileData object.
294 /// No PDB cleanin will be appliend.
295 void build_pose_as_is(
296  io::pdb::FileData & fd, // const? naaaaah
297  pose::Pose & pose,
298  chemical::ResidueTypeSet const & residue_set,
299  ImportPoseOptions const & options
300 );
301 
302 } // namespace import_pose
303 } // namespace core
304 
305 #endif // INCLUDED_core_import_pose_import_pose_HH