Skip to content

Memory optimization for "DD matrix" calculation on large-scale data #4

@Zhihong-Lin

Description

@Zhihong-Lin

Hi, Thank you for developing this useful tool!

I encountered a memory overflow issue when calculating the "DD matrix" for a large imaging-based ST dataset (5 slices, ~1.8M cells). To reduce memory consumption, I would like to ask if it would be appropriate to perform the following workflow:

  1. Run spatial domain detection individually per slice,
  2. Compute the centroid of SPACE for each detected spatial domain (as described in the "Spatial domain annotation with spatial reference" section in SpaDo paper ),
  3. Calculate the "DD matrix" only between these centroids to identify similar spatial domains across slices?

Would this approach align with SpaDo's methodological rationale, or does the original algorithm inherently require cross-slice information during spatial domain detection/DD matrix computation?

Thank you for your insights!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions