I successfully run the demo, and I also successfully run the pipeline using the pbmc3k data from Seruatdata.
But when running my own data, which is an integrated data set, it reports an error:
Error in UseMethod(generic = "as.sparse", object = x) :
no applicable method for 'as.sparse' applied to an object of class "NULL"
Then I realize that the function only uses RNA_snn graph (G = as.sparse(object@graphs$RNA_snn))
so I need to do: Bpl.rpca@graphs[["RNA_snn"]] <- Bpl.rpca@graphs[["integrated_snn"]]
Hi,
I successfully run the demo, and I also successfully run the pipeline using the pbmc3k data from Seruatdata. But when running my own data, which is an integrated data set, it reports an error:
Error in UseMethod(generic = "as.sparse", object = x) : no applicable method for 'as.sparse' applied to an object of class "NULL"
Then I realize that the function only uses RNA_snn graph (G = as.sparse(object@graphs$RNA_snn)) so I need to do: Bpl.rpca@graphs[["RNA_snn"]] <- Bpl.rpca@graphs[["integrated_snn"]]
and it works for me.