qp.cluster.spheres¶
Extract active site coordination sphere clusters
Usage:
>>> from qp.cluster import spheres
>>> spheres.extract_clusters(
... "path/to/PDB.pdb",
... "path/to/out/dir/",
... center_residues=["FE", "FE2"], # List of resnames of the residues to use as the cluster center
... sphere_count=2, # Number of spheres to extract
... ligands=["AKG"] # PDB IDs of additional ligands
... )
Extracting clusters leaves open valences in the outermost sphere. Capping may be
performed by specifying capping in spheres.extract_clusters:
No capping. (Default)
Cap with hydrogens.
Cap with ACE/NME groups.
Functions
Compute the threshold for the boxplot outlier detection method |
|
Cap with ACE/NME, building based on the upstream or downstream residue |
|
Cap with hydrogen, building based on the upstream or downstream residue |
|
Calculate the Euclidean distance between two points |
|
Cap chain breaks for a set of extracted residues |
|
Check if a nitrogen / carbon atom in the first sphere is coordinated. |
|
Check whether a backbone atom already has sufficient bonded neighbors. |
|
Detect whether a cysteine residue is involved in a disulfide bond. |
|
Ensure that partially included oligomeric ligands are fully added. |
|
Computes the total charge of coordinating AAs |
|
Counts the frequency of coordinating residues |
|
Extract active site coordination spheres using Voronoi tessellation. |
|
Fill dummy atoms in a point cloud |
|
General plotting parameters for the Kulik Lab. |
|
Find all center residues in a model and optionally merge nearby ones. |
|
Compute the grid's parameter for a given 1D point list |
|
Compute a point's position in a 1D grid |
|
Iteratively determines spheres around a given starting atom |
|
Return the unit vector pointing from |
|
Format a residue as a |
|
Recursively merge center residues that are within a distance cutoff. |
|
Plot a 2D Voronoi diagram from the atomic coordinates, excluding unbounded vertices and filtering by x and y thresholds. |
|
Prune residues from the cluster to meet the max atom count constraint. |
|
Check whether a residue matches any key in the ligand charge dictionary. |
|
Replaces an atom with hydrogen, rescaling the original bond length |
|
Write dummy atom positions to an XYZ file for debugging. |
|
Compute the Voronoi tessellation of a protein structure. |
|
Write coordination sphere to PDB file. |
Classes