15 #include <core/types.hh>
16 #include <core/chemical/ChemicalManager.hh>
19 #include <protocols/viewer/viewers.hh>
20 #include <core/pose/Pose.hh>
21 #include <core/pose/rna/RNA_SuiteName.hh>
22 #include <core/pose/rna/util.hh>
23 #include <core/init/init.hh>
24 #include <core/import_pose/import_pose.hh>
25 #include <core/import_pose/pose_stream/PDBPoseInputStream.hh>
28 #include <protocols/farna/util.hh>
35 #include <basic/options/keys/out.OptionKeys.gen.hh>
36 #include <basic/options/keys/in.OptionKeys.gen.hh>
37 #include <basic/options/keys/score.OptionKeys.gen.hh>
38 #include <basic/options/keys/full_model.OptionKeys.gen.hh>
43 using namespace basic::options::OptionKeys;
51 using namespace basic::options::OptionKeys;
52 using namespace core::import_pose::pose_stream;
53 using namespace core::chemical;
54 using namespace core::pose::rna;
55 using namespace protocols::farna;
57 ResidueTypeSetCOP rsd_set;
58 rsd_set = core::chemical::ChemicalManager::get_instance()->residue_type_set( FA_STANDARD );
61 PoseInputStreamOP
input;
67 RNA_SuiteName suitename;
69 while (
input->has_another_pose() ) {
73 protocols::farna::ensure_phosphate_nomenclature_matches_mini(
pose );
74 core::pose::rna::figure_out_reasonable_rna_fold_tree(
pose );
75 core::pose::rna::virtualize_5prime_phosphates(
pose );
77 std::cout <<
"-----Pose " << i <<
"-----" << std::endl;
78 for (
Size j = 1; j <=
pose.total_residue(); ++j ) {
79 RNA_SuiteAssignment assignment = suitename.assign(
pose, j);
80 std::cout <<
"Residue " << j <<
' ' << assignment.name <<
' ' << std::setprecision(3) <<assignment.suiteness << std::endl;
93 protocols::viewer::clear_conformation_viewers();
100 main(
int argc,
char * argv [] )
105 std::cout << std::endl <<
"Basic usage: " << argv[0] <<
" -s <pdb file> " << std::endl;
106 std::cout << std::endl <<
" Type -help for full slate of options." << std::endl << std::endl;
118 protocols::viewer::viewer_main(
my_main );
120 std::cout <<
"caught exception " << e.
msg() << std::endl;
virtual std::string const msg() const
common derived classes for thrown exceptions
int main(int argc, char *argv[])
std::vector with 1-based indexing
rule< Scanner, options_closure::context_t > options
ocstream cout(std::cout)
Wrapper around std::cout.
BooleanOptionKey const exit("options:exit")
vector1: std::vector with 1-based indexing
void init()
set global 'init_was_called' to true
Program options global and initialization function.
rule< Scanner, option_closure::context_t > option