qp.cluster.spheres_bad¶
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. |
|
Computes the total charge of coordinating AAs |
|
Counts the frequency of coordinating residues |
|
Extract active site coordination spheres. |
|
Fill dummy atoms in a point cloud |
|
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 |
|
Plot a 2D Voronoi diagram from the atomic coordinates. |
|
Plot a 3D Voronoi diagram from the atomic coordinates, excluding dummy atoms. |
|
Prune residues from the cluster model to meet the max atom count constraint, while keeping specified ligands and co-factors. |
|
Replaces an atom with hydrogen, rescaling the original bond length |
|
Computes the Voronoi tessellation of a protein structure. |
|
Write coordination sphere to PDB file. |