My goal: I am trying to use DMRcate to find some differentially methylated regions.
Issue Description: When I run the following code it does not give the expected result even when I try localHub = TRUE or localHub = FALSE it still gives and error:
My sessionInfo (only some of it below):
R version 4.2.2 (2022-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)
Attempt 1:
# Converting DMR list
results.ranges <- extractRanges(dmrcoutput, genome = "hg19")
The error is below:
Cannot connect to ExperimentHub server, using 'localHub=TRUE' instead
Using 'localHub=TRUE' If offline, please also see BiocManager vignette section on offline use
snapshotDate(): 2023-01-30
Error: File not previously downloaded. Run with 'localHub=FALSE' Traceback:
- extractRanges(dmrcoutput, genome = "hg19")
- eh[["EH3132"]]
- eh[["EH3132"]]
- .local(x, i, j = j, ...)
- stop("File not previously downloaded.\n", " Run with 'localHub=FALSE'", . call. = FALSE)
Attempt 2 (with localHub = TRUE):
# Converting DMR list
results.ranges <- extractRanges(dmrcoutput, genome = "hg19", localHub=TRUE)
It gives the error:
Error in extractRanges(dmrcoutput, genome = "hg19", localHub = TRUE): unused argument (localHub = TRUE) Traceback:
Attempt 3 (with localHub = FALSE):
# Converting DMR list
results.ranges <- extractRanges(dmrcoutput, genome = "hg19", localHub=FALSE)
It gives the error:
Error in extractRanges(dmrcoutput, genome = "hg19", localHub = FALSE): unused argument (localHub = FALSE) Traceback:
This seems to be associated with what I believe might be an issue with the DMRcate software itself. Is there a way around this?
Could you perchance give a sample of the code showing how to use this setExperimentHubOption as I cannot seem to find it online?
I found the command description online (https://rdrr.io/bioc/ExperimentHub/man/getExperimentHubOption.html) I am not sure how to do this exactly it does seem to allow someone to specify a proxy however, the command seems to fail due to something I believe I am writing incorrectly?
Attempt 1:
The error is below:
Attempt 2:
The error is below:
I definitely use this proxy - why would it say the proxy is not found?
Why are you searching online for help pages that you can get within R? There is no guarantee that the help you find online is current with the version of the package you are using. I pointed you to
?setExperimentHubOption
for a reason, which is that it is guaranteed (unless the maintainer forgot to update or whatever) to be current with the package.The error you see in your first iteration (Error in parse(text = x, srcfile = src): <text>:2:24: unexpected input) indicates you provided some input gibberish that R couldn't process. It's not clear from what you provided what that was, but if formatted correctly it should work. As an example (that won't work, btw, it's just an example)
Your second error is because the first argument is meant to be a character string, but you provided what R took to be an object (PROXY without quotations will be interpreted as an object). You could have a character object called PROXY that is simply "PROXY".
But there's hardly a point to that.
For some reason the ? command you gave did not work in R Markdown. What about the error with the rmSNPandCH command?
When I correct PROXY to be in single quotes I get an odd error. The proxy seems to work here but why is the rmSNPandCH command not working. I am not very good at programming and this is why I am still positing the next question. Why is this occurring?
Attempt 1:
Error:
localHub = TRUE and localHub = FALSE do not solve this issue. Why would this occur? The error seems to effect some code down stream as well?