15 #include <protocols/analysis/InterfaceAnalyzerMover.hh>
18 #include <protocols/jd2/JobDistributor.hh>
20 #include <protocols/moves/Mover.hh>
22 #include <core/conformation/Conformation.hh>
24 #include <core/scoring/ScoreFunction.hh>
25 #include <core/scoring/ScoreFunctionFactory.hh>
27 #include <core/pose/Pose.hh>
28 #include <core/pose/PDBInfo.hh>
81 protocols::analysis::InterfaceAnalyzerMoverOP
IAM_;
90 core::Size const num_chains(pose.conformation().num_chains());
100 if ( (num_chains <= 2) ) {
101 TR <<
"Computing interface between two chains in pose" << std::endl;
103 IAM_ = protocols::analysis::InterfaceAnalyzerMoverOP(
new protocols::analysis::InterfaceAnalyzerMover(
115 std::set< int > fixed_chains;
116 TR <<
"Fixed chains are: " ;
117 for (
core::Size j = 1; j <= fixed_chains_string.size(); ++j ) {
118 char this_chain (fixed_chains_string[ j ][0]);
119 for (
core::Size i = 1; i<=pose.total_residue(); ++i ) {
120 if ( pose.pdb_info()->chain( i ) == this_chain ) {
121 fixed_chains.insert( pose.chain(i) );
125 TR << this_chain <<
", ";
127 TR <<
"these will be moved together." << std::endl;
129 IAM_ = protocols::analysis::InterfaceAnalyzerMoverOP(
new protocols::analysis::InterfaceAnalyzerMover(
140 TR <<
"Using interface definition: "<<dock_chains <<std::endl;
141 IAM_ = protocols::analysis::InterfaceAnalyzerMoverOP(
new protocols::analysis::InterfaceAnalyzerMover(
162 if ( pose.conformation().num_chains() < 2 ) {
163 TR.
Error <<
"pose has only one chain, skipping" << std::endl;
164 set_last_move_status( protocols::moves::FAIL_BAD_INPUT);
185 option.add(
jumpnum,
"jump between chains of interface" ).def(1);
188 option.add(
fixedchains,
"Which chain(s) is/are moved away from the others, for 3 or more chains" );
192 option.add(
use_jobname,
"appended _0001 job name for output instead of input pose name").def(
false);
194 option.add(
interface,
"dock_chains interface definition, optional, ex LH_A. Can handle any number of chains. ");
197 protocols::jd2::JobDistributor::get_instance()->go(protocols::moves::MoverOP(
new IAMover() ));
199 TR <<
"************************d**o**n**e**************************************" << std::endl;
201 std::cout <<
"caught exception " << e.
msg() << std::endl;
#define utility_exit_with_message(m)
Exit with file + line + message.
virtual std::string const msg() const
Automatic hidden index key for integer options.
basic::options::StringOptionKey const interface("interface")
basic::options::BooleanOptionKey const pack_input("pack_input")
Automatic hidden index key for string options.
basic::options::BooleanOptionKey const tracer_data_print("tracer_data_print")
virtual bool reinitialize_for_each_job() const
void init(int argc, char *argv[])
Command line init() version.
basic::options::BooleanOptionKey const use_jobname("use_jobname")
Automatic hidden index key for string options.
virtual protocols::moves::MoverOP fresh_instance() const
Tracer & T(std::string const &channel, TracerPriority priority)
T is special function for assign tracer property on the static object.
void assign_IA_mover(core::pose::Pose &pose)
Tracer & Error(TracerPriority priority=t_error)
Predefined Error tracer.
virtual bool reinitialize_for_new_input() const
protocols::analysis::InterfaceAnalyzerMoverOP IAM_
Automatic hidden index key for boolean options.
Tracer & Warning(TracerPriority priority=t_warning)
Predefined Warning tracer.
virtual void apply(core::pose::Pose &pose)
begin apply
utility::options::OptionCollection option
OptionCollection global.
basic::options::BooleanOptionKey const compute_packstat("compute_packstat")
ocstream cout(std::cout)
Wrapper around std::cout.
vector1: std::vector with 1-based indexing
basic::options::BooleanOptionKey const add_regular_scores_to_scorefile("add_regular_scores_to_scorefile")
int main(int argc, char *argv[])
Class for handling user debug/warnings/errors. Use instance of this class instead of 'std::cout' for ...
basic::options::BooleanOptionKey const pack_separated("pack_separated")
virtual std::string get_name() const
basic::options::StringVectorOptionKey const fixedchains("fixedchains")
Program options global and initialization function.
static THREAD_LOCAL basic::Tracer TR("apps.public.analysis.InterfaceAnalyzer")
basic::options::BooleanOptionKey const use_resfile("use_resfile")
basic::options::IntegerOptionKey const jumpnum("jumpnum")
core::scoring::ScoreFunctionOP scorefxn_
rule< Scanner, option_closure::context_t > option