The function works on my local computer and on all samples (8/8), but when I run the same script on a remote HPC, I encounter the following error on 2/8 samples:
Error in `.local()`:
! NA values in coordinates
Backtrace:
1. SeuratObject::CreateSegmentation(data_xe$segmentations)
2. SeuratObject:::CreateSegmentation.data.frame(data_xe$segmentations)
3. base::sapply(...)
4. base::lapply(X = X, FUN = FUN, ...)
5. SeuratObject (local) FUN(X[[i]], ...)
8. sp::Polygon(coords = cx)
10. sp::coordinates(coords)
11. sp (local) .local(obj, ...)
When I separated the different steps of the function:
data_xe <- ReadXenium(data.dir = dir_path[[5]], type = c("centroids", "segmentations")) # working
segmentations.data <- list(
centroids = CreateCentroids(data_xe$centroids),
segmentation = CreateSegmentation(data_xe$segmentations)
) # not working
Error in `.local()`:
! NA values in coordinates
Backtrace:
1. SeuratObject::CreateSegmentation(data_xe$segmentations)
2. SeuratObject:::CreateSegmentation.data.frame(data_xe$segmentations)
3. base::sapply(...)
4. base::lapply(X = X, FUN = FUN, ...)
5. SeuratObject (local) FUN(X[[i]], ...)
8. sp::Polygon(coords = cx)
10. sp::coordinates(coords)
11. sp (local) .local(obj, ...)
I did not find any NA in the segmentations data of the data_xe object.
Hello everyone,
I want to import Xenium data using the
LoadXenium
function of the Seurat R library (v.5.1.0).I run the following command line:
The function works on my local computer and on all samples (8/8), but when I run the same script on a remote HPC, I encounter the following error on 2/8 samples:
When I separated the different steps of the function:
I did not find any NA in the segmentations data of the data_xe object.
How can I solve this issue?
Many thanks in advance.
Session info [HPC] | Not working:
Session info [local] | Working: