Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RNA_StructureParameters.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 // CVS information:
4 // $Revision: 1.1.2.1 $
5 // $Date: 2005/11/07 21:05:35 $
6 // $Author: rhiju $
7 // (c) Copyright Rosetta Commons Member Institutions.
8 // (c) This file is part of the Rosetta software suite and is made available under license.
9 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
10 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
11 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
12 /// @author Rhiju Das
13 
14 #ifndef INCLUDED_protocols_rna_RNA_StructureParameters_HH
15 #define INCLUDED_protocols_rna_RNA_StructureParameters_HH
16 
17 #include <core/pose/Pose.fwd.hh>
21 #include <core/kinematics/Jump.hh>
22 #include <core/types.hh>
23 #include <utility/pointer/ReferenceCount.hh>
24 // ObjexxFCL Headers
25 // AUTO-REMOVED #include <ObjexxFCL/FArray1D.hh>
26 
27 // C++ Headers
28 #include <string>
29 #include <map>
30 #include <iostream>
31 #include <list>
32 
33 #include <utility/vector1.hh>
34 
35 
36 
37 namespace protocols {
38 namespace rna {
39 
40 ////////////////////////////////////////////////////////////////////////////////////////////
41 class RNA_Pairing {
42 public:
45  char edge1; //W,H,S
46  char edge2; //W,H,S
47  char orientation; //A,P
48 };
49 
51 
52 //////////////////////////////////////////////////////////////////////////////////////////////
54 public:
55 
56  //constructor
58  virtual ~RNA_StructureParameters();
59  void
60  initialize(
61  core::pose::Pose & pose,
62  std::string const rna_params_file,
63  std::string const jump_library_file,
64  bool const ignore_secstruct );
65 
66  void
68 
69  bool
70  random_jump_change( core::pose::Pose & pose ) const;
71 
73  allow_insert();
74 
75  void
77 
78  void
79  set_root_at_first_rigid_body( bool const setting ){ root_at_first_rigid_body_ = setting; }
80 
81  void
82  set_suppress_bp_constraint( bool const setting ){ suppress_bp_constraint_ = setting; }
83 
84  bool
85  check_base_pairs( core::pose::Pose & pose ) const;
86 
87  std::map< Size, Size >
88  connections() const;
89 
90  std::list< Size >
91  get_stem_residues( core::pose::Pose const & pose ) const;
92 
93  void
95 
96  private:
97 
98  void
100 
101  void
103 
104  void
106 
107  void
109 
110  void
112  std::istringstream & line_stream,
113  bool const in_stem );
114 
115  void
116  read_chain_connection( std::istringstream & line_stream );
117 
118  void
119  read_parameters_from_file( std::string const & pairing_file );
120 
121 
122  void
123  setup_jumps( core::pose::Pose & pose );
124 
125  void
127 
128  void
130 
131  void
132  setup_virtual_phosphate_variants_OLD( core::pose::Pose & pose ); //remove this by end of 2012
133 
134  void
135  set_jump_library( RNA_JumpLibraryOP rna_jump_library );
136 
137  std::string const
138  read_secstruct_from_file( std::string const & rna_secstruct_file );
139 
140  core::Size
141  check_in_chain_connections( core::Size const & pos1, core::Size const & pos2 ) const;
142 
143  bool
145  core::pose::Pose & pose,
146  core::Size const jump_pos ) const;
147 
148  void
150  core::pose::Pose & pose,
151  core::Size const & which_jump,
152  bool & success ) const;
153 
154  void
155  sample_alternative_chain_connection( core::pose::Pose & pose, core::Size const & which_jump ) const;
156 
157  void
158  insert_base_pair_jumps( core::pose::Pose & pose, bool & success ) const;
159 
160  void
162 
163 private:
166 
169 
171 
172  // int force_stems_;// deprecated.
173 
177 
181 
185 
188 
189 };
190 
192 
193 } //rna
194 } //protocols
195 
196 #endif