DNA Curvature Modules
Module for calculating curvature statistics.
Curvature
Class for determining the curvature of molecules.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
molecule_coordinates
|
ndarray
|
Coordinates of the simplified splined trace of a molecule. These are returned by dnaTracing. |
required |
circular
|
bool
|
Whether the image is circular or not. |
required |
Source code in topostats\tracing\dnacurvature.py
__init__(molecule_coordinates: np.ndarray, circular: bool)
Initialise the class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
molecule_coordinates
|
ndarray
|
Coordinates of the simplified splined trace of a molecule. These are returned by dnaTracing. |
required |
circular
|
bool
|
Whether the image is circular or not. |
required |
Source code in topostats\tracing\dnacurvature.py
calculate_derivatives(edge_order: int = 1) -> None
Find the curvature for an individual molecule.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
edge_order
|
int
|
Gradient is passed to numpy.gradient and Gradient is calculated using N-th order accurate differences at boundaries. Also used to expand the array by the necessary number of coordinates at either end to form a loop for the calculations. |
1
|