Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
motif_utils.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 motif_utils.hh
11 /// @brief Header for motif helper/conversion/io functions
12 /// @author havranek, sthyme (sthyme@gmail.com)
13 
14 #ifndef INCLUDED_protocols_motifs_motif_utils_hh
15 #define INCLUDED_protocols_motifs_motif_utils_hh
16 
17 // Unit Headers
18 
19 // Package Headers
24 
25 // Project Headers (protocols)
28 
29 // Project Headers
30 #include <core/chemical/AA.hh>
33 #include <core/pose/Pose.fwd.hh>
35 // AUTO-REMOVED #include <core/scoring/ScoreFunction.fwd.hh>
36 #include <core/types.hh>
37 
38 // Utility Headers
39 #include <utility/file/FileName.fwd.hh>
40 // AUTO-REMOVED #include <utility/io/izstream.hh>
41 #include <utility/vector1.fwd.hh>
42 
43 // C++ Headers
44 #include <map>
45 #include <set>
46 
47 #include <utility/vector1.hh>
48 #include <utility/io/izstream.fwd.hh>
49 
50 
51 namespace protocols {
52 namespace motifs {
53 
54 // This group of functions loads the motifs from external files
57  utility::file::FileName const & motif_filename
58 );// uses a constructor that accepts two residues, not input atom names
59  // so motif atoms are set in the static map in Motif.cc
60 
63  utility::io::izstream & motif_info
64 );
65 
68  std::istream & motif_info
69 );
70 
73  std::istream & motif_info
74 );
75 
76 // Dot product of the z-axis of nucleotides (1.0 = parallel, 0.0 = not)
77 // This test is only applicable in the case of motifs that involve nucleic acids
80  core::conformation::Residue const & pose_dna,
81  core::conformation::Residue const & motif_dna
82 );
83 
84 // The following group of functions are for havranek motif search
87  core::conformation::Residue const & r1,
89 );
90 
91 void
94  core::pose::Pose & pose,
95  core::Size this_pos,
96  core::conformation::Residue const & inv_rotamer
97 );
98 
101  core::pose::Pose & pose,
102  core::Size this_pos,
103  core::conformation::Residue const & inv_rotamer ,
104  MotifCOP this_motif,
105  bool const is_it_forward
106 );
107 
108 void
110  core::pose::Pose & pose,
111  protocols::loops::Loops & flex_regions
112 );
113 
114 // Functions for sthyme loading external data and setting up DNA mutations
115 MotifLibrary const
117 
118 MotifLibrary const
120 
123 
124 std::map< std::string, utility::vector1< core::conformation::ResidueOP > > const
127 );
128 
131  core::pose::Pose & pose
132 );
133 
134 std::map< core::Size, std::set< std::string > >
136  core::pose::Pose & pose
137 );
138 
139 void
141  core::pose::Pose & pose
142 );
143 
144 void
146  core::pose::Pose & pose,
147  protocols::dna::DnaDesignDefOPs const & targeted_dna
148 );
149 
152  core::pose::Pose const & pose,
153  protocols::dna::DnaDesignDefOPs const & targeted_dna
154 );
155 
158  core::pose::Pose const & pose,
159  protocols::dna::DnaDesignDefOPs const & targeted_dna
160 );
161 
162 std::map< core::Size, std::set< std::string > >
163 defs2map(
164  core::pose::Pose const & pose,
165  protocols::dna::DnaDesignDefOPs const & targets
166 );
167 
168 std::map< core::Size, std::set< std::string > >
169 bpdefs2map(
170  core::pose::Pose const & pose,
171  protocols::dna::DnaDesignDefOPs const & targets
172 );
173 
176  std::string const & oneletter
177 );
178 
181  core::pose::Pose const & pose
182 );
183 
186 
187 void
189  BuildPosition & bp,
190  std::string const & filename,
191  core::pose::Pose & pose
192 );
193 
194 void
196  BuildPosition & bp,
197  std::string const & filename,
198  core::pose::Pose & pose,
199  core::Size const ligand_marker
200 );
201 
205 );
206 
209  utility::io::izstream & residueinfo
210 );
211 
214  core::Size const nres,
216 );
217 
218 // Makes a base pair mutation, taken from devel for include reasons
219 void
221  core::pose::Pose & pose,
222  core::Size const seqpos,
223  core::chemical::AA const & na
224 );
225 
228  core::conformation::Residue const & rsd1,
229  core::conformation::Residue const & rsd2,
230  utility::vector1< std::string > const & atoms
231 );
232 
235  core::conformation::Residue const & rsd1,
236  core::conformation::Residue const & rsd2,
237  utility::vector1< core::Size > const & atoms
238 );
239 
242  core::pose::Pose & pose,
243  core::Size const rotamer_build_position,
244  utility::vector1< bool > aa_info,
245  core::Size const ex_,
246  bool bump_check = true
247 );
248 
249 } // namespace motifs
250 } // namespace protocols
251 
252 #endif // INCLUDED_protocols_motifs_motif_utils