SpatialQuery.spatial_query.find_fp_dist

spatial_query.find_fp_dist(ct, max_dist=20, min_size=0, min_support=0.5)[source]

Find frequent patterns within the radius of certain cell type.

Parameters:
  • ct (str) – Cell type name.

  • max_dist (float, default=20) – Maximum distance for considering a cell as a neighbor.

  • min_size (int, default=0) – Minimum neighborhood size for each point to consider.

  • min_support (float, default=0.5) – Threshold of frequency to consider a pattern as a frequent pattern.

Returns:

Frequent patterns in the neighborhood of certain cell type.

Return type:

pd.DataFrame