Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RotamerBoltzmannWeight.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 sw=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 protocols/simple_filters/RotamerBoltzmannWeight.hh
11 /// @brief Reports to Tracer which residues are designable in a taskfactory
12 /// @author Sarel Fleishman (sarelf@uw.edu)
13 
14 #ifndef INCLUDED_protocols_simple_filters_RotamerBoltzmannWeight_hh
15 #define INCLUDED_protocols_simple_filters_RotamerBoltzmannWeight_hh
16 
17 
18 // Project Headers
20 #include <core/pose/Pose.fwd.hh>
21 #include <utility/tag/Tag.fwd.hh>
27 #include <core/chemical/AA.hh>
28 
29 #include <utility/vector1.hh>
30 
31 //Auto Headers
32 // Unit headers
33 
34 namespace protocols {
35 namespace simple_filters {
36 
38 {
39 private:
41 public:
42  /// @brief default ctor
44  ///@brief Constructor with a single target residue
45  virtual bool apply( core::pose::Pose const & pose ) const;
46  virtual void report( std::ostream & out, core::pose::Pose const & pose ) const;
47  virtual core::Real report_sm( core::pose::Pose const & pose ) const;
48  virtual protocols::filters::FilterOP clone() const;
50  core::Real compute( core::pose::Pose const & pose ) const;
51  virtual ~RotamerBoltzmannWeight();
54  void parse_my_tag( utility::tag::TagPtr const tag,
58  core::pose::Pose const & );
59  void parse_def( utility::lua::LuaObject const & def,
60  utility::lua::LuaObject const & score_fxns,
61  utility::lua::LuaObject const & tasks );
62 
63  utility::vector1< core::Size > first_pass_ala_scan( core::pose::Pose const & pose ) const; // return a list of residues that pass the ddG threshold
64  core::Real compute_Boltzmann_weight( core::pose::Pose const & pose, core::Size const resi ) const;
65  void rb_jump( core::Size const jump );
66  core::Size rb_jump() const;
67  void sym_dof_names( std::string const dof_names );
68  std::string sym_dof_names() const;
69  void repacking_radius( core::Real const rad );
71  core::Real ddG_threshold() const;
72  void ddG_threshold( core::Real const ddG );
75  core::Real temperature() const;
76  void temperature( core::Real const temp );
77  bool unbound() const;
78  void unbound( bool const u );
79  void threshold_probability( core::chemical::AA const aa_type, core::Real const probability );
81  void energy_reduction_factor( core::Real const factor );
83  core::Real interface_interaction_energy( core::pose::Pose const & pose, core::Size const res ) const;
84  bool compute_entropy_reduction() const;
85  void compute_entropy_reduction( bool const cer );
86  void repack( bool const repack );
87  bool repack() const;
88  bool skip_ala_scan() const;
89  void skip_ala_scan( bool const s );
90  std::string type() const;
91  void type( std::string const & s );
92  bool write2pdb() const;
93  void write2pdb( bool const write );
94  core::Real compute_modified_ddG( core::pose::Pose const & pose, std::ostream & out ) const;
95  void write_to_pdb( core::Size const residue, std::string const residue_name, core::Real const boltzmann_weight ) const;
96 private:
98  core::Size rb_jump_; // dflt 1.
100  bool unbound_; // dflt true. what is the reference state for computing the boltz weight
102  core::Real temperature_; //dflt 0.8 ; this is actually kT rather than just T
103  core::Real ddG_threshold_; //dflt 1.5 a preliminary alanine scan will identify all allowed positions that also have at least ddG_threshold_ effect on binding for further analysis.
104  core::Real repacking_radius_; // dflt 6.0. how much to repack with each rotamer
105  utility::vector1< core::Real > threshold_probabilities_per_residue_; // dflt 0.1; the rotamer probability below which the energy_reduction_factor kicks in
106  core::Real energy_reduction_factor_;//dflt 0.5; by how much to decrease the binding energy
107 
108  bool compute_entropy_reduction_; //dflt false; compute the difference between the bound and unbound states
109  bool repack_; //dflt true; carry out ddG (true) or dG (false) calculations
110 /// the following are mutable b/c they only sum up data in the filter. They do not affect
111 /// how the filter is run (so the filter will remain logically constant, despite these variables)
112 /// Mutability here allows the variables to be changed even in const methods.
113  mutable std::map< core::Size, core::Real > ddGs_;//save the ddG values for a final report
114  mutable std::map< core::Size, core::Real > rotamer_probabilities_;//ditto for the probabilities
116  bool skip_ala_scan_;//dflt false; if true, only considers the task_factory
117  bool fast_calc_; //default false for now
121 };
122 
123 } // simple_filters
124 } // protocols
125 
126 #endif //INCLUDED_protocols_simple_filters_RotamerBoltzmannWeightFilter_HH_
127