Hi,
I am unable to download data using the synGet function. I don't get any error messages either, but I see no trace of any data downloaded.
Here is the code that I ran:
```
install.packages("synapser", repos=c("https://sage-bionetworks.github.io/ran", "http://cran.fhcrc.org"))
library(synapser)
synLogin("ycha@immuneering.com", "secret")
mayo_WGS <- synGet("syn10901601",
downloadLocation="~/Downloads/")
```
Here is my sessionInfo:
```
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] synapser_0.1.25 rjson_0.2.15 PythonEmbedInR_0.1.11 R6_2.2.2
loaded via a namespace (and not attached):
[1] compiler_3.4.2 tools_3.4.2 yaml_2.1.16 codetools_0.2-15 pack_0.1-1
```
Thanks so much!
Created by Yoonjeong Cha ycha That is good to know, thank you! Although.. I think I will just switch to the command line client as it looks the easiest to use.
Either way, thank you both for the detailed and quick replies! You have a point! I re-read some of our documentation pages around [getting data](http://docs.synapse.org/articles/downloading_data.html) and it's not very clear, so I'll make a note to improve it from this context.
Some details for your curiosity. `synGet` doesn't necessarily mean download - indeed, there is a parameter to `synGet` that you can provide called `downloadFile`, which if turned off, won't download anything! You did get something - you got an object that represents the Folder you specified. There is metadata about the folder (properties, access controls, user-supplied annotations, etc) that you get when you do a `synGet`. You could do the same for a File - if you were only interested in information about the file, you wouldn't want to download it.
A better documentation link for recursive download is here: http://docs.synapse.org/articles/downloading_data.html#recursive-downloads
Eventually you will be able to do this in `synapser`! That is good to know. Thank you for the helpful response!
I think perhaps a warning message inside the synGet() function might be useful for future users when they select a folder instead of a file. Hello @ycha,
What do you see when you run:
```
mayo_WGS
```
after `synGet()` returns? Hi! The Synapse ID you provided (syn10901601) is a folder. The `synGet` function does not recursively download folders. We are working on exposing this functionality in the `synapser` package. You have another option, which is to use the [File View](http://docs.synapse.org/articles/views.html) for the AMP-AD project at syn11346063, which is a listing of all data files for AMP-AD. It looks like you're interested in the whole genome sequencing data from the MayoRNASeq study. You can query for this data in this table:
https://www.synapse.org/#!Synapse:syn11346063/tables/query/eyJzcWwiOiJTRUxFQ1QgKiBGUk9NIHN5bjExMzQ2MDYzIiwgInNlbGVjdGVkRmFjZXRzIjpbeyJjb25jcmV0ZVR5cGUiOiJvcmcuc2FnZWJpb25ldHdvcmtzLnJlcG8ubW9kZWwudGFibGUuRmFjZXRDb2x1bW5WYWx1ZXNSZXF1ZXN0IiwgImNvbHVtbk5hbWUiOiJzdHVkeSIsICJmYWNldFZhbHVlcyI6WyJNYXlvUk5Bc2VxIl19LHsiY29uY3JldGVUeXBlIjoib3JnLnNhZ2ViaW9uZXR3b3Jrcy5yZXBvLm1vZGVsLnRhYmxlLkZhY2V0Q29sdW1uVmFsdWVzUmVxdWVzdCIsICJjb2x1bW5OYW1lIjoiYXNzYXkiLCAiZmFjZXRWYWx1ZXMiOlsid2hvbGVHZW5vbWVTZXEiXX1dLCAiaW5jbHVkZUVudGl0eUV0YWciOnRydWUsICJpc0NvbnNpc3RlbnQiOnRydWUsICJvZmZzZXQiOjAsICJsaW1pdCI6MjV9
The link above shows you a table with facets to help select data subsets. It also includes a 'How to Download' button giving some instructions on how to get this data.
The command line client (which comes with the [Synapse Python client](http://docs.synapse.org/articles/getting_started.html#installing-synapse-clients)) allows you to do this to download all of those files:
```
synapse get -q "SELECT * FROM syn11346063 WHERE ( ( "study" = 'MayoRNAseq' ) AND ( "assay" = 'wholeGenomeSeq' ) )"
```
You could use this same query string in `synapser` using the `synTableQuery` function, and then use the 'id' column resulting from that to download each individual file.
Drop files to upload
Problems with data download using the R client's synGet() page is loading…