RNAMake
|
#include <residue.h>
Public Member Functions | |
Residue (ResidueType const &rtype, String const &name, int const &num, String const &chain_id, String const &i_code) | |
Residue (Residue const &r) | |
Residue (String const &s, ResidueTypeSet const &rts) | |
~Residue () | |
void | setup_atoms (AtomOPs &) |
AtomOP const & | get_atom (String const &name) const |
int | connected_to (Residue const &res, float cutoff=3.0) const |
void | new_uuid () |
Beads | get_beads () const |
String | to_str () const |
String | to_pdb_str (int &acount) |
String | to_pdb_str (int &, int, String const &) const |
void | to_pdb (String const) |
bool | operator== (const Residue &r) const |
void | num (int nnum) |
void | chain_id (String const &nchain_id) |
void | uuid (Uuid const &uuid) |
String const & | name () const |
String const & | chain_id () const |
String const & | i_code () const |
int const & | num () const |
String const & | short_name () const |
AtomOPs const & | atoms () const |
Uuid const & | uuid () const |
Store residue information from pdb file, stores all Atom objects that belong to residue. Implementation is designed to be extremely lightweight.
To get an example instance of Residue please include:
#include "instances/structure_instances.hpp"
Example of Common Usage:
|
inline |
Standard constructor for Bead object.
rtype | residue type, dictates residue topology and information |
name | name of residue i.e. "GUA", "CYT", etc |
num | residue num |
chain_id | the id of the chain i.e. "A", "B", only one character |
i_code | residue insertion code, usually nothing ("") |
|
inline |
Copy constructor
r | Residue object copying from |
|
inline |
|
inline |
Empty deconstructor
|
inline |
getter for the internal atom vector
|
inline |
setter for nchain id
chain_id | new chain id |
|
inline |
getter the chain_id
|
inline |
Determine if another residue is connected to this residue, returns 0 if res is not connected to self, returns 1 if connection is going from 5' to 3' and returns -1 if connection is going from 3' to 5'
res | another residue |
cutoff | distance to be considered connected, default: 3 Angstroms |
|
inline |
get atom object by its name
name | name of atom |
examples:
Beads Residue::get_beads | ( | ) | const |
Generates steric beads required for checking for steric clashes between motifs. Each residues has three beads modeled after the typical three bead models used in coarse grain modeling. The three beads are:
|
inline |
getter for the residue insertion code
|
inline |
getter for the name of the residue, i.e. "A", "G" etc
|
inline |
give residue a new unique indentifier code. There is probably no reason why you should call this unless writing a new, motif structure.
|
inline |
setter for residue num
nnum | new residue num |
|
inline |
getter for the residue num
|
inline |
equal operator checks whether the unique indentifier is the same
r | another residue to check if its the same |
void Residue::setup_atoms | ( | AtomOPs & | atoms | ) |
put atoms in correct positon in internal atom list, also corrects some named atom names to their correct name
atoms | list of atom objects that are to be part of this residue |
|
inline |
getter for the one letter residue type
void Residue::to_pdb | ( | String const | fname | ) |
writes a PDB string formmated verision of this Residue object to file
filename | of output PDB file |
|
inline |
wrapper for to_pdb_str(int &, int, String const &) when one does not care about renumbering atoms and residue
String Residue::to_pdb_str | ( | int & | acount, |
int | rnum, | ||
String const & | chain_id | ||
) | const |
returns pdb formatted string of residue's coordinate information
acount | current atom index, default: 1 |
rnum | starting residue number |
chain_id | the chain id of the chain, i.e. "A", "B" etc #include "instances/structure_instances.hpp"
auto r = instances::residue();
//get PDB formatted String (can also write to file with r->to_pdb("test.pdb") )
std::cout << r->to_pdb_str() << std::endl; //OUTPUT -->
ATOM 1 O5' G A 103 -26.469 -47.756 84.669 1.00 0.00
ATOM 2 C5' G A 103 -25.050 -47.579 84.775 1.00 0.00
ATOM 3 C4' G A 103 -24.521 -48.156 86.068 1.00 0.00
ATOM 4 O4' G A 103 -24.861 -49.568 86.118 1.00 0.00
ATOM 5 C3' G A 103 -23.009 -48.119 86.281 1.00 0.00
ATOM 6 O3' G A 103 -22.548 -46.872 86.808 1.00 0.00
.
.
.
|
String Residue::to_str | ( | ) | const |
stringifes residue object
|
inline |
setter for the residue unique indentifier, do not do this without really knowing what you are doing
uuid | new residue unique indentifier |
|
inline |
getter for residue unique indentifier