Compute
Field of points properties
get_fop_inputs(atoms_frame, pocket_selection, subpex_config, *args, **kwargs)
¶
Generates a dictionary of inputs for field of points (FoP) calculations.
This function selects atoms from the provided MDAnalysis AtomGroup according to the given pocket selection string and the Subpex configuration. It returns a dictionary containing the positions of protein atoms, pocket C-alpha atoms, pocket radius, resolution, and pocket center.
PARAMETER | DESCRIPTION |
---|---|
atoms_frame |
An MDAnalysis AtomGroup object containing the atoms of the molecular structure.
TYPE:
|
pocket_selection |
A string specifying the selection criteria for pocket atoms. This string should follow the MDAnalysis selection syntax.
TYPE:
|
subpex_config |
The Subpex configuration object containing parameters for pocket radius, resolution, and center.
TYPE:
|
*args |
Additional positional arguments.
TYPE:
|
**kwargs |
Additional keyword arguments.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
MutableMapping[str, Any]
|
A dictionary with the following keys:
|
RAISES | DESCRIPTION |
---|---|
ValueError
|
If the pocket selection string is |
get_fop_volume(fop, resolution, *args, **kwargs)
¶
Computes the volume of a field of points (FoP) based on the given resolution.
This function calculates the volume occupied by a field of points by assuming that each point occupies a cubic space defined by the resolution.
PARAMETER | DESCRIPTION |
---|---|
fop |
A sequence of sequences containing XYZ coordinates for each point. |
resolution |
The resolution of the field of points in Angstroms.
TYPE:
|
*args |
Additional positional arguments.
TYPE:
|
**kwargs |
Additional keyword arguments.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
The volume of the field of points as a float. |