Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DockFilters.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 DockFilters
11 /// @brief Filters for docking
12 /// @author Jeff Gray
13 
14 
15 #ifndef INCLUDED_protocols_docking_DockFilters_hh
16 #define INCLUDED_protocols_docking_DockFilters_hh
17 
18 // Unit Headers
21 
22 // Package headers
23 
24 // Project headers
25 #include <core/types.hh>
26 #include <core/pose/Pose.fwd.hh>
28 
31 
32 // Utility headers
33 #include <utility/vector1.hh>
34 
35 // C++ headers
36 
37 namespace protocols {
38 namespace docking {
39 
40 /// @brief Low-resolution (centroid-mode) filter for docking.
41 /// Checks (1) at least some contact is being made between docking partners,
42 /// (2) clashes are limited so partners are not overlapping
43 /// and (3) constraints, if present, are met
45 {
46 public:
50  void set_use_constraints( bool flag, core::Real cutoff=1.0 ); /// @brief add docking constraints
51  bool apply( core::pose::Pose const & pose ) const;
52  void report( std::ostream & out, core::pose::Pose const & pose) const;
53  protocols::filters::FilterOP clone() const { return new DockingLowResFilter( *this ); }
55 
56 private:
57  bool use_constraints_; /// @brief boolean to indicate if constraints are used
58  core::Real constraint_cutoff_; /// @brief cutoff value for the constraint score
60 };
61 
62 
63 /// @brief High-resolution (all-atom) filter for docking.
64 /// Checks (1) total_score beats the cutoff given
65 /// (2) interface_score must be negative
66 /// @details /// @rosetta++ had: 1-score filter 2-fa_rep filter 3-interfaceE filter 4-chainbreak filter
67 /// TTD: add these other filters
69 {
70 public:
74  void set_score_margin( core::Real new_score_margin );
75  void set_score_cutoff( core::Real new_cutoff ) { scorefilter_->set_cutoff( new_cutoff ); }
76  void set_moveable_jumps( DockJumps const & movable_jumps ) { movable_jumps_ = movable_jumps; }
77  void set_scorefunction( core::scoring::ScoreFunctionOP const scorefunction );
78  bool apply( core::pose::Pose const & pose ) const;
79  //core::Real report_interface_score() const { return interface_score_; } // only valid after apply()
82 
83 private:
85  core::Real score_margin_; /// @brief extra margin for passing filters for early in protocol
86  core::scoring::ScoreFunctionOP scorefunction_; /// @brief ScoreFunction for evaluating interface_score //defaults to docking scorefxn
88 };
89 
90 
91 } // docking
92 } // protocols
93 
94 #endif