![]() |
Rosetta
2015.31
|
written by flo, feb 2011 class that can apply a resfile to a pose that had its length changed at some point in a protocol. A LengthEventCollector must be set in the pose's observer cache for this to work properly More...
#include <TaskOperations.hh>
Public Types | |
typedef ReadResfile | parent |
![]() | |
typedef TaskOperation | parent |
![]() | |
typedef utility::tag::TagCOP | TagCOP |
typedef basic::datacache::DataMap | DataMap |
typedef pose::Pose | Pose |
Public Member Functions | |
ReadResfileAndObeyLengthEvents () | |
BEGIN ReadResfileAndObeyLengthEvents. More... | |
ReadResfileAndObeyLengthEvents (std::string const &) | |
~ReadResfileAndObeyLengthEvents () | |
virtual TaskOperationOP | clone () const |
Create another task operation of the type matching the most-derived version of the class. More... | |
void | apply (pose::Pose const &pose, PackerTask &ptask) const |
virtual void | parse_tag (TagCOP, DataMap &) |
Used to parse an xml-like tag to load parameters and properties. More... | |
std::list< ResfileCommandCOP > const & | resfile_commands (Size const resfile_seqpos, ResfileContents const &contents, PackerTask const &ptask) const |
![]() | |
ReadResfile () | |
BEGIN ReadResfile. More... | |
ReadResfile (std::string const &) | |
virtual | ~ReadResfile () |
void | filename (std::string const &filename) |
void | default_filename () |
queries options system for resfile name More... | |
std::string const & | filename () const |
virtual void | parse_def (utility::lua::LuaObject const &def) |
![]() | |
virtual | ~TaskOperation () |
Private Attributes | |
bool | apply_default_commands_to_inserts_ |
written by flo, feb 2011 class that can apply a resfile to a pose that had its length changed at some point in a protocol. A LengthEventCollector must be set in the pose's observer cache for this to work properly
core::pack::task::operation::ReadResfileAndObeyLengthEvents::ReadResfileAndObeyLengthEvents | ( | ) |
BEGIN ReadResfileAndObeyLengthEvents.
Referenced by clone().
core::pack::task::operation::ReadResfileAndObeyLengthEvents::ReadResfileAndObeyLengthEvents | ( | std::string const & | filename | ) |
core::pack::task::operation::ReadResfileAndObeyLengthEvents::~ReadResfileAndObeyLengthEvents | ( | ) |
|
virtual |
IMPORTANT: only use this if any length changes are not reflected in the pose's pdb info, such as seems to be the case after vlb not quite certain on the ideal approach yet. it's prolly best to parse the resfile, and then apply the ResfileCommands to the remapped residues. this necessitates getting the ResfileContents. the code under 2. here is some duplication of ResfileReader::parse_resfile/parse_resfile_string, ideally this and ResfileReader should be refactored a bit
Reimplemented from core::pack::task::operation::ReadResfile.
References core::pack::task::operation::ReadResfile::apply(), apply_default_commands_to_inserts_, core::id::combine_sequence_mappings(), core::pack::task::operation::ReadResfile::filename(), core::pose::datacache::CacheableObserverType::LENGTH_EVENT_COLLECTOR, core::pose::Pose::observer_cache(), resfile_commands(), and core::pack::task::PackerTask::total_residue().
Referenced by protocols::enzdes::DetectProteinLigandInterface::apply().
|
virtual |
Create another task operation of the type matching the most-derived version of the class.
Reimplemented from core::pack::task::operation::ReadResfile.
References ReadResfileAndObeyLengthEvents().
|
virtual |
Used to parse an xml-like tag to load parameters and properties.
Reimplemented from core::pack::task::operation::ReadResfile.
References apply_default_commands_to_inserts_, and core::pack::task::operation::ReadResfile::parse_tag().
std::list< ResfileCommandCOP > const & core::pack::task::operation::ReadResfileAndObeyLengthEvents::resfile_commands | ( | core::Size const | resfile_seqpos, |
ResfileContents const & | contents, | ||
PackerTask const & | ptask | ||
) | const |
note: this function will return default commands for resfile_seqpos == 0
References core::pack::task::ResfileContents::commands_for_residue(), core::pack::task::ResfileContents::default_commands(), core::pack::task::ResfileContents::specialized_commands_exist_for_residue(), and core::pack::task::PackerTask::total_residue().
Referenced by apply().
|
private |
Referenced by apply(), and parse_tag().