Entering edit mode
I tried to repeat the code we learned in Coursera >> Bioconductor for Genomic Data Science.
library(rtracklayer)
library(AnnotationHub)
ahub <- AnnotationHub()
table(ahub$rdataclass)
ahub.bw = subset(ahub, rdataclass == "BigWigFile" & species == "Homo sapiens")
bw = ahub.bw[[1]]
The error printed was:
downloading 1 resources
retrieving 1 resource
Error: failed to load resource
name: AH32002
title: E001-H3K4me1.fc.signal.bigwig
reason: 1 resources failed to download
In addition: Warning messages:
1: download failed
web resource path: ‘https://annotationhub.bioconductor.org/fetch/37442’
local file path: ‘~/Library/Caches/AnnotationHub/a42f440187eb_37442’
reason: SSL certificate problem: Invalid certificate chain
2: bfcadd() failed; resource removed
rid: BFC25
fpath: ‘https://annotationhub.bioconductor.org/fetch/37442’
reason: download failed
3: download failed
hub path: ‘https://annotationhub.bioconductor.org/fetch/37442’
cache resource: ‘AH32002 : 37442’
reason: bfcadd() failed; see warnings()
What should I do to get this work?
What is your
sessionInfo()
?I just tried this and it seemed to work okay:
Thank you very much for your reply. I tried it again. It still showed same error.
Are you behind a proxy that would have to be set?
I have checked the Proxies under network. Nothing is selected.
what is the result of running the following:
httr::HEAD("http://egg2.wustl.edu/roadmap/data/byFileType/signal/consolidated/macs2signal/foldChange/E001-H3K4me1.fc.signal.bigwig")
It showed:
Error in curl::curl_fetch_memory(url, handle = handle) : Could not resolve host: egg2.wust1.edu
httr::HEAD("http://egg2.wustl.edu/roadmap/data/byFileType/signal/consolidated/macs2signal/foldChange/E001-H3K4me1.fc.signal.bigwig")
Sorry, it showed the following error.
Error in curl::curl_fetch_memory(url, handle = handle) : SSL certificate problem: Invalid certificate chain
This seems specific to your system and suggests that it might be on your computer's end. I did some quick google searches that suggest cleaning your browser cache and making sure the computer date and time are set correctly. I'm not a mac user so I'm not sure if someone else has some other suggestions.
Thank you very much for your help. The date and time are right. I am cleaning the browser cache to see whether it will work.