Question: SRAdb: Error downloading sqlite files
gravatar for arielle
16 days ago by
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

[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








ADD COMMENTlink modified 14 days ago • written 16 days ago by arielle0
gravatar for arielle
14 days ago by
arielle0 wrote:

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

system("gunzip SRAmetadb.sqlite.gz")
sqlfile <- 'SRAmetadb.sqlite'
ADD COMMENTlink written 14 days ago by arielle0
Please log in to add an answer.


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