drieslab / Giotto

Spatial omics analysis toolbox
https://drieslab.github.io/Giotto_website/
Other
240 stars 94 forks source link

Error in overlapToMatrix #924

Open TengyuZz opened 3 months ago

TengyuZz commented 3 months ago

Describe the Error

When I running the CosMx data by applying Giotto, in the step overlapToMatrix I always get error message, however I can successfully run it before.

Error Message

gobj <- overlapToMatrix(gobj, feat_info = 'rna') Error in aggr_dtoverlap[["feat_ID"]][[1]] : subscript out of bounds

My codes gobj <- createGiottoObjectSubcellular(gpolygons = list("cell" = polygon_coord), gpoints = list("rna" = tx_coord), polygon_dfr_list_params = list(calc_centroids = FALSE, verbose = TRUE), instructions = instrs)

gobj <- addSpatialCentroidLocations(gobj,poly_info = "cell") gobj <- calculateOverlapRaster(gobj, feat_info = 'rna') gobj <- overlapToMatrix(gobj, feat_info = 'rna')