This PR started with me realizing that so far I have only allowed anchor residue definitions by residue PDB IDs but not by residue KLIFS IDs (which is needed for e.g. the kissim module).
Then this PR evolved into a bigger refactoring, where the methods of the classes Subpocket and AnchorResidue are moved to Pocket, since only Pocket contains the full atomic data, which is needed to calculate anchor residues and subpockets. Subpocket and AnchorResidue mainly contain attributes and properties (but no methods).
Todos
[x] Move AnchorResidue to its own anchor module
[x] Move methods from Subpocket and AnchorResidue to Pocket
[x] Allow anchor residue calculation from residue PDB and KLIFS ID
[x] Move Pocket.visualize method to its own class Viewer in module viewer to allow visualization of multiple pockets at once
[x] Update unit tests; almost done - missing: Pocket.centroid/subpockets/regions/anchor_residues
Description
This PR started with me realizing that so far I have only allowed anchor residue definitions by residue PDB IDs but not by residue KLIFS IDs (which is needed for e.g. the
kissim
module).Then this PR evolved into a bigger refactoring, where the methods of the classes
Subpocket
andAnchorResidue
are moved toPocket
, since onlyPocket
contains the full atomic data, which is needed to calculate anchor residues and subpockets.Subpocket
andAnchorResidue
mainly contain attributes and properties (but no methods).Todos
AnchorResidue
to its ownanchor
moduleSubpocket
andAnchorResidue
toPocket
Pocket.visualize
method to its own classViewer
in moduleviewer
to allow visualization of multiple pockets at oncePocket.centroid/subpockets/regions/anchor_residues
Region
classQuestions
None.
Status