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>
43 using namespace basic::options::OptionKeys;
51 using namespace basic::options::OptionKeys;
52 using namespace core::import_pose::pose_stream;
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;
basic::options::OptionKeys collection
virtual std::string const msg() const
basic::options::OptionKeys collection
common derived classes for thrown exceptions
int main(int argc, char *argv[])
BooleanOptionKey const farna
BooleanOptionKey const rna
macros to define options on a per-application basis at the top of app files (those with main) ...
std::vector with 1-based indexing
basic::options::OptionKeys collection
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
basic::options::OptionKeys collection
void init()
set global 'init_was_called' to true
Program options global and initialization function.
BooleanOptionKey const chemical
FileVectorOptionKey const s("in:file:s")
rule< Scanner, option_closure::context_t > option