Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
A class representing a molecular system. More...
#include <Molecular_system.h>
Public Member Functions | |
Molecular_system (int index, std::string name="no_name") | |
Constructs a Molecular_system object. More... | |
bool | has_no_model () const |
Check if the Molecular_system has at least a model or none. More... | |
bool | has_model (int i) const |
Check if the Molecular_system has a model with the specified index. More... | |
size_t | number_of_models () const |
Get the number of models in the Molecular_system. More... | |
const std::string & | name () const |
Get the value of name *. More... | |
std::string & | name () |
Set the value of name *. More... | |
const int & | index () const |
Get the value of index *. More... | |
int & | index () |
Set the value of index *. More... | |
const char & | alternate_location () const |
Get the value of alternate_location *. More... | |
char & | alternate_location () |
Set the value of alternate_location *. More... | |
Model & | get_or_create_model (int i) |
Get or create a model with the specified index. If the model does not exist, it will be created empty and added to the Molecular_system. More... | |
Model & | get_model (int i) |
Get the model with the specified index. More... | |
const Model & | get_model (int i) const |
Get the model with the specified index (const version). More... | |
Secondary_structure_element & | add_secondary_structure_element (const Secondary_structure_element &sse) |
Add a Secondary_structure_element to the Molecular_system. The Secondary_structure_element can be a helix or a sheet. SSE are added per system since they are independent from the NMR model. However, it should be accessible from the Molecular_chain. More... | |
void | add_ss_bond (SS_bond ss_bond) |
Adds an SS_bond (Disulfide bond) to the system. More... | |
const Model_container & | models () const |
Returns a const reference to the model container. More... | |
Model_container & | models () |
Returns a reference to the model container. More... | |
unsigned | number_of_ss_bonds (void) const |
Returns the number of SS_bond (Disulfide bond) in the system. More... | |
const std::list< SS_bond > & | get_ss_bonds (void) const |
Returns the container of SS_bond (Disulfide bond) More... | |
Chain & | get_chain_from_sheet_identifier (const std::string &id) |
Returns a reference to the Chain associated with the given sheet identifier. More... | |
const Chain & | get_chain_from_sheet_identifier (const std::string &id) const |
Returns a const reference to the Chain associated with the given sheet identifier. More... | |
Models_iterator | models_begin () |
Get an iterator pointing to the beginning of the models in the Molecular_system. More... | |
Models_iterator | models_end () |
Get an iterator pointing to the end of the models in the Molecular_system. More... | |
Models_const_iterator | models_begin () const |
Get a const iterator pointing to the beginning of the models in the Molecular_system. More... | |
Models_const_iterator | models_end () const |
Get a const iterator pointing to the end of the models in the Molecular_system. More... | |
A class representing a molecular system.
Items | The class that provides the type definitions for different components of the molecular system |
Point | A point type with coordinates and const access methods x(), y(), and z() |
|
inline |
Constructs a Molecular_system object.
index | The index of the molecular system. |
name | (Optional) The name of the molecular system. Defaults to "no_name" if not provided. |
|
inline |
Add a Secondary_structure_element to the Molecular_system. The Secondary_structure_element can be a helix or a sheet. SSE are added per system since they are independent from the NMR model. However, it should be accessible from the Molecular_chain.
sse | The Secondary_structure_element to add. |
|
inline |
Adds an SS_bond (Disulfide bond) to the system.
ss_bond | The SS_bond (Disulfide bond) to add. |
|
inline |
Set the value of alternate_location *.
*
value | The new value of alternate_location |
|
inline |
Get the value of alternate_location *.
|
inline |
Returns a reference to the Chain associated with the given sheet identifier.
id | The identifier of the sheet. |
|
inline |
Returns a const reference to the Chain associated with the given sheet identifier.
id | The identifier of the sheet. |
|
inline |
Get the model with the specified index.
i | The index of the model to retrieve. |
std::runtime_error | If the model with the specified index does not exist. |
|
inline |
Get the model with the specified index (const version).
i | The index of the model to retrieve. |
std::runtime_error | If the model with the specified index does not exist. |
|
inline |
Get or create a model with the specified index. If the model does not exist, it will be created empty and added to the Molecular_system.
i | The index of the model. |
|
inline |
Returns the container of SS_bond (Disulfide bond)
|
inline |
Check if the Molecular_system has a model with the specified index.
i | The index of the model to check. |
|
inline |
Check if the Molecular_system has at least a model or none.
|
inline |
Set the value of index *.
*
value | The new value of index |
|
inline |
Get the value of index *.
|
inline |
Returns a reference to the model container.
|
inline |
Returns a const reference to the model container.
To retrieve the Molecular_model with smallest id of a Molecular_system object auto& model = (molecular_system->models().begin())->second;
|
inline |
Get an iterator pointing to the beginning of the models in the Molecular_system.
|
inline |
Get a const iterator pointing to the beginning of the models in the Molecular_system.
|
inline |
Get an iterator pointing to the end of the models in the Molecular_system.
|
inline |
Get a const iterator pointing to the end of the models in the Molecular_system.
|
inline |
Set the value of name *.
*
value | The new value of name |
|
inline |
Get the value of name *.
|
inline |
Get the number of models in the Molecular_system.
|
inline |
Returns the number of SS_bond (Disulfide bond) in the system.