18 #include <basic/Tracer.hh>
26 #include <utility/vector1.hh>
27 #include <utility/tag/Tag.hh>
35 #include <utility/vector0.hh>
39 namespace comparative_modeling {
55 static Tracer
tr(
"protocols.comparative_modeling.partial_threading");
67 tr.Debug <<
"current sequence is " << query_pose.
sequence() << std::endl;
69 Size const t_resi = query_to_pdbseq[ resi ];
74 pdb_numbering.push_back( resi );
75 pdb_chains.push_back(
'A' );
78 tr.Debug <<
"final sequence is " << query_pose.
sequence() << std::endl;
80 std::reverse(pdb_numbering.begin(), pdb_numbering.end());
82 new_pdb_info->set_numbering( pdb_numbering );
83 new_pdb_info->set_chains( pdb_chains );
85 query_pose.
pdb_info()->obsolete(
false );
87 tr.flush_all_channels();
98 runtime_assert( tag->hasOption(
"aln_fn") );
99 runtime_assert( tag->hasOption(
"aln_id") );
100 runtime_assert( tag->hasOption(
"template_pdb_fn") );
109 string const template_pdb_fn(
110 tag->getOption<
string >(
"template_pdb_fn")
116 string const aln_fn( tag->getOption<
string >(
"aln_fn") );
117 string const aln_id( tag->getOption<
string >(
"aln_id") );
118 string aln_format(
"grishin");
119 if ( tag->hasOption(
"aln_format") ) {
120 aln_format = tag->getOption<
string >(
"aln_format");
125 bool found_aln(
false);
126 for ( iter it = alns.begin(),
end = alns.end(); it !=
end; ++it ) {
127 if ( it->alignment_id() == aln_id ) {
135 "Error: couldn't find aln with id " + aln_id +
136 " in aln_file " + aln_fn +
"!"
138 utility_exit_with_message(
"Error!");
144 return "PartialThreadingMover";