Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RNA_RawBaseBaseInfo.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 core/scoring/methods/RNA_RawBaseBaseInfo.cc
11 /// @brief Statistically derived rotamer pair potential class implementation
12 /// @author Phil Bradley
13 /// @author Andrew Leaver-Fay
14 /// @author Rhiju Das
15 
16 
17 // Unit headers
19 // AUTO-REMOVED #include <core/scoring/rna/RNA_RawBaseBaseInfo.fwd.hh>
20 
21 // Package headers
23 
24 // Project headers
25 #include <core/chemical/AA.hh>
26 // AUTO-REMOVED #include <core/chemical/VariantType.hh>
27 // AUTO-REMOVED #include <core/conformation/Residue.hh>
28 // AUTO-REMOVED #include <core/pose/Pose.hh>
29 
30 // Utility headers
31 // AUTO-REMOVED #include <numeric/xyzMatrix.hh>
32 // AUTO-REMOVED #include <numeric/xyz.functions.hh>
33 
34 #include <utility/vector1.hh>
35 
36 
37 // C++
38 
39 ///////////////////////////////////////////////////////
40 // Keep track of some base geometry that is
41 // useful for RNA scoring.
42 ///////////////////////////////////////////////////////
43 
44 namespace core {
45 namespace scoring {
46 namespace rna {
47 
48 
49 /// @details Copy constructors must copy all data, not just some...
51  CacheableData()
52 {
61 }
62 
63 void
64 RNA_RawBaseBaseInfo::resize( Size const & total_residue )
65 {
66 
67  if ( base_pair_array_.size1() == total_residue ) return;
68 
69  base_pair_array_.dimension( total_residue, total_residue, 3 );
70  base_stagger_array_.dimension( total_residue, total_residue, 3 );
71  base_axis_array_.dimension( total_residue, total_residue, 3 );
72  base_stack_array_.dimension( total_residue, total_residue );
73  base_stack_axis_array_.dimension( total_residue, total_residue );
74  base_geometry_orientation_array_.dimension( total_residue, total_residue );
75  base_geometry_height_array_.dimension( total_residue, total_residue );
76 }
77 
78  ////////////////////////////////////////////////////////
79 void
81 {
82  base_pair_array_ = 0.0;
83  base_stagger_array_ = 0.0;
84  base_axis_array_ = 0.0;
85  base_stack_array_ = 0.0;
89 }
90 
91  ////////////////////////////////////////////////////////
92 void
93 RNA_RawBaseBaseInfo::copy_values( RNA_RawBaseBaseInfo const & src, Size const & i, Size const & j )
94 {
95  for (Size k = 1; k <= rna::NUM_EDGES; k++ ){
96  base_pair_array_(i,j,k) = src.base_pair_array_(i,j,k);
97  base_stagger_array_(i,j,k) = src.base_stagger_array_(i,j,k);
98  base_axis_array_(i,j,k) = src.base_axis_array_(i,j,k);
99  }
100  base_stack_array_(i,j) = src.base_stack_array_(i,j);
104 }
105 
106 }
107 }
108 }