Error in running: classifySingleR from SingleR package
0
0
Entering edit mode
@194e4677
Last seen 2.2 years ago
Israel

I'm trying to run classifySingleR function from SingleR package using MouseRNAseqData() as a reference to classify the cells from a Seurat dataset that has not yet been published, but I got the following error:

Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'colRanks': error in evaluating the argument 'seed' in selecting a method for function 'DelayedArray': invalid or not-yet-implemented 'Matrix' subsetting


library(SingleR)

df_genes <- readRDS("Seuratfile.rds")
mrnaseq <- MouseRNAseqData()
test <- df_genes@assays$RNA@data # a Seurat dataset
shared_markers <- row.names(mrnaseq)[row.names(mrnaseq)%in%row.names(test)] # shared markers in the reference and in our gene expression data
sub_test <- test[shared_markers,]

singler_out <- classifySingleR(test = sub_test, trained = mrnaseq) 

sessionInfo( )
SingleR SingleCell • 1.6k views
ADD COMMENT
0
Entering edit mode

You do not include your sessionInfo. Be sure to use the latest version, there have been changes towards DelayedArray support it seems (https://bioconductor.org/packages/release/bioc/news/SingleR/NEWS) maybe it's simple a version issue.

ADD REPLY

Login before adding your answer.

Traffic: 973 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6