I am trying to use cell labeling via SingleR with reference dataset available with celldex.
library(celldex)
dice <- DatabaseImmuneCellExpressionData(ensembl=F)
While running this R script, it gives following error:
pred <- classifySingleR(Include_1, trained, assay.type=1)
Warning: The following arguments are not used: drop
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'type': Cannot find cells provided
Can anyone help me out how to solve this.
Many thanks and regards,
Ruchika
P.S. I have merged some patients filtered matrix data and the run PCA and UMAP on it and then saved it as Include_1.rds.
I am trying to use cell labeling via SingleR with reference dataset available with celldex. library(celldex) dice <- DatabaseImmuneCellExpressionData(ensembl=F)
Here is my R script:
_Include_1 <- readRDS("Include_1.rds") library(celldex) dice <- DatabaseImmuneCellExpressionData(ensembl=F) common <- intersect(rownames(Include_1), rownames(dice)) set.seed(2000) trained <- trainSingleR(dice[common,], labels=dice$label.fine, aggr.ref=F) pred <- classifySingleR(Include1, trained, assay.type=1)
While running this R script, it gives following error:
pred <- classifySingleR(Include_1, trained, assay.type=1) Warning: The following arguments are not used: drop Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'type': Cannot find cells provided
Can anyone help me out how to solve this.
Many thanks and regards, Ruchika
P.S. I have merged some patients filtered matrix data and the run PCA and UMAP on it and then saved it as Include_1.rds.