19 #include <boost/foreach.hpp>
21 #define foreach BOOST_FOREACH
25 namespace ligand_docking {
26 namespace ligand_options {
39 for(
core::Size i=chain_begin; i<=chain_end; ++i){
48 (*this)[i-j].chain=(*this)[i].chain;
49 (*this)[i-j].chain_id=(*this)[i].chain_id;
56 (*this)[i+j].chain=(*this)[i].chain;
57 (*this)[i+j].chain_id=(*this)[i].chain_id;
75 for(++start_from; start_from <= chain_end; ++start_from){
88 for(++start_from ;start_from<= chain_end; ++start_from){
103 interface_residues.push_back(position);
106 return interface_residues;
115 interface_residues.push_back(position);
118 return interface_residues;
122 std::stringstream python_stream;
124 python_stream<<
"interface residues: ";
126 python_stream<< res_id <<
'+';
128 python_stream<< std::endl;
129 python_stream<<
"near interface residues: ";
133 for(; j != near_residues.end(); ++j){
134 python_stream<< *j <<
'+';
136 python_stream<< std::endl;
140 return python_stream.str();