Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SpartaUtil.hh
Go to the documentation of this file.
1 /* */
2 /* ---- SPARTA ---- */
3 /* Shifts Prediction from Analogue of Residue type and Torsion Angle */
4 /* Yang Shen and Ad Bax */
5 /* J. Biomol. NMR, 38, 289-302 (2007) */
6 /* NIH, NIDDK, Laboratory of Chemical Physics */
7 /* version, 1.2 (build 2009.0928.17) */
8 /* */
9 /* for any problem, please contact */
10 /* shenyang@niddk.nih.gov */
11 /* */
12 /******************************************************************************/
13 /// modified for use inside CS-Rosetta by Oliver Lange
14 ///
15 // vi: set ts=2 noet:
16 //
17 // (c) Copyright Rosetta Commons Member Institutions.
18 // (c) This file is part of the Rosetta software suite and is made available under license.
19 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
20 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
21 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
22 
23 /// @brief Set of functions from Sparta class that don't actually manipulate
24 /// any state in the class and have thus been removed.
25 /// @author Oliver Lange
26 /// @author James Thompson
27 
28 #ifndef protocols_sparta_SpartaUtil_hh
29 #define protocols_sparta_SpartaUtil_hh
30 
31 #include <boost/unordered_map.hpp>
32 
33 #include <protocols/sparta/GDB.hh>
34 // AUTO-REMOVED #include <protocols/sparta/PDB.hh>
35 // AUTO-REMOVED #include <protocols/sparta/ANN.hh>
36 
37 // AUTO-REMOVED #include <core/pose/Pose.fwd.hh>
38 
39 #include <core/types.hh>
40 #include <utility/vector1.hh>
41 #include <utility/vector0.hh>
42 
43 namespace protocols {
44 namespace sparta {
45 
46 void
48  boost::unordered_map< int, std::string > & atom_names,
49  GDB & Pred_Sum,
50  GDB & REF_CS_Tab,
51  GDB & COMP_Tab,
52  utility::vector1< float > & per_residue_scores
53 );
54 
56  boost::unordered_map< int, std::string > & atom_names,
57  GDB & Pred_Sum,
58  GDB & REF_CS_Tab,
59  GDB & COMP_Tab // pass-by-reference, will be obliterated
60 );
61 
62 float getDiff( float ang1, float ang2 ); // calculate the different between two angles
66 
67 int MKDIR(const char *dirName);
68 bool isDirExists(const std::string &Dir) ;
69 
70 char * ftoa( float n, char *buff, char f='g', int prec=6 );
71 char * itoa( int n, char *buff, int base=10 );
72 
73 } // sparta
74 } // protocols
75 
76 #endif