Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeltaFilter.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/DeltaFilter.hh
11 /// @brief Reports the average degree of connectivity of interface residues
12 /// @author Sarel Fleishman (sarelf@uw.edu)
13 
14 #ifndef INCLUDED_protocols_simple_filters_DeltaFilter_hh
15 #define INCLUDED_protocols_simple_filters_DeltaFilter_hh
16 
17 // Project Headers
19 #include <core/pose/Pose.fwd.hh>
20 #include <utility/tag/Tag.fwd.hh>
23 
24 #include <utility/vector1.hh>
25 
26 // Unit headers
27 
28 namespace protocols {
29 namespace simple_filters {
30 
32 {
33 private:
35 public:
36  /// @brief default ctor
37  DeltaFilter();
38  ///@brief Constructor with a single target residue
39  virtual bool apply( core::pose::Pose const & pose ) const;
40  virtual void report( std::ostream & out, core::pose::Pose const & pose ) const;
41  virtual core::Real report_sm( core::pose::Pose const & pose ) const;
42  virtual protocols::filters::FilterOP clone() const;
44  core::Real compute( core::pose::Pose const & pose ) const;
45  virtual ~DeltaFilter();
46  void parse_my_tag( utility::tag::TagPtr const tag,
50  core::pose::Pose const & );
51  void ref_baseline( core::Real const rb );
52  core::Real baseline() const;
53  void baseline( core::Real const b );
54  bool lower() const;
55  void lower( bool const l );
56  bool upper() const;
57  void upper( bool const u );
60  core::Real range() const;
61  void range( core::Real const r );
62  bool unbound() const;
63  void unbound( bool const u );
64  bool relax_unbound() const;
65  void relax_unbound( bool const u );
66  core::Size jump() const;
67  void jump( core::Size const j );
69  void relax_mover( protocols::moves::MoverOP const mover );
70 private:
71 
72  protocols::filters::FilterOP filter_; //which filter to use
73  core::Real baseline_; // dflt 0.0; the baseline against which to compare
74  core::Real range_; // dflt 0.0; how much above/below baseline to allow
75  bool lower_, upper_; // dflt false, true, respectively; use a lower/upper cutoff
76  bool unbound_; //dflt false; evaluate the filter in the unbound state? If so, activate jump, below
77  bool relax_unbound_; //dflt false; call relax mover on unbound pose?
78  core::Size jump_; //dflt 0, but defaults to 1 if unbound is true
79  protocols::moves::MoverOP relax_mover_; // a mover to be called before evaluating the filter's value. Only called for computing the baseline at the start!
80  core::pose::PoseOP reference_pose_; //the reference pose that the baseline will be calculated on. note: this will only get set if a pose saved in the middle of an RS protocol and not the starting structure is the reference
81  mutable core::Real ref_baseline_; // The baseline from the reference pose
82 
83  void unbind( core::pose::Pose & ) const; //utility function for unbinding the pose
84 };
85 
86 } // simple_filters
87 } // protocols
88 
89 #endif //INCLUDED_protocols_simple_filters_DeltaFilter_HH_
90