Sails::Topology
class Sails::Topology
Class for finding glycan topology in a structure.
The Topology class is responsible for finding the glycan topology in a given structure by using a provided residue database and looking for donor-acceptor atoms within a specified residue.
@constructor Topology
Parameters
structureThe structure to searchdatabaseThe residue database which contains information about expected atom donors and acceptors.
Summary
Members | Descriptions |
|---|---|
| |
| |
| Find the glycan topology in a given glycosite. |
| |
| Get the structure object. |
| |
| |
| |
| |
| Find nearby residue near a donor atom. |
Members
publicTopology() = default
publicTopology(gemmi::Structure * structure, Sails::ResidueDatabase & database)
publicGlycanfind_glycan_topology(Sails::Glycosite& glycosite)
Find the glycan topology in a given glycosite.
This method is responsible for finding the glycan topology in a given glycosite by using a provided structure and residue database. It iterates through each residue in the glycosite and checks for close donor-acceptor atom pairs.
Parameters
glycositeThe glycosite to search in
Returns
The glycan topology found in the glycosite
public inline voidset_structure(gemmi::Structure * structure)
public inline gemmi::Structureget_structure() const
Get the structure object.
This method returns the internal structure object.
Returns
The gemmi::Structure object.
private gemmi::Structure *m_structure
private ResidueDatabasem_database
private gemmi::NeighborSearchm_neighbor_search
private voidinitialise_neighbour_search(gemmi::Structure * structure)
private voidfind_residue_near_donor(Sails::Glycosite& glycosite,Sails::Glycan& glycan, std::queue<Glycosite> & queue)
Find nearby residue near a donor atom.
This method finds nearby residues for a given donor atom in a glycosite. It adds the found residues to the glycan and adds the corresponding linkages to the glycan as well.
Parameters
glycositeThe glycosite containing the donor atom.glycanThe glycan to add the found residues and linkages to.queueThe queue to store the found glycosites for further processing.
Exceptions
std::runtime_errorIf the glycosite is not found in the database.