AUCell icon indicating copy to clipboard operation
AUCell copied to clipboard

AUCell_calcAUC function failed, can not find error message

Open liuyangzzu opened this issue 1 year ago • 0 comments

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’

liuyangzzu avatar Feb 11 '23 01:02 liuyangzzu