![]() |
Rosetta Core
2014.16.56682
|
maintains pdb residue & atom information inside a Pose More...
#include <PDBInfo.hh>
Classes | |
| struct | AtomRecord |
| internal struct for storing PDB atom related information More... | |
| struct | ResidueRecord |
| internal struct for storing PDB residue related information More... | |
Public Types | |
| typedef utility::pointer::ReferenceCount | Super |
| typedef core::Size | Size |
| typedef core::Real | Real |
| typedef std::string | String |
| typedef core::pose::Remarks | Remarks |
Public Member Functions | |
| PDBInfo () | |
| default constructor, obsolete is true More... | |
| PDBInfo (Size const n) | |
| size constructor (ensure space for 'n' residue records), obsolete is true More... | |
| PDBInfo (Pose const &pose, bool init=true) | |
| Pose constructor (ensures space for residue and atom records relative to Pose) More... | |
| PDBInfo (PDBInfo const &info) | |
| copy constructor More... | |
| virtual | ~PDBInfo () |
| default destructor More... | |
| PDBInfo & | operator= (PDBInfo const &info) |
| copy assignment More... | |
| core::conformation::Conformation const * | is_observing () |
| Returns the Conformation if this PDBInfo is currently observing a conformation, otherwise return NULL. More... | |
| void | attach_to (core::conformation::Conformation &conf) |
| Attaches the Conformation <conf> and begins observation. More... | |
| void | detach_from () |
| Detaches the Conformation and stops observation. More... | |
| void | on_connection_change (core::conformation::signals::ConnectionEvent const &event) |
| Updates when connection to Conformation is changed. More... | |
| void | on_identity_change (core::conformation::signals::IdentityEvent const &event) |
| Updates atom records when residue identity changes in Conformation. More... | |
| void | on_length_change (core::conformation::signals::LengthEvent const &event) |
| Updates residue and atom records when length changes in Conformation, obsoletes PDBInfo. More... | |
| bool | obsolete () const |
| Returns true if PDBInfo is obsolete and needs updating. More... | |
| void | obsolete (bool flag) |
| Sets the obsolete state to <flag> More... | |
| Size | nres () const |
| Returns the number of residues represented in PDBInfo. More... | |
| Size | natoms (Size const res) const |
| Returns the number of atoms represented for the residue <res> More... | |
| void | resize_residue_records (Size const n) |
| Resizes for <n> residue records. More... | |
| void | resize_atom_records (Size const res, Size const n, bool const zero=true) |
| Ensures <n> atom records for residue <res> are available. More... | |
| void | resize_atom_records (Size const n, bool const zero=true) |
| Ensures <n> atom records for residue <res> are available. More... | |
| void | resize_atom_records (Pose const &pose) |
| Updates the number of atom records with respect to atoms in <pose> More... | |
| void | tighten_memory () |
| Tightens memory usage. More... | |
| String const & | name () const |
| Returns the pdb name. More... | |
| void | name (String const &s) |
| Sets the pdb name. More... | |
| String const & | modeltag () const |
| Returns the model tag for a multi-model pdb. More... | |
| void | modeltag (String const &tag) |
| Sets the model tag for a multi-model pdb to <tag> More... | |
| Remarks const & | remarks () const |
| Returns the pdb remarks (const) More... | |
| Remarks & | remarks () |
| Returns the pdb remarks (mutable) More... | |
| void | remarks (Remarks const &in) |
| Sets the pdb remarks to <in> More... | |
| CrystInfo | crystinfo () const |
| Returns the pdb crystinfo. More... | |
| void | set_crystinfo (CrystInfo crystinfoin) |
| Sets the pdb crystinfo. More... | |
| void | header_information (io::pdb::HeaderInformation *header_information) |
| For structures deposited into the protein databank, the header information record stores the classfication, deposition date and the 4 character identification code. More... | |
| io::pdb::HeaderInformationCOP | header_information () const |
| io::pdb::HeaderInformationOP | header_information () |
| char const & | chain (Size const res) const |
| Returns the chain id for pose residue <res> More... | |
| int const & | number (Size const res) const |
| Returns the pdb sequence number of pose residue <res> More... | |
| char const & | icode (Size const res) const |
| Returns the pdb insertion code of residue <res> More... | |
| Size | pdb2pose (char const chain, int const res, char const icode= ' ') const |
| Returns the pose numbering of the pdb residue with chain <chain>, pdb residue <res>, and insertion code <icode> More... | |
| String | pose2pdb (Size const res) const |
| Returns the pdb numbering string of pose residue <res> More... | |
| utility::vector1< std::string > | get_reslabels (Size const res) const |
| returns the pose(number) labels associated to the residue More... | |
| void | chain (Size const res, char const chain_id) |
| Sets the chain id of pose residue <res> to <chain_id> More... | |
| void | number (Size const res, int const pdb_res) |
| Sets the pdb sequence residue number of pose residue <res> to <pdb_res> More... | |
| void | icode (Size const res, char const ins_code) |
| Sets the insertion code of pose residue <res> to <ins_code> More... | |
| void | set_resinfo (Size const res, char const chain_id, int const pdb_res, char const ins_code= ' ') |
| Sets the chain id, pdb sequence residue numbering, and insertion code for pose residue <res> to <chain_id> , <pdb_res> , and <ins_code> respectfully. More... | |
| void | add_reslabel (Size const res, std::string const label) |
| adds a label associated to a pose resid. More... | |
| void | clear_reslabel (Size const res) |
| clean all the label(s) associated to a pose resid. More... | |
| bool | res_haslabel (Size const res, std::string const target_label) const |
| uses std iterators to check if a residue has a label associated to it More... | |
| bool const & | is_het (Size const res, Size const atom_index) const |
| Returns true if the <atom_index> atom of pose residue <res> is a heteratom. More... | |
| char const & | alt_loc (Size const res, Size const atom_index) const |
| Returns the alternate location for the <atom_index> atom of pose residue <res> More... | |
| Real const & | occupancy (Size const res, Size const atom_index) const |
| Returns the occupancy for the <atom_index> atom of pose residue <res> More... | |
| Real const & | temperature (Size const res, Size const atom_index) const |
| Returns the temperature for the <atom_index> atom of pose residue <res> More... | |
| void | is_het (Size const res, Size const atom_index, bool const flag) |
| Sets the heteroatom flag of the <atom_index> atom of pose residue <res> to <flag> More... | |
| void | alt_loc (Size const res, Size const atom_index, char const loc) |
| Sets the alternate location of the <atom_index> atom of pose residue <res> to <loc> More... | |
| void | occupancy (Size const res, Size const atom_index, Real const occ) |
| Sets the occupancy of the <atom_index> atom of pose residue <res> to <occ> More... | |
| void | temperature (Size const res, Size const atom_index, Real const t) |
| Sets the temperature of the <atom_index> atom of pose residue <res> to <t> More... | |
| PDBPoseMap const & | pdb2pose () const |
| Returns the internally maintained PDBPoseMap. More... | |
| void | show (std::ostream &out) const |
| Displays segments of PDB information, segments may or may not be entire chains. More... | |
| void | set_chains (char const id) |
| Sets all residue chain ids to the character <id> More... | |
| template<typename CharIterator > | |
| void | set_chains (CharIterator const &begin, CharIterator const &end) |
| Sets the residue chain ids from some char container, iterator version. More... | |
| template<typename CharContainer > | |
| void | set_chains (CharContainer const &c) |
| Sets the residue chain ids from some char container, e.g. utility::vector1. More... | |
| template<typename IntIterator > | |
| void | set_numbering (IntIterator const &begin, IntIterator const &end) |
| Sets the pdb sequence residue numbering from some int container, iterator version. More... | |
| template<typename IntContainer > | |
| void | set_numbering (IntContainer const &c) |
| Sets the pdb sequence residue numbering from some int container, e.g. utility::vector1. More... | |
| template<typename CharIterator > | |
| void | set_icodes (CharIterator const &begin, CharIterator const &end) |
| Sets the insertion codes from some char container, iterator version. More... | |
| template<typename CharContainer > | |
| void | set_icodes (CharContainer const &c) |
| Sets the insertion codes from some char container, e.g. utility::vector1. More... | |
| void | copy (PDBInfo const &input_info, Size const copy_from, Size const copy_to, Size const start_from) |
| Copyies a section from PDBInfo <input_info> More... | |
| void | append_res (Size const res, Size const natoms, Size const n=1) |
| Appends residue records given a pose residue number <res> More... | |
| void | prepend_res (Size const res, Size const natoms, Size const n=1) |
| Prepends residue records before given pose residue number <res> More... | |
| void | replace_res (Size const res, Size const natoms) |
| "Replaces" residue record for pose residue <res> More... | |
| void | replace_res_remap_bfactors (Size const res, conformation::Residue const &tgt) |
| same as replace_res BUT remaps B factors from src to tgt More... | |
| void | delete_res (Size const res, Size const n=1) |
| Deletes <n> residue records starting from pose residue <res> More... | |
| utility::vector1 < UnrecognizedAtomRecord > const & | get_unrecognized_atoms () const |
| remembers info about atoms not read into the pose More... | |
| core::Size const & | get_num_unrecognized_atoms () const |
| core::Size const & | get_num_unrecognized_res () const |
| std::string const & | get_unrecognized_res_name (core::Size const &i) const |
| core::Size const & | get_unrecognized_res_size (core::Size const &i) const |
| void | add_unrecognized_atom (Size resnum, std::string resname, std::string atomname, numeric::xyzVector< Real > coords, Real temp) |
| remembers info about atoms not read into the pose More... | |
| void | rebuild_pdb2pose () |
| rebuilds PDBPoseMap from scratch More... | |
Static Public Member Functions | |
| static char | empty_record () |
| Returns the chain id character specifying "empty record", currently '^'. More... | |
Private Types | |
| typedef utility::vector1 < AtomRecord > | AtomRecords |
| typedef utility::vector1 < ResidueRecord > | ResidueRecords |
Private Member Functions | |
| void | check_residue_records_size (Size const size) const |
| if size of residue records != passed value, fail fast More... | |
Private Attributes | |
| bool | obsolete_ |
| indicates object is out of sync with reference (e.g. parent Pose) More... | |
| String | name_ |
| name of pdb/structure More... | |
| String | modeltag_ |
| model tag for multi-model pdbs More... | |
| io::pdb::HeaderInformationOP | header_information_ |
| header information More... | |
| Remarks | remarks_ |
| pdb remarks More... | |
| ResidueRecords | residue_rec_ |
| residue records in internal rosetta numbering from 1 .. n More... | |
| PDBPoseMap | pdb2pose_ |
| maps PDB chain,residue -> internal residue numbering More... | |
| core::conformation::Conformation const * | conf_ |
| Conformation being observed, NULL if not attached. More... | |
| utility::vector1 < UnrecognizedAtomRecord > | unrecognized_atoms_ |
| information about unrecognized residues More... | |
| std::map< core::Size, std::string > | unrecognized_res_num2name_ |
| std::map< core::Size, core::Size > | unrecognized_res_size_ |
| core::Size | num_unrecognized_res_ |
| core::Size | num_unrecognized_atoms_ |
| CrystInfo | crystinfo_ |
maintains pdb residue & atom information inside a Pose
Upon creation of new residue records, e.g. when calling the constructors without 'init' or appending/prepending residues, the chain id for the new records will be set to a character, currently '^', denoting "empty record". This character may be looked up by calling the static method PDBInfo::empty_record().
| typedef std::string core::pose::PDBInfo::String |
| core::pose::PDBInfo::PDBInfo | ( | ) |
default constructor, obsolete is true
| core::pose::PDBInfo::PDBInfo | ( | Size const | n | ) |
size constructor (ensure space for 'n' residue records), obsolete is true
Pose constructor (ensures space for residue and atom records relative to Pose)
| [in] | pose | Pose |
| [in] | init | if true (default), then residue records are initialized and obsolete set to false, otherwise obsolete is true using Pose residue numbering and chains of the Residues in the Conformation |
References core::conformation::Residue::chain(), core::pose::PDBInfo::ResidueRecord::chainID, chr_chains(), rebuild_pdb2pose(), core::pose::Pose::residue(), residue_rec_, resize_atom_records(), core::pose::PDBInfo::ResidueRecord::resSeq, and core::pose::Pose::total_residue().
| core::pose::PDBInfo::PDBInfo | ( | PDBInfo const & | info | ) |
copy constructor
|
virtual |
default destructor
References detach_from().
| void core::pose::PDBInfo::add_reslabel | ( | Size const | res, |
| std::string const | label | ||
| ) |
adds a label associated to a pose resid.
| [in] | res | residue in pose numbering |
| [in] | label | string that is the "label" |
References core::pose::PDBInfo::ResidueRecord::label, PyAssert, and residue_rec_.
| void core::pose::PDBInfo::add_unrecognized_atom | ( | Size | resnum, |
| std::string | resname, | ||
| std::string | atomname, | ||
| numeric::xyzVector< Real > | coords, | ||
| Real | temp | ||
| ) |
remembers info about atoms not read into the pose
References num_unrecognized_atoms_, num_unrecognized_res_, unrecognized_atoms_, unrecognized_res_num2name_, and unrecognized_res_size_.
Referenced by core::io::pdb::build_pose_as_is1().
Returns the alternate location for the <atom_index> atom of pose residue <res>
example(s): pose.pdb_info().alt_loc(1,1) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
Sets the alternate location of the <atom_index> atom of pose residue <res> to <loc>
References residue_rec_.
Appends residue records given a pose residue number <res>
append residue records after given residue number
| [in] | res | residue to append after (in internal/pose numbering) |
| [in] | natoms | number of atoms in type of appended residue |
| [in] | n | number of residue records to append |
References core::pose::PDBInfo::ResidueRecord::atomRec, core::pose::PDBPoseMap::insert(), pdb2pose_, and residue_rec_.
Referenced by on_length_change().
| void core::pose::PDBInfo::attach_to | ( | core::conformation::Conformation & | conf | ) |
Attaches the Conformation <conf> and begins observation.
attach to Conformation and begin observation
example(s):
References core::conformation::Conformation::attach_connection_obs(), core::conformation::Conformation::attach_identity_obs(), core::conformation::Conformation::attach_length_obs(), conf_, detach_from(), on_connection_change(), on_identity_change(), and on_length_change().
Referenced by core::pose::Pose::pdb_info().
|
inline |
Returns the chain id for pose residue <res>
example(s): pose.pdb_info().chain(3) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
Referenced by core::pose::PDBPoseMap::fill(), core::pose::renumber_pdbinfo_based_on_conf_chains(), show(), and core::pose::Pose::update_pose_chains_from_pdb_chains().
| void core::pose::PDBInfo::chain | ( | Size const | res, |
| char const | chain_id | ||
| ) |
Sets the chain id of pose residue <res> to <chain_id>
set chain id for residue
example(s): pose.pdb_info().chain(3,"R") See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References core::pose::PDBInfo::ResidueRecord::chainID, core::pose::PDBPoseMap::conditional_erase(), core::pose::PDBInfo::ResidueRecord::iCode, core::pose::PDBPoseMap::insert(), pdb2pose_, PyAssert, residue_rec_, and core::pose::PDBInfo::ResidueRecord::resSeq.
|
private |
if size of residue records != passed value, fail fast
References basic::Error(), residue_rec_, core::io::serialization::size(), and utility_exit.
Referenced by set_chains(), set_icodes(), and set_numbering().
| void core::pose::PDBInfo::clear_reslabel | ( | Size const | res | ) |
clean all the label(s) associated to a pose resid.
| [in] | res | residue in pose numbering |
References core::pose::PDBInfo::ResidueRecord::label, PyAssert, and residue_rec_.
| void core::pose::PDBInfo::copy | ( | PDBInfo const & | input_info, |
| Size const | copy_from, | ||
| Size const | copy_to, | ||
| Size const | start_from | ||
| ) |
Copyies a section from PDBInfo <input_info>
copy a section from another PDBInfo
| [in] | input_info | the PDBInfo to copy from |
| [in] | copy_from | the first residue position in input_info to copy |
| [in] | copy_to | the final residue position in input_info to copy |
| [in] | start_from | the first residue position in this PDBInfo to copy into |
References begin, core::sequence::end, core::pose::PDBPoseMap::erase(), core::pose::PDBPoseMap::insert(), pdb2pose_, and residue_rec_.
|
inline |
Returns the pdb crystinfo.
References crystinfo_.
Deletes <n> residue records starting from pose residue <res>
delete 'n' residue records starting from given residue
| [in] | res | residue to start deleting from (in internal/pose numbering) |
| [in] | n | number of residue records to delete |
References core::pose::PDBInfo::ResidueRecord::chainID, core::pose::PDBPoseMap::erase(), core::pose::PDBInfo::ResidueRecord::iCode, core::pose::PDBPoseMap::insert(), pdb2pose_, residue_rec_, core::pose::PDBInfo::ResidueRecord::resSeq, and start.
Referenced by on_length_change().
| void core::pose::PDBInfo::detach_from | ( | ) |
Detaches the Conformation and stops observation.
detach from Conformation and stop observation
example(s): pose.pdb_info().detach_from() See also: Pose PDBInfo
References conf_, core::conformation::Conformation::detach_connection_obs(), core::conformation::Conformation::detach_identity_obs(), core::conformation::Conformation::detach_length_obs(), on_connection_change(), on_identity_change(), and on_length_change().
Referenced by attach_to(), on_connection_change(), on_identity_change(), on_length_change(), core::pose::Pose::pdb_info(), and ~PDBInfo().
|
inlinestatic |
Returns the chain id character specifying "empty record", currently '^'.
Referenced by core::pose::conf2pdb_chain(), core::pose::PDBPoseMap::insert(), and core::pose::renumber_pdbinfo_based_on_conf_chains().
|
inline |
References num_unrecognized_atoms_.
|
inline |
References num_unrecognized_res_.
| utility::vector1< std::string > core::pose::PDBInfo::get_reslabels | ( | Size const | res | ) | const |
returns the pose(number) labels associated to the residue
returns for pose( resnumber) the label associated to the residue
| [in] | res | residue in pose numbering |
| [in] | res | residue in pose numbering |
References PyAssert, and residue_rec_.
|
inline |
remembers info about atoms not read into the pose
References unrecognized_atoms_.
|
inline |
References unrecognized_res_num2name_.
|
inline |
References unrecognized_res_size_.
|
inline |
For structures deposited into the protein databank, the header information record stores the classfication, deposition date and the 4 character identification code.
For now only allow initalizing it with copy and accessing it with a constant owning pointer. Note: The header information is only initialized if it is needed. Generally this requires using the -run:preserve_header options flag.
References header_information(), and header_information_.
Referenced by core::io::pdb::build_pose_as_is1().
|
inline |
References header_information_.
Referenced by header_information().
|
inline |
References header_information_.
|
inline |
Returns the pdb insertion code of residue <res>
example(s): pose.pdb_info().icode(3) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
Referenced by core::pose::PDBPoseMap::fill(), pdb2pose(), core::pose::renumber_pdbinfo_based_on_conf_chains(), and show().
| void core::pose::PDBInfo::icode | ( | Size const | res, |
| char const | ins_code | ||
| ) |
Sets the insertion code of pose residue <res> to <ins_code>
set insertion code for residue
Returns the pdb insertion code of residue <res>
example(s):
See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References core::pose::PDBInfo::ResidueRecord::chainID, core::pose::PDBPoseMap::conditional_erase(), core::pose::PDBInfo::ResidueRecord::iCode, core::pose::PDBPoseMap::insert(), pdb2pose_, PyAssert, residue_rec_, and core::pose::PDBInfo::ResidueRecord::resSeq.
Returns true if the <atom_index> atom of pose residue <res> is a heteratom.
References residue_rec_.
Sets the heteroatom flag of the <atom_index> atom of pose residue <res> to <flag>
References residue_rec_.
| core::conformation::Conformation const * core::pose::PDBInfo::is_observing | ( | ) |
|
inline |
Returns the model tag for a multi-model pdb.
example(s): pose.pdb_info().modeltag() See also: Pose PDBInfo
References modeltag_.
Referenced by core::io::pdb::build_pose_as_is1().
|
inline |
|
inline |
|
inline |
Returns the number of atoms represented for the residue <res>
example(s): pose.pdb_info().natoms(3) See also: Pose PDBInfo
References residue_rec_.
Referenced by show().
|
inline |
Returns the number of residues represented in PDBInfo.
example(s): pose.pdb_info().nres() See also: Pose PDBInfo
References residue_rec_.
Referenced by core::pose::PDBPoseMap::fill(), core::pose::Pose::pdb_info(), and show().
Returns the pdb sequence number of pose residue <res>
example(s): pose.pdb_info().number(3) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
Referenced by core::pose::PDBPoseMap::fill(), core::pose::renumber_pdbinfo_based_on_conf_chains(), and show().
Sets the pdb sequence residue number of pose residue <res> to <pdb_res>
set pdb residue sequence number
Returns the pdb insertion code of residue <res>
example(s): pose.pdb_info().number(3,81) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References core::pose::PDBInfo::ResidueRecord::chainID, core::pose::PDBPoseMap::conditional_erase(), core::pose::PDBInfo::ResidueRecord::iCode, core::pose::PDBPoseMap::insert(), pdb2pose_, PyAssert, residue_rec_, and core::pose::PDBInfo::ResidueRecord::resSeq.
|
inline |
Returns true if PDBInfo is obsolete and needs updating.
This flag is currently not used within the class and is provided for user convenience. Setting this will forcibly turn off pdb numbering when dumping pdbs.
example(s): pose.pdb_info().obsolete() See also: Pose PDBInfo
References obsolete_.
Referenced by core::io::pdb::build_pose_as_is1(), on_connection_change(), on_identity_change(), and on_length_change().
|
inline |
Sets the obsolete state to <flag>
this flag is currently not used within the class and is provided for user convenience. Setting this will forcibly turn off pdb numbering when dumping pdbs.
References obsolete_.
Returns the occupancy for the <atom_index> atom of pose residue <res>
example(s): pose.pdb_info().occupancy(1,1) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
|
inline |
Sets the occupancy of the <atom_index> atom of pose residue <res> to <occ>
References residue_rec_.
| void core::pose::PDBInfo::on_connection_change | ( | core::conformation::signals::ConnectionEvent const & | event | ) |
Updates when connection to Conformation is changed.
update when connection to Conformation is changed
References detach_from(), obsolete(), and core::conformation::signals::ConnectionEvent::tag.
Referenced by attach_to(), and detach_from().
| void core::pose::PDBInfo::on_identity_change | ( | core::conformation::signals::IdentityEvent const & | event | ) |
Updates atom records when residue identity changes in Conformation.
update atom records when residue identity changes in Conformation
References detach_from(), obsolete(), option, core::conformation::signals::IdentityEvent::position, in::preserve_crystinfo, replace_res(), replace_res_remap_bfactors(), core::conformation::signals::IdentityEvent::residue, and core::conformation::signals::IdentityEvent::tag.
Referenced by attach_to(), and detach_from().
| void core::pose::PDBInfo::on_length_change | ( | core::conformation::signals::LengthEvent const & | event | ) |
Updates residue and atom records when length changes in Conformation, obsoletes PDBInfo.
update residue and atom records when length changes in Conformation, obsoletes PDBInfo
Residue and atoms records in PDBInfo will be automatically resized and the obsolete flag will be set to true, causing PDBInfo to not be used on pdb output. Existing data inside the PDBInfo is not touched. After filling in the data for the newly updated residues, setting PDBInfo::obsolete( false ) will re-enable usage of PDBInfo on pdb output. If PDBInfo receives a LengthEvent::INVALIDATE, it will obsolete and then detach itself for safety.
References append_res(), delete_res(), detach_from(), core::conformation::signals::LengthEvent::length_change, obsolete(), core::conformation::signals::LengthEvent::position, prepend_res(), core::conformation::signals::LengthEvent::residue, and core::conformation::signals::LengthEvent::tag.
Referenced by attach_to(), and detach_from().
copy assignment
any Conformation already being observed stays constant, there is no re-assignment
References crystinfo_, header_information_, modeltag_, name_, num_unrecognized_atoms_, num_unrecognized_res_, obsolete_, pdb2pose_, remarks_, residue_rec_, unrecognized_atoms_, unrecognized_res_num2name_, and unrecognized_res_size_.
|
inline |
Returns the pose numbering of the pdb residue with chain <chain>, pdb residue <res>, and insertion code <icode>
example(s): pose.pdb_info().pdb2pose("B",5) See also: Pose PDBInfo PDBInfo.pose2pdb
References core::pose::PDBPoseMap::find(), icode(), and pdb2pose_.
|
inline |
Returns the internally maintained PDBPoseMap.
example(s):
See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References pdb2pose_.
| PDBInfo::String core::pose::PDBInfo::pose2pdb | ( | Size const | res | ) | const |
Returns the pdb numbering string of pose residue <res>
translates the pose number to pdb numbering string for use in PyRosetta.
example(s): pose.pdb_info().pose2pdb(25) See also: Pose PDBInfo PDBInfo.pdb2pose
| [in] | res | pose residue number |
References PyAssert, and residue_rec_.
Prepends residue records before given pose residue number <res>
prepend residue records before given residue number
| [in] | res | residue to prepend before (in internal/pose numbering) |
| [in] | natoms | number of atoms in type of appended residue |
| [in] | n | number of residue records to prepend |
References core::pose::PDBInfo::ResidueRecord::atomRec, core::pose::PDBPoseMap::insert(), pdb2pose_, and residue_rec_.
Referenced by on_length_change().
| void core::pose::PDBInfo::rebuild_pdb2pose | ( | ) |
rebuilds PDBPoseMap from scratch
References core::pose::PDBPoseMap::clear(), core::pose::PDBPoseMap::fill(), and pdb2pose_.
Referenced by PDBInfo(), resize_residue_records(), set_chains(), set_icodes(), and set_numbering().
|
inline |
Returns the pdb remarks (const)
example(s): pose.pdb_info().remarks() See also: Pose PDBInfo
References remarks_.
Referenced by core::io::pdb::build_pose_as_is1().
|
inline |
|
inline |
"Replaces" residue record for pose residue <res>
"replace" residue record for given residue number
Leaves information in residue record untouched, but resizes and zeroes atom records for the residue.
| [in] | res | residue to replace |
| [in] | natoms | number of atoms in type of residue |
References residue_rec_.
Referenced by on_identity_change().
| void core::pose::PDBInfo::replace_res_remap_bfactors | ( | Size const | res, |
| conformation::Residue const & | tgt | ||
| ) |
same as replace_res BUT remaps B factors from src to tgt
References core::conformation::Residue::attached_H_begin(), core::conformation::Residue::attached_H_end(), core::conformation::Residue::first_sidechain_atom(), core::conformation::Residue::is_protein(), core::conformation::Residue::last_backbone_atom(), core::conformation::Residue::natoms(), core::conformation::Residue::nheavyatoms(), residue_rec_, and temperature().
Referenced by on_identity_change().
|
inline |
uses std iterators to check if a residue has a label associated to it
| [in] | res | residue in pose numbering |
| [in] | target_label | string to look for inside the labes associated to the residue |
References residue_rec_.
| void core::pose::PDBInfo::resize_atom_records | ( | Size const | res, |
| Size const | n, | ||
| bool const | zero = true |
||
| ) |
Ensures <n> atom records for residue <res> are available.
ensure 'n' available atom records for particular residue
| [in] | res | residue |
| [in] | n | number of atoms |
| [in] | zero | if true, zero the atom records for this residue |
References residue_rec_.
Referenced by core::io::pdb::build_pose_as_is1(), and PDBInfo().
Ensures <n> atom records for residue <res> are available.
ensure 'n' available atom records for every residue
| [in] | res | residue |
| [in] | n | number of atoms |
| [in] | zero | if true, zero the atom records |
References residue_rec_.
| void core::pose::PDBInfo::resize_atom_records | ( | Pose const & | pose | ) |
Updates the number of atom records with respect to atoms in <pose>
update number of atom records with respect to atoms in Pose
Number of internally available atom records will be adjusted to match number of atoms within each residue in Pose. Only newly created records will be zeroed, any existing records are untouched.
References core::pose::Pose::n_residue(), core::conformation::Residue::natoms(), core::pose::Pose::residue(), and residue_rec_.
| void core::pose::PDBInfo::resize_residue_records | ( | Size const | n | ) |
Resizes for <n> residue records.
resize for 'n' residue records
Leaves atom record state inconsistent. Atom records for remaining residues are untouched while new residues have no atom records, so make sure and call one of resize_atom_records() afterwards if necessary.
References rebuild_pdb2pose(), and residue_rec_.
| void core::pose::PDBInfo::set_chains | ( | char const | id | ) |
Sets all residue chain ids to the character <id>
set all residue chain IDs to a single character
References rebuild_pdb2pose(), and residue_rec_.
Referenced by core::io::pdb::build_pose_as_is1(), core::io::silent::SilentStruct::residue_numbers_into_pose(), and set_chains().
|
inline |
Sets the residue chain ids from some char container, iterator version.
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
|
inline |
Sets the residue chain ids from some char container, e.g. utility::vector1.
Container must have const .size(), .begin() and .end() iterator access methods.
References check_residue_records_size(), residue_rec_, and set_chains().
|
inline |
|
inline |
Sets the insertion codes from some char container, iterator version.
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
Referenced by core::io::pdb::build_pose_as_is1(), and set_icodes().
|
inline |
Sets the insertion codes from some char container, e.g. utility::vector1.
Container must have const .size(), .begin() and .end() iterator access methods.
References check_residue_records_size(), residue_rec_, and set_icodes().
|
inline |
Sets the pdb sequence residue numbering from some int container, iterator version.
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
Referenced by core::io::pdb::build_pose_as_is1(), core::io::silent::SilentStruct::residue_numbers_into_pose(), and set_numbering().
|
inline |
Sets the pdb sequence residue numbering from some int container, e.g. utility::vector1.
Container must have const .size(), .begin() and .end() iterator access methods.
References check_residue_records_size(), residue_rec_, and set_numbering().
| void core::pose::PDBInfo::set_resinfo | ( | Size const | res, |
| char const | chain_id, | ||
| int const | pdb_res, | ||
| char const | ins_code = ' ' |
||
| ) |
Sets the chain id, pdb sequence residue numbering, and insertion code for pose residue <res> to <chain_id> , <pdb_res> , and <ins_code> respectfully.
set chain/pdb/insertion code for residue simultaneously
example(s): pose.pdb_info().icode(3) See also: Pose PDBInfo PDBInfo.chain PDBInfo.icode PDBInfo.number PDBInfo.pdb2pose PDBInfo.pose2pdb
| [in] | res | residue in pose numbering |
| [in] | chain_id | pdb chain id |
| [in] | pdb_res | residue in pdb numbering |
| [in] | ins_code | pdb insertion code |
References core::pose::PDBInfo::ResidueRecord::chainID, core::pose::PDBPoseMap::conditional_erase(), core::pose::PDBInfo::ResidueRecord::iCode, core::pose::PDBPoseMap::insert(), core::pose::PDBInfo::ResidueRecord::label, pdb2pose_, residue_rec_, and core::pose::PDBInfo::ResidueRecord::resSeq.
Referenced by core::pose::renumber_pdbinfo_based_on_conf_chains().
| void core::pose::PDBInfo::show | ( | std::ostream & | out | ) | const |
Displays segments of PDB information, segments may or may not be entire chains.
Displays the PDB info by expressing continuous chain segments.
example(s); pose.pdb_info().show()
See Also: PDBInfo PDBInfo.chain PDBInfo.icode PDBInfo.nres PDBInfo.number Pose Pose.pdb_info
References chain(), icode(), name(), natoms(), nres(), and number().
Referenced by core::pose::operator<<().
Returns the temperature for the <atom_index> atom of pose residue <res>
example(s): pose.pdb_info().temperature(1,1) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
Referenced by core::io::pdb::build_pose_as_is1(), and replace_res_remap_bfactors().
|
inline |
Sets the temperature of the <atom_index> atom of pose residue <res> to <t>
References residue_rec_, and core::scoring::hbonds::t.
| void core::pose::PDBInfo::tighten_memory | ( | ) |
|
private |
Conformation being observed, NULL if not attached.
Referenced by attach_to(), detach_from(), and is_observing().
|
private |
Referenced by crystinfo(), operator=(), and set_crystinfo().
|
private |
header information
Referenced by header_information(), and operator=().
|
private |
model tag for multi-model pdbs
Referenced by modeltag(), and operator=().
|
private |
name of pdb/structure
Referenced by name(), and operator=().
|
private |
Referenced by add_unrecognized_atom(), get_num_unrecognized_atoms(), and operator=().
|
private |
Referenced by add_unrecognized_atom(), get_num_unrecognized_res(), and operator=().
|
private |
indicates object is out of sync with reference (e.g. parent Pose)
control boolean prevents PDB emitter access if info out of sync
Referenced by obsolete(), and operator=().
|
private |
maps PDB chain,residue -> internal residue numbering
Referenced by append_res(), chain(), copy(), delete_res(), icode(), number(), operator=(), pdb2pose(), prepend_res(), rebuild_pdb2pose(), and set_resinfo().
|
private |
pdb remarks
Referenced by operator=(), remarks(), and tighten_memory().
|
private |
residue records in internal rosetta numbering from 1 .. n
Referenced by add_reslabel(), alt_loc(), append_res(), chain(), check_residue_records_size(), clear_reslabel(), copy(), delete_res(), get_reslabels(), icode(), is_het(), natoms(), nres(), number(), occupancy(), operator=(), PDBInfo(), pose2pdb(), prepend_res(), replace_res(), replace_res_remap_bfactors(), res_haslabel(), resize_atom_records(), resize_residue_records(), set_chains(), set_icodes(), set_numbering(), set_resinfo(), temperature(), and tighten_memory().
|
private |
information about unrecognized residues
Referenced by add_unrecognized_atom(), get_unrecognized_atoms(), and operator=().
|
private |
Referenced by add_unrecognized_atom(), get_unrecognized_res_name(), and operator=().
|
private |
Referenced by add_unrecognized_atom(), get_unrecognized_res_size(), and operator=().
1.8.7