Rosetta
|
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::VirtualBase | Super |
typedef core::Size | Size |
typedef core::Real | Real |
typedef std::string | String |
typedef core::io::Remarks | Remarks |
typedef core::io::CrystInfo | CrystInfo |
typedef utility::vector1< AtomRecord > | AtomRecords |
typedef utility::vector1< ResidueRecord > | ResidueRecords |
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... | |
~PDBInfo () override | |
default destructor More... | |
PDBInfo & | operator= (PDBInfo const &info) |
copy assignment More... | |
core::conformation::ConformationCAP | 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::HeaderInformationOP 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::HeaderInformationCOP | header_information () const |
io::HeaderInformationOP | header_information () |
void | chain_sequences (std::map< char, utility::vector1< std::string > > chain_sequences) |
For structures deposited into the protein databank, the chain sequences stores the SEQRES records. A listing of the consecutive chemical components covalently linked in a linear fashion to form a polymer. In short, the sequence (as a vector of three letter codes) that the researcher performed the experiment on. More... | |
utility::vector1< std::string > | chain_sequences (char chain) |
std::map< char, utility::vector1< std::string > > | chain_sequences () |
char const & | chain (Size const res) const |
Returns the chain letter 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... | |
std::string const & | segmentID (Size const res) const |
Returns the segment ID code of residue <res> More... | |
std::string | tag (Size const res) const |
Returns a tag for residue <res> like C:1235 (or C:QA:1235 if segment ID is present) More... | |
Size | pdb2pose (char const chain, int const res, char const icode=' ', std::string const &segmentID=" ") const |
Returns the pose numbering of the pdb residue with chain letter <chain>, pdb residue <res>, and insertion code <icode> More... | |
String | pose2pdb (Size const res, std::string const &conn=" ") const |
Returns the pdb numbering string of pose residue <res> More... | |
int | num_chains () const |
Returns the total number of (chain letter) chains in the pose. 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 letter 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 | segmentID (Size const res, std::string const &segmentID) |
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=' ', std::string const &segmentID=" ", bool clear_labels=true) |
Sets the chain letter, 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 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... | |
void | clear_reslabel (Size const res, std::string const &match_label) |
Clean a specific label of a specific residue if that label contains the string. More... | |
bool | res_haslabel (Size res, std::string const &target_label) const |
uses std iterators to check if a residue has a label associated to it More... | |
void | parse_pdbinfo_labels (utility::vector1< std::string > const &lines, Pose const &pose) |
parse PDBInfo-LABEL: lines from a collection of lines More... | |
void | write_pdbinfo_labels (utility::vector1< std::string > &remark_lines) const |
write REMARK PDBInfo-LABEL: lines for output to pose 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... | |
Real const & | bfactor (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... | |
void | bfactor (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... | |
std::string | short_desc () const |
Returns a short description of the contents of the PDBInfo. The current format of this is something like "A:1-3 B:9-11". 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 letters from some char container, iterator version. More... | |
template<typename CharContainer > | |
void | set_chains (CharContainer const &c) |
Sets the residue chain letters 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... | |
template<typename StringIterator > | |
void | set_segment_ids (StringIterator const &begin, StringIterator const &end) |
template<typename StringContainer > | |
void | set_segment_ids (StringContainer const &s) |
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_atoms (utility::vector1< UnrecognizedAtomRecord > UAs) |
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 letter character specifying "empty record", currently '^'. More... | |
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::HeaderInformationOP | header_information_ |
header information More... | |
std::map< char, utility::vector1< std::string > > | chain_sequences_ |
chain sequences 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::ConformationCAP | 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 letter 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 utility::vector1< AtomRecord > core::pose::PDBInfo::AtomRecords |
typedef core::Real core::pose::PDBInfo::Real |
typedef utility::vector1< ResidueRecord > core::pose::PDBInfo::ResidueRecords |
typedef core::Size core::pose::PDBInfo::Size |
typedef std::string core::pose::PDBInfo::String |
typedef utility::VirtualBase core::pose::PDBInfo::Super |
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
core::pose::PDBInfo::PDBInfo | ( | Pose const & | pose, |
bool | init = 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(), core::init::init(), rebuild_pdb2pose(), core::pose::Pose::residue(), residue_rec_, resize_atom_records(), core::pose::PDBInfo::ResidueRecord::resSeq, and core::pose::Pose::size().
core::pose::PDBInfo::PDBInfo | ( | PDBInfo const & | info | ) |
copy constructor
|
override |
default destructor
References detach_from().
void core::pose::PDBInfo::add_reslabel | ( | Size | 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, and residue_rec_.
Referenced by parse_pdbinfo_labels().
void core::pose::PDBInfo::add_unrecognized_atoms | ( | utility::vector1< UnrecognizedAtomRecord > | UAs | ) |
remembers info about atoms not read into the pose
remembers info about all atoms not read into the pose
References num_unrecognized_atoms_, num_unrecognized_res_, unrecognized_atoms_, unrecognized_res_num2name_, and unrecognized_res_size_.
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(), natoms(), 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(), core::conformation::Conformation::get_self_weak_ptr(), on_connection_change(), on_identity_change(), and on_length_change().
Referenced by protocols::loop_grower::LoopGrower::addnativesolution(), protocols::loop_grower::LoopGrower::apply(), protocols::loop_grower::LoopPartialSolutionStore::cluster_check(), protocols::loop_grower::LoopPartialSolutionStore::filter(), protocols::loop_grower::LoopPartialSolutionStore::push(), protocols::loop_grower::LoopGrower::refine_cycle(), protocols::loop_grower::LoopGrower::rescoresolutionset(), and protocols::loop_grower::LoopGrower::update_to_stored().
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_.
Sets the temperature of the <atom_index> atom of pose residue <res> to <t>
References residue_rec_, and protocols::hybridization::t.
|
inline |
Returns the chain letter for pose residue <res>
See the documentation of Pose::num_chains() for details about chain numbers, chain letters and jumps.
example(s): pose.pdb_info().chain(3) See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_.
Referenced by protocols::loops::add_loop(), chain_sequences(), core::pose::PDBPoseMap::fill(), core::pose::fix_pdbinfo_damaged_by_insertion(), pdb2pose(), protocols::ligand_docking::ProtLigEnsemble::prepare_single_ligand_pose(), core::pose::renumber_pdbinfo_based_on_conf_chains(), short_desc(), show(), tag(), and protocols::toolbox::match_enzdes_util::EnzConstraintParameters::update_pdb_remarks().
void core::pose::PDBInfo::chain | ( | Size const | res, |
char const | chain_id | ||
) |
Sets the chain letter of pose residue <res> to <chain_id>
set chain id for residue
Returns the pdb insertion code of residue <res>
See the documentation of Pose::num_chains() for details about chain numbers, chain letters and jumps.
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_, residue_rec_, core::pose::PDBInfo::ResidueRecord::resSeq, and core::pose::PDBInfo::ResidueRecord::segmentID.
|
inline |
References chain_sequences_.
Referenced by chain_sequences().
|
inline |
References chain(), and chain_sequences_.
|
inline |
For structures deposited into the protein databank, the chain sequences stores the SEQRES records. A listing of the consecutive chemical components covalently linked in a linear fashion to form a polymer. In short, the sequence (as a vector of three letter codes) that the researcher performed the experiment on.
Note: The chain sequences information is only initialized if it is needed. Generally this requires using the -run:preserve_header options flag.
References chain_sequences(), and chain_sequences_.
|
private |
if size of residue records != passed value, fail fast
References residue_rec_.
Referenced by set_chains(), set_icodes(), set_numbering(), and set_segment_ids().
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, and residue_rec_.
void core::pose::PDBInfo::clear_reslabel | ( | Size const | res, |
std::string const & | match_label | ||
) |
Clean a specific label of a specific residue if that label contains the string.
References protocols::sparta::contains(), core::pose::PDBInfo::ResidueRecord::label, 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 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, core::pose::PDBInfo::ResidueRecord::segmentID, and protocols::loops::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_, on_connection_change(), on_identity_change(), and on_length_change().
Referenced by attach_to(), on_connection_change(), on_identity_change(), on_length_change(), and ~PDBInfo().
|
inlinestatic |
Returns the chain letter character specifying "empty record", currently '^'.
Referenced by core::pose::conf2pdb_chain(), core::pose::PDBPoseMap::insert(), core::io::pose_to_sfr::PoseToStructFileRepConverter::recalculate_new_chainIDs(), 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 residue_rec_.
Referenced by protocols::cyclic_peptide::PeptideStubMover::assign_chain_ids(), and write_pdbinfo_labels().
|
inline |
remembers info about atoms not read into the pose
References unrecognized_atoms_.
|
inline |
References unrecognized_res_num2name_.
|
inline |
References unrecognized_res_size_.
|
inline |
References header_information_.
|
inline |
References header_information_.
Referenced by header_information().
|
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_.
|
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(), core::pose::fix_pdbinfo_damaged_by_insertion(), pdb2pose(), core::pose::renumber_pdbinfo_based_on_conf_chains(), show(), and tag().
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_, residue_rec_, core::pose::PDBInfo::ResidueRecord::resSeq, and core::pose::PDBInfo::ResidueRecord::segmentID.
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::ConformationCAP 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_.
|
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 append_res(), prepend_res(), replace_res(), and 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(), short_desc(), and show().
int core::pose::PDBInfo::num_chains | ( | ) | const |
Returns the total number of (chain letter) chains in the pose.
See the documentation of Pose::num_chains() for details about chain numbers, chain letters and jumps.
example(s): pose.pdb_info().num_chains() see also: pose pose.annotated_sequence pose.fold_tree pose.num_jump pose.pdb_info().chain pose.pdb_info().pdb2pose
References protocols::loops::chainID, and residue_rec_.
|
inline |
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 protocols::loops::add_loop(), core::pose::PDBPoseMap::fill(), core::pose::fix_pdbinfo_damaged_by_insertion(), core::pose::renumber_pdbinfo_based_on_conf_chains(), short_desc(), show(), tag(), and protocols::toolbox::match_enzdes_util::EnzConstraintParameters::update_pdb_remarks().
void core::pose::PDBInfo::number | ( | Size const | res, |
int const | pdb_res | ||
) |
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_, residue_rec_, core::pose::PDBInfo::ResidueRecord::resSeq, and core::pose::PDBInfo::ResidueRecord::segmentID.
|
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 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(), core::conformation::Residue::natoms(), obsolete(), core::conformation::signals::IdentityEvent::position, 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, core::conformation::Residue::natoms(), 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 chain_sequences_, 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_.
void core::pose::PDBInfo::parse_pdbinfo_labels | ( | utility::vector1< std::string > const & | lines, |
Pose const & | pose | ||
) |
parse PDBInfo-LABEL: lines from a collection of lines
Lines not containing PDBInfo-LABEL are ignored
[in] | lines | the lines to parse |
Lines not containing PDBInfo-LABEL are ignored
[in] | lines | the lines to parse |
[in] | pose | the pose these lines belong to |
References add_reslabel(), core::pose::parse_resnum(), core::pose::Pose::size(), and core::pose::TR().
|
inline |
Returns the internally maintained PDBPoseMap.
example(s):
See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References pdb2pose_.
|
inline |
Returns the pose numbering of the pdb residue with chain letter <chain>, pdb residue <res>, and insertion code <icode>
example(s): pose.pdb_info().pdb2pose("B",5) See also: Pose PDBInfo PDBInfo.pose2pdb
References chain(), core::pose::PDBPoseMap::find(), icode(), pdb2pose_, and segmentID().
PDBInfo::String core::pose::PDBInfo::pose2pdb | ( | Size const | res, |
std::string const & | conn = " " |
||
) | 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 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(), natoms(), 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(), set_numbering(), and set_segment_ids().
|
inline |
|
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 natoms(), and 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(), and residue_rec_.
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 | ( | 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::chemical::ResidueType::natoms(), residue_rec_, core::pose::Pose::residue_type(), and core::pose::Pose::size().
void core::pose::PDBInfo::resize_atom_records | ( | Size const | n, |
bool const | zero = true |
||
) |
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 | ( | 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 PDBInfo().
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_.
|
inline |
Returns the segment ID code of residue <res>
example(s): pose.pdb_info().icode(3)
References residue_rec_.
Referenced by core::pose::PDBPoseMap::fill(), pdb2pose(), segmentID(), set_resinfo(), short_desc(), and tag().
void core::pose::PDBInfo::segmentID | ( | Size const | res, |
std::string const & | segmentID | ||
) |
Sets the insertion code of pose residue <res> to <ins_code>
Returns the pdb insertion code of residue <res>
example(s):
See also: Pose PDBInfo PDBInfo.pdb2pose PDBInfo.pose2pdb
References residue_rec_, core::pose::PDBInfo::ResidueRecord::segmentID, and segmentID().
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
See the documentation of Pose::num_chains() for details about chain numbers, chain letters and jumps.
References rebuild_pdb2pose(), and residue_rec_.
Referenced by set_chains().
|
inline |
Sets the residue chain letters from some char container, e.g. utility::vector1.
Container must have const .size(), .begin() and .end() iterator access methods.
See the documentation of Pose::num_chains() for details about chain numbers, chain letters and jumps.
References check_residue_records_size(), residue_rec_, and set_chains().
|
inline |
Sets the residue chain letters from some char container, iterator version.
See the documentation of Pose::num_chains() for details about chain numbers, chain letters and jumps.
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
|
inline |
Sets the pdb crystinfo.
References crystinfo_.
|
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 insertion codes from some char container, iterator version.
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
Referenced by set_icodes().
|
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().
|
inline |
Sets the pdb sequence residue numbering from some int container, iterator version.
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
Referenced by set_numbering().
void core::pose::PDBInfo::set_resinfo | ( | Size const | res, |
char const | chain_id, | ||
int const | pdb_res, | ||
char const | ins_code = ' ' , |
||
std::string const & | segmentID = " " , |
||
bool | clear_labels = true |
||
) |
Sets the chain letter, 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
Returns the pdb insertion code of residue <res>
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_, core::pose::PDBInfo::ResidueRecord::resSeq, core::pose::PDBInfo::ResidueRecord::segmentID, and segmentID().
Referenced by protocols::cyclic_peptide::PeptideStubMover::assign_chain_ids(), and core::pose::renumber_pdbinfo_based_on_conf_chains().
|
inline |
References check_residue_records_size(), residue_rec_, and set_segment_ids().
|
inline |
References core::sequence::end, rebuild_pdb2pose(), and residue_rec_.
Referenced by set_segment_ids().
std::string core::pose::PDBInfo::short_desc | ( | ) | const |
Returns a short description of the contents of the PDBInfo. The current format of this is something like "A:1-3 B:9-11".
example(s); pose.pdb_info().short_desc()
See Also: PDBInfo PDBInfo.show Pose.pdb_info
References chain(), nres(), number(), and segmentID().
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 protocols::comparative_modeling::features::A, chain(), core::chemical::element::I, icode(), name(), natoms(), nres(), number(), and core::conformation::membrane::out.
Referenced by core::pose::operator<<().
std::string core::pose::PDBInfo::tag | ( | Size const | res | ) | const |
Returns a tag for residue <res> like C:1235 (or C:QA:1235 if segment ID is present)
example(s): pose.pdb_info().icode(3)
tag of <chain>[:<segid]:<number>[<icode>] that is useful for output, like make_tag_with_dashes() in string_util.hh Kind of like pose2pdb but can carry more information, and no spaces. TODO: where to put icode?
References chain(), icode(), number(), and segmentID().
Referenced by modeltag().
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 protocols::match::BfactorMPM::get_ca_bfactors().
|
inline |
Sets the temperature of the <atom_index> atom of pose residue <res> to <t>
References residue_rec_, and protocols::hybridization::t.
void core::pose::PDBInfo::tighten_memory | ( | ) |
void core::pose::PDBInfo::write_pdbinfo_labels | ( | utility::vector1< std::string > & | remark_lines | ) | const |
write REMARK PDBInfo-LABEL: lines for output to pose
[out] | remark_lines | the output container |
References get_reslabels(), core::chemical::element::I, core::conformation::membrane::out, and residue_rec_.
|
private |
chain sequences
Referenced by chain_sequences(), and operator=().
|
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_atoms(), get_num_unrecognized_atoms(), and operator=().
|
private |
Referenced by add_unrecognized_atoms(), 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(), bfactor(), chain(), check_residue_records_size(), clear_reslabel(), copy(), delete_res(), get_reslabels(), icode(), is_het(), natoms(), nres(), num_chains(), number(), occupancy(), operator=(), PDBInfo(), pose2pdb(), prepend_res(), replace_res(), replace_res_remap_bfactors(), res_haslabel(), resize_atom_records(), resize_residue_records(), segmentID(), set_chains(), set_icodes(), set_numbering(), set_resinfo(), set_segment_ids(), temperature(), tighten_memory(), and write_pdbinfo_labels().
|
private |
information about unrecognized residues
Referenced by add_unrecognized_atoms(), get_unrecognized_atoms(), and operator=().
|
private |
Referenced by add_unrecognized_atoms(), get_unrecognized_res_name(), and operator=().
|
private |
Referenced by add_unrecognized_atoms(), get_unrecognized_res_size(), and operator=().