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

perhaps a bug in: aux_export2scope.R #105

Closed fentouxungui closed 4 years ago

fentouxungui commented 4 years ago

fileName <- getOutName(scenicOptions, "loomFile") should be ahead of if (file.exists(fileName)) stop("File '", getOutName(scenicOptions, "loomFile"), "' already exists.")

sjessa commented 4 years ago

Hi @fentouxungui, I ran into this same error and was wondering if you could share how you solved it? Thank you!

fentouxungui commented 4 years ago

Hi @fentouxungui, I ran into this same error and was wondering if you could share how you solved it? Thank you!

in Rstudio console:

fix(export2scope)

find line:

fileName <- getOutName(scenicOptions, "loomFile")

move it ahead of line:

if (file.exists(fileName)) stop("File '", getOutName(scenicOptions, "loomFile"), "' already exists.")