-
Notifications
You must be signed in to change notification settings - Fork 4
Spatial Clustering analyses
Explore Spatial Clustering in Track Data with CellTracksColab: This Colab Notebook is designed to analyze spatial clustering in your track data. Please ensure your data is loaded in the CellTracksColab format for the best results.
Spatial analysis in this notebook focuses on specific moments or characteristics within each track, revealing unique aspects of spatial distribution in the field of view (FOV).
This interactive tool allows for comparing and selecting the most suitable analysis point within each track for spatial analysis. Options include:
- "beginning": The initial position of each track.
- "end": The final position of each track.
- "middle": The middle position of each track.
- "average": The average position of all points within each track.
- "median": The median position of all points within each track.
- Analysis Options: Select the point for analysis (beginning, end, middle, average, median).
-
r_values Range:
- Start Value: The minimum distance for "r".
- End Value: The maximum distance for "r".
- Number of Points: The number of steps between the start and end values.
- Purpose: To assess the significance of spatial patterns using Monte Carlo simulations.
- Number of Simulations (Nb_simulation): Define the number of simulations for each FOV for statistical confidence.
- Plot Results for Each FOV: Visualize the outcomes of Ripley's L function.
- Choose a Specific Radius and Plot Results: Focus analysis on a particular spatial scale.
- Comparison of Ripley's L Values Across Conditions: Examine differences across experimental conditions.
- Plot the Analysis Point for Each FOV: Gain deeper insights by visualizing the selected analysis points.
Ripley's L function is derived from Ripley's K Function.
Ripley's K function, a vital tool in spatial analysis, elucidates clustering or dispersion patterns of points in a two-dimensional space.
- K_r = ripley_k(points, r, area)
-
points
: The coordinates of the points in the dataset. -
r
: The radius within which to count point pairs. -
area
: The total area of the region being analyzed.
-
- Greater than Expected: Implies clustering within radius 'r'.
- Less than Expected: Indicates dispersion.
- Negative Values: Could signal calculation errors or data issues.
- Transformation: Stabilizes variance across different 'r' values.
-
Calculation:
L_r = sqrt(K_r / pi) - r
.
- Near Zero: Implies a random spatial pattern.
- Positive: Suggests clustering.
- Negative: Indicates dispersion.
- Critical Parameter: Represents the distance threshold for point pairs.
- Influential Choice: Significantly impacts spatial pattern interpretation.
- Analysis of Range: Typically, a range of 'r' values is examined to understand spatial patterns at various scales.
Utilizing Ripley's K and L functions in CellTracksColab provides valuable insights into the spatial arrangements and interactions of points, making it indispensable for spatial analysis in cell tracking and related fields.