![]() |
Rosetta Protocols
2014.16.56682
|
#include <AtomTreeDiffJobOutputter.hh>
Public Member Functions | |
| AtomTreeDiffJobOutputter () | |
| ~AtomTreeDiffJobOutputter () | |
| void | final_pose (JobOP job, core::pose::Pose const &pose) |
| this function outputs the final result of a job. More... | |
| void | other_pose (JobOP job, core::pose::Pose const &pose, std::string const &tag, int copy_count=-1, bool score_only=false) |
| this function is intended for saving mid-protocol poses; for example the final centroid structure in a combined centroid/fullatom protocol. More... | |
| bool | job_has_completed (JobCOP job) |
| this function is not used for output, but it belongs here since it needs to check the same output locations as the class normally writes to. This class checks wherever output goes to see if the job's expected output already exists (on disk or whatever). This is the most basic form of checkpointing. The base implementation looks for a pdb with the job's name already in existence. More... | |
| std::string | output_name (JobCOP job) |
| this is the master function for determining the unique output identifier for a job More... | |
| void | set_precision (int bb_precision, int sc_precision, int bondlen_precision) |
| what precision should the atom_tree_diff be ouput at? More... | |
| void | use_input_for_ref (bool use_input=true) |
| use input as reference pose? More... | |
Public Member Functions inherited from protocols::jd2::FileJobOutputter | |
| FileJobOutputter () | |
| virtual | ~FileJobOutputter () |
| virtual void | file (JobCOP job, std::string const &data) |
| this function takes a string and writes it to disk (separately from Tracer output). More... | |
| utility::file::FileName const & | scorefile_name () |
| bool | write_scorefile () const |
Public Member Functions inherited from protocols::jd2::JobOutputter | |
| JobOutputter () | |
| virtual | ~JobOutputter () |
| virtual void | flush () |
| this function is meant to be redefined in child classes to allow for flushing of memory buffers. More... | |
| virtual void | starting_pose (core::pose::Pose const &) |
| optionally pass a starting (reference) pose to a JobOutputter for later comparison purposes and/or as interface for initializing evaluators More... | |
| virtual std::string | filename (JobCOP) const |
| void | add_evaluation (evaluation::PoseEvaluatorOP) |
| void | set_evaluators (evaluation::PoseEvaluators const &) |
| void | clear_evaluators () |
| clear the list of evaluators More... | |
| evaluation::PoseEvaluatorsCOP | evaluators () const |
| void | evaluate (core::pose::Pose &pose, std::string tag, core::io::silent::SilentStruct &pss) const |
| void | call_output_observers (core::pose::Pose const &pose, JobOP job) const |
| call all output_observers More... | |
| void | add_output_observer (JobOutputterObserverAP an_observer) |
| void | remove_output_observer (JobOutputterObserverAP old_observer) |
Private Member Functions | |
| void | dump_pose (std::string const &tag, core::pose::Pose const &pose, std::map< std::string, core::Real > scores, JobCOP job) |
| Appends pose to the silent file. More... | |
Private Attributes | |
| utility::io::ozstream | out_ |
| std::string | outfile_name_ |
| std::set< std::string > | used_tags_ |
| std::string | last_ref_tag_ |
| core::pose::Pose | last_ref_pose_ |
| core::import_pose::atom_tree_diffs::AtomTreeDiff | atom_tree_diff_ |
| int | bb_precision_ |
| precision to output atom tree diff at. More... | |
| int | sc_precision_ |
| int | bondlen_precision_ |
| bool | use_input_ |
| use input as reference pose? (default false) More... | |
Additional Inherited Members | |
Public Types inherited from protocols::jd2::FileJobOutputter | |
| typedef protocols::jd2::JobOutputter | parent |
Protected Member Functions inherited from protocols::jd2::FileJobOutputter | |
| virtual void | scorefile (JobCOP job, core::pose::Pose const &pose, std::string tag="", std::string scorefile="") |
| this function will handle the scorefile. If you need to make it virtual do so. Latter two arguments are for redirecting the output to a different scorefile for "other_pose"s. Also adds StringReal job info to the score file. More... | |
Protected Member Functions inherited from protocols::jd2::JobOutputter | |
| std::string | affixed_numbered_name (JobCOP job) |
| this function provides the extended name, not just the output name. e.g output_name returns 1UBQ_0001, this returns 1UBQ_0001.pdb More... | |
this is a middle-layer implementation of JobOutputter for file-based output. It handles scorefile output, as scorefiles are common to file-outputting methods.
| protocols::jd2::AtomTreeDiffJobOutputter::AtomTreeDiffJobOutputter | ( | ) |
References basic::options::OptionKeys::out::path::all, out::file::atom_tree_diff_bb, out::file::atom_tree_diff_bl, out::file::atom_tree_diff_sc, utility::file::FileName::base(), utility::file::FileName::ext(), utility::file::FileName::name(), option, basic::options::option, outfile_name_, path, utility::file::FileName::path(), basic::options::OptionKeys::out::path::pdb, basic::options::OptionKeys::out::pdb_gz, basic::options::OptionKeys::out::prefix, set_precision(), basic::options::OptionKeys::out::suffix, user, and utility::file::FileName::vol().
| protocols::jd2::AtomTreeDiffJobOutputter::~AtomTreeDiffJobOutputter | ( | ) |
|
private |
Appends pose to the silent file.
Appends pose to atom tree diff file.
References bb_precision_, bondlen_precision_, utility::io::ozstream::close(), core::import_pose::atom_tree_diffs::dump_atom_tree_diff(), core::import_pose::atom_tree_diffs::dump_reference_pose(), end, basic::Error(), utility::file::file_exists(), utility::io::ozstream::flush(), utility::io::ozstream::good(), last_ref_pose_, last_ref_tag_, core::minirosetta_svn_url(), core::minirosetta_svn_version(), utility::io::ozstream::open(), utility::io::ozstream::open_append(), basic::options::option, out_, outfile_name_, sc_precision_, protocols::jd2::TR, utility::io::ozstream::uncompressed(), use_input_, used_tags_, utility_exit_with_message, and basic::options::OptionKeys::run::version.
Referenced by final_pose().
|
virtual |
this function outputs the final result of a job.
Implements protocols::jd2::FileJobOutputter.
References protocols::jd2::JobOutputter::call_output_observers(), dump_pose(), end, output, output_name(), protocols::jd2::Job::output_string_real_pairs_begin(), and protocols::jd2::Job::output_string_real_pairs_end().
this function is not used for output, but it belongs here since it needs to check the same output locations as the class normally writes to. This class checks wherever output goes to see if the job's expected output already exists (on disk or whatever). This is the most basic form of checkpointing. The base implementation looks for a pdb with the job's name already in existence.
Implements protocols::jd2::FileJobOutputter.
References output_name(), and used_tags_.
|
virtual |
this function is intended for saving mid-protocol poses; for example the final centroid structure in a combined centroid/fullatom protocol.
Implements protocols::jd2::FileJobOutputter.
References protocols::jd2::JobOutputter::call_output_observers().
|
virtual |
this is the master function for determining the unique output identifier for a job
Implements protocols::jd2::FileJobOutputter.
References protocols::jd2::JobOutputter::affixed_numbered_name().
Referenced by final_pose(), and job_has_completed().
| void protocols::jd2::AtomTreeDiffJobOutputter::set_precision | ( | int | bb_precision, |
| int | sc_precision, | ||
| int | bondlen_precision | ||
| ) |
what precision should the atom_tree_diff be ouput at?
References bb_precision_, bondlen_precision_, and sc_precision_.
Referenced by AtomTreeDiffJobOutputter().
| void protocols::jd2::AtomTreeDiffJobOutputter::use_input_for_ref | ( | bool | use_input = true | ) |
use input as reference pose?
References last_ref_tag_, and use_input_.
|
private |
|
private |
precision to output atom tree diff at.
Referenced by dump_pose(), and set_precision().
|
private |
Referenced by dump_pose(), and set_precision().
|
private |
Referenced by dump_pose().
|
private |
Referenced by dump_pose(), and use_input_for_ref().
|
private |
Referenced by dump_pose().
|
private |
Referenced by AtomTreeDiffJobOutputter(), and dump_pose().
|
private |
Referenced by dump_pose(), and set_precision().
|
private |
use input as reference pose? (default false)
Referenced by dump_pose(), and use_input_for_ref().
|
private |
Referenced by dump_pose(), and job_has_completed().
1.8.7