aertslab / SCENIC

SCENIC is an R package to infer Gene Regulatory Networks and cell types from single-cell RNA-seq data.
http://scenic.aertslab.org
GNU General Public License v3.0
412 stars 94 forks source link

Error running runSCENIC_3_scoreCells function #148

Open s849 opened 4 years ago

s849 commented 4 years ago

Hi SCENIC team,

Thank you for developing SCENIC. I have encountered an error when running runSCENIC_3_scoreCells(scenicOptions, logMat). Specifically, the error is associated with the .openDev function. It says it cannot find it. How can I fix this error?

wulc21 commented 3 years ago

I also meet the problem, I try the vignette("runSCENIC_3_scoreCells") from http://127.0.0.1:12249/library/SCENIC/doc/detailedStep_3_scoreCells.html#create-rankings, and found the Create rankings step, However I can't solve the problem. Have you solved the problem?

###################### tryCatch({ .openDev(fileName=getIntName(scenicOptions, "aucell_genesStatsPlot"), devType=getSettings(scenicOptions, "devType")) aucellRankings <- AUCell_buildRankings(exprMat, nCores=nCores, plotStats=TRUE, verbose=getSettings(scenicOptions, "verbose")) abline(v=aucellRankings@nGenesDetected["1%"], col="skyblue3", lwd=5, lty=3) dev.off() },error = function(e) { message("Catched error in AUCell_buildRankings() or in the histogram plot: ", e$message) })

alisyedraza1 commented 10 months ago

Any solutions?!!

evy-yiweiwang999 commented 9 months ago

function .openDev is here https://github.com/aertslab/SCENIC/blob/master/R/priv_openDev.R

.openDev <- function(fileName, devType, ...) { if(devType=="pdf") pdf(paste0(fileName, ".pdf"), ...)

if(devType=="png") png(paste0(fileName, ".png", type="cairo"), ...)

if(devType=="cairo_pfd") # similar to Cairo::CairoPDF? grDevices::cairo_pdf(paste0(fileName, ".pdf"), ...) }