I merged 6 spatial transcriptomic objects together and then ran
Metastaticsamples.merge <- ScaleData(Metastaticsamples.merge)
#perform linear reduction analysis:
Metastaticsamples.merge <- RunPCA(Metastaticsamples.merge, features = VariableFeatures(object = Metastaticsamples.merge))
#Metastatic
Metastaticsamples.merge <- FindNeighbors(Metastaticsamples.merge, reduction = "pca", dims = 1:15)
Metastaticsamples.merge <- FindClusters(Metastaticsamples.merge, verbose = FALSE)
Metastaticsamples.merge <- RunUMAP(Metastaticsamples.merge, dims = 1:15)
However upon doing RunUMAP i hit an error code
20:35:37 Initializing from normalized Laplacian + noise (using irlba)
Error in irlba::irlba(L, nv = n, nu = 0, maxit = iters) :
function 'as_cholmod_sparse' not provided by package 'Matrix'
any thoughts on what happened and how to overcome this?
tried to check packages update them but did not work
It's a compatibility issue with the new Matrix package version (1.6-2). Just install the previous version (1.6-1) and you should be fine.