Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ScoreFunctionFactory.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 src/core/conformation/ResidueFactory.hh
11 /// @brief
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 
15 #ifndef INCLUDED_core_scoring_ScoreFunctionFactory_hh
16 #define INCLUDED_core_scoring_ScoreFunctionFactory_hh
17 
20 #include <utility/vector1.hh>
21 #include <string>
22 
23 #ifdef WIN32 //VC++ needs full class declaration
24 #include <core/scoring/ScoreFunction.hh> // WIN32 INCLUDE
25 #endif
26 // #include <core/chemical/ResidueType.fwd.hh>
27 // #include <core/conformation/Conformation.fwd.hh>
28 // #include <core/conformation/Residue.fwd.hh>
29 // #include <core/chemical/AtomTypeSet.fwd.hh>
30 // #include <core/chemical/MMAtomTypeSet.fwd.hh>
31 
32 namespace core {
33 namespace scoring {
34 
35 /// @brief a collection of functions making a single score_function
37 {
38 public:
39 
41 
42  /// @brief Returns a ScoreFunction from the database weights file <weights_tag>
43  ///
44  /// example(s):
45  /// scorefxn = create_score_function('standard')
46  /// See also:
47  /// ScoreFunction
48  /// ScoreFunction.show
49  /// ScoreFunction.weights
50  /// ScoreType
51  static
53  create_score_function( std::string weights_tag );
54 
55  /// @brief Returns a ScoreFunction from the database weights file <weights_tag>
56  /// with the patch <patch_tag>
57  ///
58  /// example(s):
59  /// See also:
60  /// ScoreFunction
61  /// ScoreFunction.show
62  /// ScoreFunction.weights
63  /// ScoreType
64  static
66  create_score_function( std::string weights_tag, std::string const & patch_tag );
67 
68  /// @brief Returns a ScoreFunction from the database weights file <weights_tag> with patches in <patch_tags>
69  static
72 
73 private:
74 
75  /// @brief Applies user defined re-weighting from the options system. Reweights are applied as a
76  /// factor of the original, so -rg_reweight 0.5 would result in half of the previously defined
77  /// rg weight.
79 
80  static void load_weights_file( std::string weights_tag, ScoreFunctionOP scorefxn );
81 
82 };
83 
84 extern std::string const STANDARD_WTS;
85 extern std::string const SCORE13;
86 extern std::string const CENTROID_WTS;
87 extern std::string const SOFT_REP_WTS;
88 extern std::string const SOFT_REP_DESIGN_WTS;
89 extern std::string const DNA_INT_WTS;
90 extern std::string const DNA_INT_WTS_GB;
91 extern std::string const MM_STD_WTS;
92 extern std::string const RNA_LORES_WTS;
93 extern std::string const RNA_HIRES_WTS;
95 extern std::string const MEMB_HIGHRES_WTS; //pba
96 
97 extern std::string const SCORE12_PATCH;
98 extern std::string const DOCK_PATCH;
99 extern std::string const DOCK_LOW_PATCH;
100 
101 
102 
103 /// @brief A helper function which returns a scoring function owning pointer according to the
104 /// user's command line parameters -score:weights and -score:patch
105 /// By default it returns weights=standard and patch=score12 for fullatom,
106 /// and weights=cen_std and patch="" for centroid
107 core::scoring::ScoreFunctionOP getScoreFunction( bool const is_fullatom = true );
108 
109 /// @brief use the logic of getScoreFunction to get the name.
110 /// The name format is <weights_tag>[_<patch_tag> ... ]
113  bool const is_fullatom = true );
114 
115 } // namespace scoring
116 } // namespace core
117 
118 #endif