Skip to content

computeCellDistance on large dataset costs too much memory #437

@wuFYaq

Description

@wuFYaq

Firstly thanks for the great tool!

We were running cellchat on cellbin level stereo-seq data (one cell per spot 349,316 cells). The computeCellDistance seems cost too much memory over 1TB with following code, and caused out of memory errors.

spatial.locs = Seurat::GetTissueCoordinates(obj, scale = NULL, cols = c("imagerow", "imagecol"))
spatial.locs = spatial.locs/2
d.spatial <- computeCellDistance(coordinates = spatial.locs, 
             ratio = 1, 
             tol = 10)

Could you please check this error? We can supply test coordinate data.

Much thanks,
F.Y

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