Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.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 util.hh
11 /// @brief
12 /// @author ashworth
13 
14 #ifndef INCLUDED_protocols_dna_util_hh
15 #define INCLUDED_protocols_dna_util_hh
16 
20 
21 #include <core/types.hh>
22 #include <core/chemical/AA.hh>
29 #include <core/pose/Pose.fwd.hh>
30 
31 // Utility headers
32 #include <utility/vector0.fwd.hh>
33 #include <utility/vector1.hh> // there is no forward declaration possible for const_iterator(?)
34 
35 // C++ headers
36 #include <list>
37 #include <iosfwd>
38 
39 
40 namespace protocols {
41 namespace dna {
42 
43 ///@brief basic struct for remembering position/type information before/during/after design
44 class PositionType {
45 public:
47  core::Size pos = 0,
49  bool design = false
50  ) : position( pos ), type( rt ), designable( design ) {}
51 
54  bool designable;
55 };
56 
58 
59 bool
61  core::conformation::Residue const & pres,
62  core::conformation::Residue const & dres,
63  core::Real cut2,
64  bool base_only = false
65 );
66 
69  core::pose::Pose const & pose,
70  core::Size presid,
71  core::conformation::Residue const & pres,
72  core::conformation::Residue const & dres,
73  core::Real threshold,
74  bool base_only = false
75 );
76 
79  core::conformation::Atoms::const_iterator a_begin,
80  core::conformation::Atoms::const_iterator a_end,
81  core::conformation::Atoms::const_iterator b_begin,
82  core::conformation::Atoms::const_iterator b_end,
83  core::Real threshold = 0.0
84 );
85 
88  core::conformation::Residue const & pres,
89  core::conformation::Residue const & dres
90 );
91 
93 
94 std::string dna_full_name3( std::string const & name3 );
95 
98 
99 void
101  core::pose::Pose const & pose,
102  DnaChains & dna_chains,
103  bool include_unpaired = true
104 );
105 
106 /* void
107 make_sequence_combinations(
108  ResTypeSequences & sequences,
109  utility::vector1< core::Size > const & seq_indices,
110  core::pack::task::PackerTaskCOP ptask
111 ); */
112 
113 void
115  ResTypeSequence const & sequence,
117  ResTypeSequences & sequences
118 );
119 
120 void
122  std::list< PositionType > & design_residues,
123  core::pose::Pose const & pose,
124  core::pack::task::PackerTask const & ptask
125 );
126 
127 void
130  utility::vector1< core::Size > const & seq_indices,
132  ResTypeSequence & sequence,
133  ResTypeSequences & sequences
134 );
135 
136 std::ostream & operator << ( std::ostream & os, ResTypeSequence const & seq );
137 
138 std::string seq_to_str( ResTypeSequence const & seq );
139 
140 std::ostream & operator << ( std::ostream & os, ResTypeSequences const & seqs );
141 
143  ResTypeSequence const &,
144  core::pose::Pose const &
145 );
146 
148  ResTypeSequence const &,
149  core::pose::Pose const &,
150  std::ostream &
151 );
152 
154  ResTypeSequences const &,
155  core::pose::Pose const &,
156  std::ostream &
157 );
158 
159 void
162  ResTypeSequence const & seq,
163  utility::vector0<int> & rot_to_pack
164 );
165 
166 void
170  utility::vector0< int > & rot_to_pack
171 );
172 
173 void
175  core::pose::Pose & pose,
176  core::Size index,
177  core::chemical::ResidueType const & new_type
178 );
179 
180 void write_checkpoint( core::pose::Pose & pose, core::Size iter );
181 void load_checkpoint( core::pose::Pose & pose, core::Size & iter );
182 void checkpoint_cleanup();
183 
184 void
186  DnaDesignDefOPs & defs,
187  utility::vector1< std::string > const & str_defs
188 );
189 
190 void
192  DnaDesignDefOPs & defs,
193  std::string const & filename,
194  std::string const & pdb_prefix
195 );
196 
197 void
199  DnaDesignDefOPs & defs,
200  std::string pdb_prefix = std::string()
201 );
202 
203 void
205  core::pose::Pose & pose
206 );
207 
210  core::pose::Pose const & pose
211 );
212 
213 bool
215  core::pose::Pose const & pose,
216  core::Size const num_jumps,
217  char const this_chain,
218  char const other_chain,
219  ObjexxFCL::FArray2D_int & jump_pairs
220 );
221 
222 
223 void
225  core::pose::Pose & pose,
226  core::Size const this_base,
227  core::Size const end_base
228 );
229 
230 
231 } // namespace dna
232 } // namespace protocols
233 
234 #endif