30 #include <basic/Tracer.hh>
36 #include <utility/vector1.hh>
37 #include <utility/file/FileName.hh>
38 #include <utility/io/izstream.hh>
48 #include <basic/options/option.hh>
55 #include <ObjexxFCL/format.hh>
60 #include <basic/options/keys/in.OptionKeys.gen.hh>
67 namespace sequence_comparation {
70 using namespace basic;
72 using namespace core::pose;
74 using namespace basic::options;
75 using namespace basic::options::OptionKeys;
77 using namespace ObjexxFCL::fmt;
88 static basic::Tracer
TR(
"core.io.sequence_comparation.DesignContrast");
106 nneighbs_.push_back(nneighb);
127 secstructs_.push_back(secstruct);
141 list_file_names_.clear();
142 pdb_file_names_.clear();
143 if ( option[ in::file::s ].active() )
144 pdb_file_names_ = option[ in::file::s ]().vector();
145 if ( option[ in::file::l ].active() ) {
146 list_file_names_ = option[ in::file::l ]().vector();
150 utility::io::izstream data( listname.c_str() );
151 if ( !data.good() ) {
152 utility_exit_with_message(
"Unable to open file: " + listname +
'\n' );
155 while( getline(data, line) ) {
156 pdb_file_names_.push_back( line );
163 return pdb_file_names_;
167 return pdb_file_names_;
171 return list_file_names_;
175 return list_file_names_;
180 for (
Size i=1; i<=pdb_file_names_.size(); ++i){
182 TR <<
"in DesignContrast check the code: " << code <<std::endl;
183 pdb_codes_.push_back(code);
202 TR <<
"in the start of output_sqc_file"<< std::endl;
203 setNeighbors(native_pose);
204 TR <<
"after setNeighbors "<< std::endl;
205 setSecStruct(decoy_pose);
206 TR <<
"after setSecStruct "<< std::endl;
222 native_res_name.push_back(native_pose.
residue(i).
name3());
225 decoy_res_name.push_back(decoy_pose.
residue(j).
name3());
227 TR <<
"total residues: " << decoy_pose.
total_residue() << std::endl;
230 << single_code <<
" "
231 << decoy_pose.
pdb_info()->chain(n) <<
" "
232 << I( 4, decoy_pose.
pdb_info()->number(n) ) <<
' '
233 <<
A( 3, native_res_name[n] ) <<
' '
234 <<
A( 3, decoy_res_name[n] ) <<
' '
235 << I( 5, nneighbs_[n]) <<
' '
236 <<
A( 2, secstructs_[n] ) <<
' '
239 TR <<
"end of sqc output" << std::endl;
243 list_file_names_.clear();
244 pdb_file_names_.clear();