![]() |
Rosetta Protocols
2014.16.56682
|
#include <ReportToDB.hh>
Public Member Functions | |
| ReportToDB () | |
| ReportToDB (std::string const &name) | |
| ReportToDB (utility::sql_database::sessionOP db_session, std::string const &batch_name, std::string const &batch_description, bool use_transactions=true, core::Size cache_size=2000) | |
| ReportToDB (ReportToDB const &src) | |
| virtual | ~ReportToDB () |
| virtual void | register_options () const |
| virtual moves::MoverOP | fresh_instance () const |
| Generates a new Mover object freshly created with the default ctor. More... | |
| virtual moves::MoverOP | clone () const |
| Return a clone of the Mover object. More... | |
| virtual std::string | name () |
| virtual std::string | get_name () const |
| Each derived class must specify its name. The class name. More... | |
| void | set_batch_name (std::string const &batch_name) |
| std::string | get_batch_name () const |
| void | set_batch_description (std::string const &batch_description) |
| std::string | get_batch_description () const |
| void | set_relevant_residues_task_factory (core::pack::task::TaskFactoryOP task_factory) |
| core::pack::task::TaskFactoryOP | get_relevant_residues_task_factory () const |
| void | set_relevant_residues (utility::vector1< bool > const &relevant_residues) |
| utility::vector1< bool > | get_relevant_residues () const |
| void | set_relevant_residues_mode (protocols::features::RelevantResiduesMode::T setting) |
| protocols::features::RelevantResiduesMode::T | get_relevant_residues_mode () const |
| void | set_structure_tag (std::string const &setting) |
| std::string | get_structure_tag () const |
| void | set_structure_input_tag (std::string const &setting) |
| std::string | get_structure_input_tag () const |
| void | add_features_reporter (FeaturesReporterOP features_reporter) |
| void | parse_batch_description_tag_item (utility::tag::TagCOP tag) |
| void | parse_batch_id_tag_item (utility::tag::TagCOP tag) |
| void | parse_protocol_id_tag_item (utility::tag::TagCOP tag) |
| void | parse_use_transactions_tag_item (utility::tag::TagCOP tag) |
| void | parse_cache_size_tag_item (utility::tag::TagCOP tag) |
| void | parse_remove_xray_virt_tag_item (utility::tag::TagCOP tag) |
| void | parse_relevant_residues_mode_tag_item (utility::tag::TagCOP tag) |
| void | parse_batch_name_tag_item (utility::tag::TagCOP tag) |
| void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &data, Filters_map const &, protocols::moves::Movers_map const &, core::pose::Pose const &pose) |
| void | check_features_reporter_dependencies (FeaturesReporterOP test_feature_reporter) const |
| void | initialize_reporters () |
| void | initialize_database () |
| void | initialize_pose (Pose &pose) const |
| initialize the pose and set the relevant residues More... | |
| utility::vector1< bool > | initialize_relevant_residues (Pose const &pose) |
| initialize the relevant residues of the pose and store save for later. More... | |
| void | apply (Pose &pose) |
| StructureID | report_structure_features () const |
| void | report_features (core::pose::Pose const &pose, StructureID struct_id, utility::vector1< bool > const &relevant_residues) const |
| StructureID | get_last_struct_id () const |
Public Member Functions inherited from protocols::moves::Mover | |
| Mover () | |
| virtual | ~Mover () |
| virtual MoverSP | create () |
| virtual void | apply (core::io::serialization::PipeMap &pmap) |
| virtual void | parse_state (SerializableState const &state) |
| virtual void | parse_def (utility::lua::LuaObject const &def, utility::lua::LuaObject const &score_fxns, utility::lua::LuaObject const &tasks, MoverCacheSP cache) |
| virtual void | save_state (SerializableState &state) |
| Mover (std::string const &type_name) | |
| sets the type for a mover; name_ has been removed (2010/05/14) More... | |
| Mover (Mover const &other) | |
| Mover & | operator= (Mover const &other) |
| assignment operator More... | |
| virtual core::Real | last_proposal_density_ratio () |
| std::string const & | type () const |
| std::string | get_current_tag () const |
| A tag is a unique identifier used to identify structures produced by this Mover. get_current_tag() returns the tag, and set_current_tag( std::string tag ) sets the tag. This functionality is not intended for use with the 2008 job distributor. More... | |
| void | set_current_tag (std::string const &new_tag) |
| virtual void | set_input_pose (PoseCOP pose) |
| setter for poses contained for rms More... | |
| virtual void | set_native_pose (PoseCOP pose) |
| setter for native poses contained for rms -— we should get rid of this method? it is widely used, but a bit unsafe More... | |
| PoseCOP | get_input_pose () const |
| PoseCOP | get_native_pose () const |
| virtual void | test_move (Pose &pose) |
| : Unit test support function. Apply one move to a given pose. Allows extra test specific functions to be called before applying More... | |
| void | type (const std::string &type_in) |
| std::string | get_type () const |
| MoverStatus | get_last_move_status () const |
| end parser interface, start Job Distributor interface///////////// More... | |
| void | reset_status () |
| resets status to SUCCESS, meant to be used before an apply(). The job distributor (august 08 vintage) uses this to ensure non-accumulation of status across apply()s. More... | |
| virtual core::pose::PoseOP | get_additional_output () |
| Mechanism by which a mover may return multiple output poses from a single input pose. More... | |
| virtual void | clear_info () |
| Strings container can be used to return miscellaneous info (as std::string) from a mover, such as notes about the results of apply(). The job distributor (Apr 09 vintage) will check this function to see if your protocol wants to add string info to the Job that ran this mover. One way this can be useful is that later, a JobOutputter may include/append this info to an output file. More... | |
| virtual Strings & | info () |
| non-const accessor More... | |
| virtual Strings const & | info () const |
| const accessor More... | |
| virtual bool | reinitialize_for_each_job () const |
| Inform the Job Distributor (August '08 vintage) whether this object needs to be freshly regenerated on each use. More... | |
| virtual bool | reinitialize_for_new_input () const |
| Inform the Job Distributor (August '08 vintage) whether this object needs to be regenerated when the input pose is about to change, (for example, if the Mover has special code on the first apply() that is only valid for that one input pose). More... | |
| void | set_current_job (protocols::jobdist::BasicJobCOP job) |
| jobdist::BasicJobCOP | get_current_job () const |
| virtual void | show (std::ostream &output=std::cout) const |
| Outputs details about the Mover, including current settings. More... | |
Additional Inherited Members | |
Public Types inherited from protocols::moves::Mover | |
| typedef utility::tag::TagCOP | TagCOP |
| typedef core::pose::Pose | Pose |
| typedef core::pose::PoseCOP | PoseCOP |
| typedef protocols::filters::Filters_map | Filters_map |
| typedef std::list< std::string > | Strings |
Static Public Member Functions inherited from protocols::moves::Mover | |
| static std::string | name () |
| static void | register_options () |
| Overload this static method if you access options within the mover. More... | |
Protected Member Functions inherited from protocols::moves::Mover | |
| void | set_last_move_status (MoverStatus status) |
| nonvirtual setter for MoverStatus last_status_. Protected means that only the mover itself will be able to change its own status. The job distributor (august 08 vintage) is aware of status set with this function and will do what the MoverStatus says. More... | |
| protocols::features::ReportToDB::ReportToDB | ( | ) |
References initialize_reporters().
Referenced by clone(), and fresh_instance().
| protocols::features::ReportToDB::ReportToDB | ( | std::string const & | name | ) |
References initialize_reporters().
| protocols::features::ReportToDB::ReportToDB | ( | utility::sql_database::sessionOP | db_session, |
| std::string const & | batch_name, | ||
| std::string const & | batch_description, | ||
| bool | use_transactions = true, |
||
| core::Size | cache_size = 2000 |
||
| ) |
| protocols::features::ReportToDB::ReportToDB | ( | ReportToDB const & | src | ) |
|
virtual |
| void protocols::features::ReportToDB::add_features_reporter | ( | FeaturesReporterOP | features_reporter | ) |
References check_features_reporter_dependencies(), and features_reporters_.
Referenced by parse_my_tag().
|
virtual |
Implements protocols::moves::Mover.
References batch_description_, batch_id_, batch_name_, cache_size_, protocols::jd2::JobDistributor::current_output_name(), db_session_, features_reporters_, protocols::jd2::JobDistributor::get_instance(), protocols::features::get_protocol_and_batch_id(), initialize_database(), initialize_pose(), initialize_relevant_residues(), last_struct_id_, protocol_id_, report_features(), report_structure_features(), set_cache_size(), protocols::features::set_protocol_and_batch_id(), core::pose::Pose::total_residue(), and protocols::features::TR.
| void protocols::features::ReportToDB::check_features_reporter_dependencies | ( | FeaturesReporterOP | test_feature_reporter | ) | const |
References batch_name_, features_reporters_, and utility_exit_with_message.
Referenced by add_features_reporter().
|
virtual |
Return a clone of the Mover object.
clone is meant to return an OP'ed deep copy of this object. This really should be a pure virtual in the base class, but adding pure virtuals to Mover would massively disrupt the code. This default implementation crashes at runtime instead of compiletime if you try to call it. If this code is causing you problems, your Mover needs to override this function.
Reimplemented from protocols::moves::Mover.
References ReportToDB().
|
virtual |
Generates a new Mover object freshly created with the default ctor.
fresh_instance is meant to return a new object of this class, created with the default constructor. This really should be a pure virtual in the base class, but adding pure virtuals to Mover would massively disrupt the code. This default implementation crashes at runtime instead of compiletime if you try to call it. If this code is causing you problems, your Mover needs to override this function. This is used by the August 08 job distributor.
Reimplemented from protocols::moves::Mover.
References ReportToDB().
| std::string protocols::features::ReportToDB::get_batch_description | ( | ) | const |
References batch_description_.
| std::string protocols::features::ReportToDB::get_batch_name | ( | ) | const |
References batch_name_.
| StructureID protocols::features::ReportToDB::get_last_struct_id | ( | ) | const |
References last_struct_id_.
|
inlinevirtual |
Each derived class must specify its name. The class name.
Implements protocols::moves::Mover.
References relevant_residues_.
| RelevantResiduesMode::T protocols::features::ReportToDB::get_relevant_residues_mode | ( | ) | const |
References relevant_residues_mode_.
| TaskFactoryOP protocols::features::ReportToDB::get_relevant_residues_task_factory | ( | ) | const |
References task_factory_.
| std::string protocols::features::ReportToDB::get_structure_input_tag | ( | ) | const |
References structure_input_tag_.
| std::string protocols::features::ReportToDB::get_structure_tag | ( | ) | const |
References structure_tag_.
| void protocols::features::ReportToDB::initialize_database | ( | ) |
References batch_features_, batch_id_, basic::options::OptionKeys::out::database_protocol_id, db_session_, features_reporters_, basic::database::get_db_session(), initialized, basic::options::option, protocol_features_, protocol_id_, structure_features_, user, and utility_exit_with_message.
Referenced by apply().
| void protocols::features::ReportToDB::initialize_pose | ( | Pose & | pose | ) | const |
initialize the pose and set the relevant residues
References core::chemical::aa_vrt, core::pose::Pose::conformation(), core::conformation::Conformation::delete_residue_slow(), remove_xray_virt_, core::pose::Pose::residue(), core::pose::Pose::total_residue(), and protocols::features::TR.
Referenced by apply().
initialize the relevant residues of the pose and store save for later.
References core::pack::task::TaskFactory::create_task_and_apply_taskoperations(), relevant_residues_, task_factory_, core::pose::Pose::total_residue(), and protocols::features::TR.
Referenced by apply().
| void protocols::features::ReportToDB::initialize_reporters | ( | ) |
References batch_features_, protocol_features_, and structure_features_.
Referenced by ReportToDB().
|
inlinevirtual |
Referenced by set_batch_name().
| void protocols::features::ReportToDB::parse_batch_description_tag_item | ( | utility::tag::TagCOP | tag | ) |
References batch_description_.
Referenced by parse_my_tag().
| void protocols::features::ReportToDB::parse_batch_id_tag_item | ( | utility::tag::TagCOP | tag | ) |
References batch_id_.
Referenced by parse_my_tag().
| void protocols::features::ReportToDB::parse_batch_name_tag_item | ( | utility::tag::TagCOP | tag | ) |
References batch_name_, utility::replace_in(), and protocols::features::TR.
Referenced by parse_my_tag().
| void protocols::features::ReportToDB::parse_cache_size_tag_item | ( | utility::tag::TagCOP | tag | ) |
References cache_size_.
Referenced by parse_my_tag().
|
virtual |
Allow ReportToDB to be called from RosettaScripts See
Reimplemented from protocols::moves::Mover.
References add_features_reporter(), begin, db_session_, end, features_reporter_factory_, protocols::features::FeaturesReporterFactory::get_features_reporter(), parse_batch_description_tag_item(), parse_batch_id_tag_item(), parse_batch_name_tag_item(), parse_cache_size_tag_item(), parse_database_connection(), parse_protocol_id_tag_item(), parse_relevant_residues_mode_tag_item(), parse_remove_xray_virt_tag_item(), protocols::rosetta_scripts::parse_task_operations(), parse_use_transactions_tag_item(), relevant_residues_mode_, structure_features_, task_factory_, and protocols::features::TR.
| void protocols::features::ReportToDB::parse_protocol_id_tag_item | ( | utility::tag::TagCOP | tag | ) |
References protocol_id_.
Referenced by parse_my_tag().
| void protocols::features::ReportToDB::parse_relevant_residues_mode_tag_item | ( | utility::tag::TagCOP | tag | ) |
References protocols::features::RelevantResiduesMode::Exclusive, protocols::features::RelevantResiduesMode::Inclusive, and relevant_residues_mode_.
Referenced by parse_my_tag().
| void protocols::features::ReportToDB::parse_remove_xray_virt_tag_item | ( | utility::tag::TagCOP | tag | ) |
References remove_xray_virt_.
Referenced by parse_my_tag().
| void protocols::features::ReportToDB::parse_use_transactions_tag_item | ( | utility::tag::TagCOP | tag | ) |
References use_transactions_.
Referenced by parse_my_tag().
|
virtual |
| void protocols::features::ReportToDB::report_features | ( | core::pose::Pose const & | pose, |
| StructureID | struct_id, | ||
| utility::vector1< bool > const & | relevant_residues | ||
| ) | const |
References batch_description_, batch_id_, batch_name_, db_session_, features_reporters_, protocol_id_, protocols::features::TR, use_transactions_, and utility_exit_with_message.
Referenced by apply().
| StructureID protocols::features::ReportToDB::report_structure_features | ( | ) | const |
References batch_description_, batch_id_, batch_name_, db_session_, protocol_id_, structure_features_, structure_input_tag_, structure_tag_, use_transactions_, and utility_exit_with_message.
Referenced by apply().
| void protocols::features::ReportToDB::set_batch_description | ( | std::string const & | batch_description | ) |
References batch_description_.
| void protocols::features::ReportToDB::set_batch_name | ( | std::string const & | batch_name | ) |
References batch_name_, and name().
| void protocols::features::ReportToDB::set_relevant_residues | ( | utility::vector1< bool > const & | relevant_residues | ) |
References relevant_residues_.
| void protocols::features::ReportToDB::set_relevant_residues_mode | ( | protocols::features::RelevantResiduesMode::T | setting | ) |
References relevant_residues_mode_.
| void protocols::features::ReportToDB::set_relevant_residues_task_factory | ( | core::pack::task::TaskFactoryOP | task_factory | ) |
References task_factory_.
| void protocols::features::ReportToDB::set_structure_input_tag | ( | std::string const & | setting | ) |
References structure_input_tag_.
| void protocols::features::ReportToDB::set_structure_tag | ( | std::string const & | setting | ) |
References structure_tag_.
|
private |
|
private |
Referenced by initialize_database(), and initialize_reporters().
|
private |
Referenced by apply(), initialize_database(), parse_batch_id_tag_item(), report_features(), and report_structure_features().
|
private |
|
private |
Referenced by apply(), and parse_cache_size_tag_item().
|
private |
Referenced by apply(), initialize_database(), parse_my_tag(), report_features(), and report_structure_features().
|
private |
Referenced by parse_my_tag().
|
private |
Referenced by add_features_reporter(), apply(), check_features_reporter_dependencies(), initialize_database(), and report_features().
|
private |
Referenced by initialize_database().
|
private |
Referenced by apply(), and get_last_struct_id().
|
private |
Referenced by initialize_database(), and initialize_reporters().
|
private |
Referenced by apply(), initialize_database(), parse_protocol_id_tag_item(), report_features(), and report_structure_features().
|
private |
Referenced by get_relevant_residues(), initialize_relevant_residues(), and set_relevant_residues().
|
private |
This indicates which features should be reported given the relevant residue specification:
Exclusive: All residues in a feature must be specified as 'relevant' through the given task operations to be reported. (DEFAULT)
Inclusive: At least one residue in the the feature must be specified as 'relavent' through the given task operations to be reported.
Referenced by get_relevant_residues_mode(), parse_my_tag(), parse_relevant_residues_mode_tag_item(), and set_relevant_residues_mode().
|
private |
Referenced by initialize_pose(), and parse_remove_xray_virt_tag_item().
|
private |
Referenced by initialize_database(), initialize_reporters(), parse_my_tag(), and report_structure_features().
|
private |
Referenced by get_structure_input_tag(), report_structure_features(), and set_structure_input_tag().
|
private |
Referenced by get_structure_tag(), report_structure_features(), and set_structure_tag().
|
private |
|
private |
Referenced by parse_use_transactions_tag_item(), report_features(), and report_structure_features().
1.8.7