Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BuildAlaPose.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 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/protein_interface_design/movers/BuildAlaPose.cc
11 /// @brief
12 /// @author Sarel Fleishman (sarelf@u.washington.edu), Jacob Corn (jecorn@u.washington.edu)
13 
14 // Unit headers
17 
18 // Package headers
20 
21 // AUTO-REMOVED #include <core/pose/Pose.hh>
22 // AUTO-REMOVED #include <core/conformation/Conformation.hh>
26 #include <basic/Tracer.hh>
29 // AUTO-REMOVED #include <core/pack/task/operation/TaskOperations.hh>
30 #include <utility/tag/Tag.hh>
31 
32 #include <utility/vector0.hh>
33 #include <utility/vector1.hh>
34 
35 //Auto Headers
37 #include <core/id/types.hh>
38 #include <core/kinematics/Jump.hh>
40 
41 
42 
43 namespace protocols {
44 namespace protein_interface_design {
45 namespace movers {
46 
47 using namespace core;
48 using namespace std;
49 using namespace core::scoring;
50 using namespace protocols::moves;
51 
52 static basic::Tracer TR( "protocols.protein_interface_design.movers.BuildAlaPose" );
53 
56 {
58 }
59 
62  return new BuildAlaPose;
63 }
64 
67 {
68  return "build_Ala_pose";
69 }
70 
71 BuildAlaPose::BuildAlaPose() : simple_moves::DesignRepackMover( BuildAlaPoseCreator::mover_name() ) {}
73  bool const partner1,
74  bool const partner2,
75  core::Real interface_distance_cutoff
76 ) :
77  simple_moves::DesignRepackMover( BuildAlaPoseCreator::mover_name() )
78 {
81  interface_distance_cutoff_ = interface_distance_cutoff;
82  runtime_assert( interface_distance_cutoff_ >= 0 );
83 }
84 
86 
87 void
89 {
90  using namespace core::scoring;
91  using namespace core::pack::task::operation;
92 
95 /* if( repack_partner1_ ^ repack_partner2_ ){
96  bool const prevent_chain1( !repack_partner1_ );
97  bool const prevent_chain2( !repack_partner2_ );
98  core::Size const prevent_chain_begin( pose.conformation().chain_begin( prevent_chain1 ? 1 : 2 ) );
99  core::Size const prevent_chain_end( pose.conformation().chain_end( prevent_chain2 ? 2 : 1 ) );
100  for( core::Size res=prevent_chain_begin; res<=prevent_chain_end; ++res )
101  prevent_repacking_.push_back( res );
102  } */
103  setup_packer_and_movemap( pose );
104 
105  using namespace core::scoring;
107  pack::pack_rotamers( pose, *scorefxn, task_ );
108  (*scorefxn)( pose );
109  /// Now handled automatically. scorefxn->accumulate_residue_total_energies( pose );
110 }
111 
115 }
116 
117 void
119 {
120  design_partner1_ = tag->getOption<bool>( "partner1", 0 );
121  design_partner2_ = tag->getOption<bool>( "partner2", 1 );
124  interface_distance_cutoff_ = tag->getOption<core::Real>( "interface_cutoff_distance", 8.0 );
125 
127  TR<<"defined BuildAlaPose mover "<<" for partners "<<( repack_partner1_ ? "1" : "" )<<( repack_partner2_ ? "2": "" )<<" with distance cutoff "<<
128  interface_distance_cutoff_<<std::endl;
129 }
130 
133  return( protocols::moves::MoverOP( new BuildAlaPose( *this ) ));
134 }
135 
136 } //movers
137 } //protein_interface_design
138 } //protocols