15 #include <core/sequence/Sequence.hh>
21 #include <basic/options/keys/out.OptionKeys.gen.hh>
22 #include <basic/options/keys/frags.OptionKeys.gen.hh>
23 #include <basic/options/keys/in.OptionKeys.gen.hh>
24 #include <basic/options/keys/constraints.OptionKeys.gen.hh>
26 #include <protocols/frag_picker/FragmentPicker.hh>
27 #include <protocols/frag_picker/VallProvider.hh>
28 #include <protocols/frag_picker/VallChunk.hh>
29 #include <protocols/frag_picker/VallResidue.hh>
30 #include <protocols/frag_picker/FragmentSelectingRule.hh>
31 #include <protocols/frag_picker/VallChunkFilter.hh>
33 #include <protocols/frag_picker/scores/FragmentScoringMethod.hh>
43 using namespace core::fragment;
44 using namespace protocols::frag_picker;
47 using namespace basic::options::OptionKeys;
56 OPT(in::file::checkpoint);
57 OPT(in::file::talos_phi_psi);
58 OPT(in::file::torsion_bin_probs);
62 OPT(frags::scoring::profile_score);
65 OPT(frags::n_candidates);
66 OPT(frags::frag_sizes);
67 OPT(frags::write_ca_coordinates);
68 OPT(frags::allowed_pdb);
69 OPT(frags::denied_pdb);
70 OPT(frags::describe_fragments);
71 OPT(frags::keep_all_protocol);
72 OPT(frags::bounded_protocol);
73 OPT(frags::quota_protocol);
74 OPT(frags::picking::selecting_rule);
75 OPT(frags::picking::selecting_scorefxn);
76 OPT(frags::picking::quota_config_file);
77 OPT(frags::picking::query_pos);
81 OPT(out::file::frag_prefix);
83 OPT(frags::nonlocal_pairs);
84 OPT(frags::nonlocal::min_contacts_per_res);
85 OPT(frags::contacts::min_seq_sep);
86 OPT(frags::contacts::dist_cutoffs);
87 OPT(frags::contacts::centroid_distance_scale_factor);
88 OPT(frags::contacts::type);
92 int main(
int argc,
char * argv[]) {
96 using namespace basic::options::OptionKeys;
106 FragmentPickerOP pickIt;
107 if (
option[frags::p_value_selection]() == true ) {
108 pickIt = FragmentPickerOP(
new FragmentPicker(
"PValuedFragmentScoreManager") );
110 pickIt = FragmentPickerOP(
new FragmentPicker() );
112 pickIt->parse_command_line();
113 trace <<
"After setup; size of a query is: " << pickIt->size_of_query() << std::endl;
116 trace <<
"Picking candidates" << std::endl;
118 if (
option[frags::picking::quota_config_file].
user() ||
option[frags::quota_protocol].
user() ) {
119 trace <<
"Running quota protocol" << std::endl;
120 pickIt->quota_protocol();
122 if (
option[frags::keep_all_protocol].
user() ) {
123 trace <<
"Running keep-all protocol" << std::endl;
124 pickIt->keep_all_protocol();
126 trace <<
"Running bounded protocol" << std::endl;
127 pickIt->bounded_protocol();
133 std::cout <<
"caught exception " << e.
msg() << std::endl;
virtual std::string const msg() const
void init(int argc, char *argv[])
Command line init() version.
int main(int argc, char *argv[])
BooleanOptionKey const user("options:user")
xyzVector< Real > xyz(Real const &r1, Real const &omega1, Real const &t, Real const &dz1, Real const &delta_omega1, Real const &delta_z1)
Returns the x-, y-, and z-coordinates of a point on a helix given r1, omega1, and t...
common derived classes for thrown exceptions
basic::options::OptionKeys collection
static THREAD_LOCAL basic::Tracer trace("fragment_picker")
rule< Scanner, options_closure::context_t > options
ocstream cout(std::cout)
Wrapper around std::cout.
vector1: std::vector with 1-based indexing
Class for handling user debug/warnings/errors. Use instance of this class instead of 'std::cout' for ...
Program options global and initialization function.
rule< Scanner, option_closure::context_t > option