Closed NickNolan closed 2 years ago
Dear @NickNolan ,
Sorry, I was not aware that we had received new posts on that issue. I have now re-opened it.
Most of the issues when loading SCENIC are related to loading the databases:
a) Due to incomplete downloads
b) Due to inconsistent package versions (we had to change the interface to load the .feather
files from package feather
to arrow
).
Could you confirm whether you can properly load the databases with these commands?
dbPath <- "~/Downloads/cisTarget_databases/mm9-500bp-upstream-7species.mc9nr.feather" # Choose the appropriate database/location
SCENIC::dbLoadingAttempt(dbPath)
rnk <- RcisTarget::importRankings(dbPath, indexCol="features", columns=c("Sox10","Dlx1")) # you can load only a few genes to do tests faster
rnk
If the crash is indeed loading the databases:
packageVersion("RcisTarget")
packageVersion("arrow")
packageVersion("feather")
Hey @s-aibar,
No worries -- thank you for such a quick response. It looks like I'm not far off of at least one of these issues; as follows:
> dbPath <- "databases/hg19-tss-centered-10kb-7species.mc9nr.feather"
> SCENIC::dbLoadingAttempt(dbPath)
[1] "invalid first argument"
[1] FALSE
> rnk <- RcisTarget::importRankings(dbPath, indexCol="features", columns=c("Sox10","Dlx1"))
Error in .getIndexCol(allColumns, indexCol = indexCol, verbose = warnMissingColumns) :
The index column 'features' is not available in the file.
> dbPath <- "databases/hg19-500bp-upstream-7species.mc9nr.feather"
> SCENIC::dbLoadingAttempt(dbPath)
[1] "invalid first argument"
[1] FALSE
> rnk <- RcisTarget::importRankings(dbPath, indexCol="features", columns=c("Sox10","Dlx1"))
Error in .getIndexCol(allColumns, indexCol = indexCol, verbose = warnMissingColumns) :
The index column 'features' is not available in the file.
Checking the sha256 sums:
> library(digest)
> dbPath <- "databases/hg19-tss-centered-10kb-7species.mc9nr.feather"
> digest(dbPath, 'sha256', file=TRUE)
[1] "ecdac9c5e70b9faa61a0fb7914a40942912327bd54ebab716578be2b1d4f4d1c"
> dbPath <- "databases/hg19-500bp-upstream-7species.mc9nr.feather"
> digest(dbPath, 'sha256', file=TRUE)
[1] "6688688cea5bc04540214d6161ac5ea9ec6e957c1f9689f5dc636666ab241bf7"
Which does not appear to match the sha256sums you listed -- so at a glance, it would seem to be a database issue. For reference, the two database .feather files were downloaded as follows:
> download.file('https://resources.aertslab.org/cistarget/databases/homo_sapiens/hg19/refseq_r45/mc9nr/gene_based/hg19-500bp-upstream-7species.mc9nr.feather', destfile='databases/hg19-500bp-upstream-7species.mc9nr.feather')
trying URL 'https://resources.aertslab.org/cistarget/databases/homo_sapiens/hg19/refseq_r45/mc9nr/gene_based/hg19-500bp-upstream-7species.mc9nr.feather'
Content type '€’àû' length 1092309888 bytes (1041.7 MB)
downloaded 1041.7 MB
> download.file('https://resources.aertslab.org/cistarget/databases/homo_sapiens/hg19/refseq_r45/mc9nr/gene_based/hg19-tss-centered-10kb-7species.mc9nr.feather', destfile='databases/hg19-tss-centered-10kb-7species.mc9nr.feather')
trying URL 'https://resources.aertslab.org/cistarget/databases/homo_sapiens/hg19/refseq_r45/mc9nr/gene_based/hg19-tss-centered-10kb-7species.mc9nr.feather'
Content type '€’àû' length 1092309888 bytes (1041.7 MB)
downloaded 1041.7 MB
Lastly, package versions are below:
> packageVersion("RcisTarget")
[1] ‘1.14.0’
> packageVersion("arrow")
[1] ‘7.0.0’
> packageVersion("feather")
[1] ‘0.3.5’
Thank you again for your help! Please let me know if there's any other information I can give you to help.
Ok, then it seems that you first need to manage to download the databases successfully (the download.file
command in the vignette is convenient, but apparently not very reliable... :() Here you have some alternatives: https://resources.aertslab.org/cistarget/help.html
Once you manage to get the same sums, the rest will hopefully work (you seem to have the correct versions). Please, let us know whether that is the case :)
This appears to have solved my issues -- thank you immensely for your help! (good to know that I can't trust download.file
anymore... though I can't say I really understand why I can't trust it)
I am trying to use SCENIC; however, R crashes as soon as I try and run
initializeScenic()
.sessionInfo() is as follows:
I have a 16 GB RAM windows machine.
Code I ran is as follows:
Where
databases
is a folder in the working directory that contains the required .feather files from the cisTarget database. I get the following error message on attempting to runinitializeScenic()
:After which the R session aborts altogether after encountering a fatal error. I have tried specifying the number of cores and not including
dbs
in the initialization; neither of these appears to have fixed the issue.I am aware that this is similar to Issue #93; however, I don't think that the Issue has really been resolved in full -- it was only marked that way, with no explanation as to how to overcome the problem.