aertslab / AUCell

AUCell: score single cells with gene regulatory networks
122 stars 26 forks source link

AUCell_calcAUC function failed, can not find error message #35

Open liuyang2006 opened 1 year ago

liuyang2006 commented 1 year ago

Hi,

I run below sample code, but got error for function AUCell_calcAUC.

set.seed(123)
exprMatrix <- matrix(data = sample(c(rep(0, 5000), sample(1:3, 5000, replace = TRUE))),
                     nrow = 20,
                     dimnames = list(paste("Gene", 1:20, sep = ""),
                                     paste("Cell", 1:500, sep = "")))
cells_rankings <- AUCell_buildRankings(exprMatrix, plotStats = F)

fewGenes <- sample(rownames(exprMatrix), 10)
cells_AUC <- AUCell_calcAUC(fewGenes, cells_rankings,
                            aucMaxRank = 5, nCores = 1)

Error is below:

Error in .AUCell_calcAUC(geneSets = geneSets, rankings = rankings, nCores = nCores,  : 
  (converted from warning) Using only the first 5 genes (aucMaxRank) to calculate the AUC.

Version:

> packageVersion('AUCell')
[1] ‘1.21.2’