Question: SRAdb: Error downloading sqlite files
0
gravatar for arielle
2.0 years ago by
arielle0
arielle0 wrote:

 

I have successfully installed the SRAdb package. I am now trying to download and uncompress the files,

sqlfile <- 'SRAmetadb.sqlite'
if(!file.exists('SRAmetadb.sqlite')) sqlfile <<- getSRAdbFile()

But I get the following error:

downloaded 0 bytes

Error in download.file(url_sra, destfile = localfile, mode = "wb", method = method) : 
  cannot download all files

 

I have looked up this error but came up with nothing, could you help me find out what the problem is? Thank you!

> traceback()

2: download.file(url_sra, destfile = localfile, mode = "wb", method = method)
1: getSRAdbFile()


> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X El Capitan 10.11.6

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] SRAdb_1.32.0        RCurl_1.95-4.8      bitops_1.0-6        graph_1.52.0        BiocGenerics_0.20.0 RSQLite_1.1-2      

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.12    XML_3.98-1.5    digest_0.6.12   R6_2.2.2        DBI_0.5-1       stats4_3.3.3    httr_1.2.1      tools_3.3.3     Biobase_2.34.0 
[10] memoise_1.0.0   GEOquery_2.40.0

 

 

 

 

 

 

 

sradb • 736 views
ADD COMMENTlink modified 2.0 years ago • written 2.0 years ago by arielle0
Answer: SRAdb: Error downloading sqlite files
1
gravatar for arielle
2.0 years ago by
arielle0
arielle0 wrote:

It seems that the getSRAdbFile() function does not worked for me. This solved the problem:

system("wget https://s3.amazonaws.com/starbuck1/sradb/SRAmetadb.sqlite.gz")
system("gunzip SRAmetadb.sqlite.gz")
sqlfile <- 'SRAmetadb.sqlite'
ADD COMMENTlink written 2.0 years ago by arielle0

Newer versions of SRAdb have fixed this issue. Upgrading should allow the `getSRAdbFile()` function to work again. 

ADD REPLYlink written 21 months ago by Sean Davis21k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 368 users visited in the last hour