![]() |
Rosetta Protocols
2014.35
|
#include <ResonanceList.hh>
Public Types | |
typedef utility::vector1 < ResonanceOP > | Resonances |
typedef ResonanceIDs::const_iterator | const_iterator |
iterators More... | |
Public Member Functions | |
ResonanceList (std::string const &sequence) | |
Constructor. More... | |
virtual | ~ResonanceList () |
void | read_from_stream (std::istream &) |
read chemical shift assignments More... | |
void | write_to_stream (std::ostream &) const |
write chemical shift assignments More... | |
void | write_talos_format (std::ostream &, bool backbone_only) const |
write in talos format More... | |
Resonance const & | operator[] (core::Size key) const |
retrieve a Resonance by ResonanceID — throws EXCN_UnknonwResonance if atom not found More... | |
Resonance const & | operator[] (core::id::NamedAtomID const &) const |
retrive a Resonance by atom — throws EXCN_UnknonwResonance if atom not found More... | |
Resonances const & | resonances_at_residue (core::Size resid) const |
all resonances of a certain residue More... | |
const_iterator | begin () const |
const_iterator | end () const |
bool | has_residue (core::Size resi) const |
have at least one resonance for residue "resi" More... | |
core::chemical::AA | aa_from_resid (core::Size resi) const |
retrieve aminoacid of residue "resi" More... | |
std::string const & | sequence () const |
retrieve the protein sequence More... | |
core::Size | size () const |
number of Resonances More... | |
core::Size | start_key () const |
first ResonanceID (given by input file) More... | |
core::Size | last_key () const |
last ResonanceID ( given by input file ) More... | |
Protected Member Functions | |
Resonance const & | operator[] (core::Size key) |
retrieve a Resonance by ResonanceID — no error checking More... | |
void | update_residue_map () |
sort Resonances by residue number and store in by_resid_ More... | |
void | update_bond_connections () |
after this call the Proton- and LabelResonances have APs to point to their respectively connected resonance More... | |
Private Types | |
typedef std::map< core::Size, Resonances > | ResidueMap |
typedef std::map< core::Size, ResonanceOP > | ResonanceIDs |
Private Member Functions | |
ResonanceList (ResonanceList const &a) | |
ResonanceList & | operator= (ResonanceList const &) |
Private Attributes | |
ResonanceIDs | map_ |
master map... More... | |
ResidueMap | by_resid_ |
slave map... created by update_residue_map() More... | |
std::string | sequence_ |
sequence of the proteion More... | |
: the ResonanceList provides a map of chemical shifts. each atom-chemical shift tupel has a "resonanceID" as a key. (integer)
used classes:
Resonance is an atom with chemical shift information ResonanceIDs (typedef) is a map from ID to Resonance ResidueMap (typedef) is a map from residue number to a vector of Resonances.
typedef ResonanceIDs::const_iterator protocols::noesy_assign::ResonanceList::const_iterator |
iterators
|
private |
|
private |
|
inlineprivate |
protocols::noesy_assign::ResonanceList::ResonanceList | ( | std::string const & | sequence | ) |
Constructor.
|
virtual |
core::chemical::AA protocols::noesy_assign::ResonanceList::aa_from_resid | ( | core::Size | resi | ) | const |
retrieve aminoacid of residue "resi"
translate sequence information into AA
References core::chemical::aa_from_oneletter_code(), runtime_assert, and sequence_.
Referenced by read_from_stream(), update_bond_connections(), protocols::noesy_assign::PeakFileFormat_xpk::write_assignment(), protocols::noesy_assign::PeakFileFormat_Sparky::write_assignment(), write_talos_format(), and write_to_stream().
|
inline |
References map_.
Referenced by protocols::noesy_assign::PeakAssignmentResidueMap::add_all_atoms(), and update_bond_connections().
|
inline |
bool protocols::noesy_assign::ResonanceList::has_residue | ( | core::Size | resi | ) | const |
have at least one resonance for residue "resi"
References by_resid_.
|
inline |
last ResonanceID ( given by input file )
References map_.
|
inlineprivate |
Resonance const & protocols::noesy_assign::ResonanceList::operator[] | ( | core::Size | key | ) | const |
Resonance const & protocols::noesy_assign::ResonanceList::operator[] | ( | core::id::NamedAtomID const & | atom | ) | const |
retrive a Resonance by atom — throws EXCN_UnknonwResonance if atom not found
retrieve Resonance — throws EXCN_UnknonwResonance if atom not found
References by_resid_, map_, and core::id::NamedAtomID::rsd().
|
inlineprotected |
void protocols::noesy_assign::ResonanceList::read_from_stream | ( | std::istream & | is | ) |
read chemical shift assignments
References aa_ala, aa_from_name(), aa_from_oneletter_code(), aa_from_resid(), aa_gly, aa_ile, aa_leu, aa_thr, aa_val, protocols::noesy_assign::PeakAssignmentParameters::get_instance(), getline(), protocols::noesy_assign::PeakAssignmentParameters::ignore_resonancefile_intensities_, protocols::noesy_assign::PeakAssignmentParameters::ignore_resonancefile_tolerances_, map_, name_from_aa(), oneletter_code_from_aa(), params, parse_NMR_name(), core::scoring::constraints::parse_NMR_name(), protocols::noesy_assign::process_last_resonances(), runtime_assert, sequence_, utility::string2int(), protocols::noesy_assign::tr, update_bond_connections(), and update_residue_map().
ResonanceList::Resonances const & protocols::noesy_assign::ResonanceList::resonances_at_residue | ( | core::Size | resid | ) | const |
all resonances of a certain residue
retrieve list of Resonance at certain residue — throws EXCN_UnknonwResonance if residue number not found
— requires that update_residue_map() has been called (which is done by read_from_stream() )
References by_resid_.
|
inline |
retrieve the protein sequence
References sequence_.
|
inline |
number of Resonances
References map_.
|
inline |
first ResonanceID (given by input file)
References map_.
|
protected |
after this call the Proton- and LabelResonances have APs to point to their respectively connected resonance
References aa_from_resid(), protocols::noesy_assign::EXCN_UnknownResonance::atom(), begin(), end(), protocols::noesy_assign::Resonance::label(), protocols::noesy_assign::label_atom_name(), map_, protocols::noesy_assign::EXCN_UnknownResonance::show(), protocols::noesy_assign::tr, tr_labels, and utility_exit_with_message.
Referenced by read_from_stream().
|
protected |
sort Resonances by residue number and store in by_resid_
create map with all resonances sorted by residue number
References by_resid_, map_, and runtime_assert.
Referenced by read_from_stream().
void protocols::noesy_assign::ResonanceList::write_talos_format | ( | std::ostream & | os, |
bool | backbone_only | ||
) | const |
write in talos format
write ResonanceList in TALOS format
References aa_from_resid(), map_, oneletter_code_from_aa(), runtime_assert, sequence_, protocols::noesy_assign::tr, and utility_exit_with_message.
void protocols::noesy_assign::ResonanceList::write_to_stream | ( | std::ostream & | os | ) | const |
write chemical shift assignments
write ResonanceList to stream
References aa_from_resid(), map_, runtime_assert, and sequence_.
|
private |
slave map... created by update_residue_map()
Referenced by has_residue(), operator[](), resonances_at_residue(), and update_residue_map().
|
private |
master map...
Referenced by begin(), end(), last_key(), operator[](), read_from_stream(), size(), start_key(), update_bond_connections(), update_residue_map(), write_talos_format(), and write_to_stream().
|
private |
sequence of the proteion
Referenced by aa_from_resid(), read_from_stream(), sequence(), write_talos_format(), and write_to_stream().