Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StubScoreLoopsFilter.cc
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 /// @author Sarel Fleishman (sarelf@uw.edu)
13 #define foreach BOOST_FOREACH
14 #include <core/pose/Pose.hh>
17 #include <utility/tag/Tag.hh>
19 #include <protocols/moves/Mover.hh>
21 #include <basic/Tracer.hh>
22 #include <core/types.hh>
23 
25 
26 #include <core/kinematics/Jump.hh>
29 #include <utility/vector0.hh>
30 #include <utility/vector1.hh>
31 
32 //Auto Headers
34 
35 
36 
37 namespace protocols {
38 namespace protein_interface_design{
39 namespace filters {
40 
41 static basic::Tracer tr( "protocols.protein_interface_design.filters.StubScoreLoopsFilter" );
42 
43 ///@brief default ctor
45  cb_force_( 0.5 )
46 {
48 }
49 
51 
52 void
57  core::pose::Pose const & pose )
58 {
59  tr.Info << "StubScoreLoopsFilter"<<std::endl;
60  cb_force_ = tag->getOption< core::Real >( "cb_force", 0.5 );
61  runtime_assert( cb_force_ > 0.00001 );
63  stub_set_->read_data( tag->getOption< std::string >("stubfile") );
65  resfile_ = tag->getOption< std::string >("resfile","NONE");
66  if ( resfile_ != "NONE" ) hspmover.set_resfile( resfile_ );
68  core::Size ncst = hspmover.generate_csts( pose, constraints );
69  set_constraints( constraints );
70  tr.Info << "Filter with " << ncst << " hotspots in " << constraints.size() << " constraints." << std::endl;
71 }
72 
75  return new StubScoreLoopsFilter();
76 }
77 
78 
81  return new StubScoreLoopsFilter( *this );
82 }
83 
86 
88 StubScoreLoopsFilterCreator::keyname() const { return "StubScoreLoops"; }
89 
90 
91 } // filters
92 } // protein_interface_design
93 } // protocols