#include <builder.hh>
Inherited by HeuristicBuilder, and RuleBasedBuilder.
A builder serves several purposes:
Custom builders can be registered with Conopology::RegisterBuilder(). The default builder is set with Conopology::SetDefaultBuilder(). Since all entity loaders make use of the default builder to infer connectivity of the atoms, changing the default builder can largely affect the loading behaviour.
Definition at line 50 of file builder.hh.
| virtual ~Builder | ( | ) | [virtual] |
| static bool AreResiduesConsecutive | ( | const mol::ResidueHandle & | r1, | |
| const mol::ResidueHandle & | r2 | |||
| ) | [static] |
whether the r1 and r2 have consecutive residue numbers
| void AssignBackBoneTorsionsToResidue | ( | const mol::ResidueHandle & | res | ) |
assign Backbone torsions to single residue
| virtual void AssignTorsions | ( | const mol::ChainHandle & | ch | ) | [virtual] |
| virtual void AssignTorsionsToResidue | ( | const mol::ResidueHandle & | residue | ) | [virtual] |
| virtual void CheckResidueCompleteness | ( | const mol::ResidueHandle & | rh | ) | [virtual] |
verify that the given residue has all atoms it is supposed to have based on its key
Reimplemented in RuleBasedBuilder.
| virtual void CompleteAtoms | ( | const mol::ResidueHandle & | rh | ) | [virtual] |
add any missing atoms to the residue based on its key, with coordinates set to zero
Reimplemented in RuleBasedBuilder.
| virtual void ConnectAtomsOfResidue | ( | const mol::ResidueHandle & | rh | ) | [virtual] |
connect atoms of one residue
Connects atoms of residue based on residue and atom name. This method does not establish inter-residue bonds. To connect atoms that belong to different residues, use ConnectResidueToPrev(), or ConnectResidueToNext().
Reimplemented in HeuristicBuilder, and RuleBasedBuilder.
| virtual void ConnectResidueToNext | ( | const mol::ResidueHandle & | rh, | |
| const mol::ResidueHandle & | next | |||
| ) | [virtual] |
| virtual void ConnectResidueToPrev | ( | const mol::ResidueHandle & | rh, | |
| const mol::ResidueHandle & | prev | |||
| ) | [virtual] |
connect atoms of residue to previous
The order of the parameters is important. In case of a polypeptide chain, the residues are thought to be ordered from N- to C- terminus.
Reimplemented in HeuristicBuilder.
| void DistanceBasedConnect | ( | const mol::AtomHandle & | atom | ) |
|brief Connect atom with all atoms for whith IsBondFeasible() and AreResiduesConsecutive() returns true
| virtual bool DoesPeptideBondExist | ( | const mol::AtomHandle & | n, | |
| const mol::AtomHandle & | c | |||
| ) | [virtual] |
Check if peptide bond is formed between the two atoms.
This method is called by ConnectResidueWithNext() after making sure that both residues participating in the peptide bond are peptide linking components.
By default, IsBondFeasible() is used to check whether the two atoms form a peptide bond.
| virtual void FillAtomProps | ( | mol::AtomHandle | atom | ) | [virtual] |
Reimplemented in HeuristicBuilder, and RuleBasedBuilder.
| virtual void FillResidueProps | ( | mol::ResidueHandle | residue | ) | [virtual] |
Assign (correct) residue properties.
Assign chemical class of the residue and one letter code.
Reimplemented in HeuristicBuilder, and RuleBasedBuilder.
guess element of atom based on name and hetatm flag
| virtual mol::ResidueKey IdentifyResidue | ( | const mol::ResidueHandle & | rh | ) | [virtual] |
attempt to identify the residue based on its atoms, and return a suggestion for the proper residue key
Reimplemented in RuleBasedBuilder.
| virtual bool IsBondFeasible | ( | const mol::AtomHandle & | atom_a, | |
| const mol::AtomHandle & | atom_b | |||
| ) | [virtual] |
Overloadable hook to check if bond between to atoms is feasible.
The default implementation uses a distance-based check to check if the two atoms should be connected. The atoms are connected if they are in the range of 0.8 to 1.2 times their van-der-WAALS radius.
| virtual bool IsResidueComplete | ( | const mol::ResidueHandle & | rh | ) | [virtual] |
Check whether the residue has all atoms it is supposed to have.
Reimplemented in HeuristicBuilder, and RuleBasedBuilder.
1.5.8