Hi, Is there a way to grab the data and download it using the synapse ID without manually having to download it one by one? I tried to grab the project in R but I can't find a way to access the data. I understand you can do the following in Python: syn = synapseclient.Synapse() syn.login('synapse_username','password') files = synapseutils.syncFromSynapse(syn, 'syn10139511') However, I couldn't figure out the equivalent code in R. Thanks

Created by SA90
Thanks
Hi SA90, If you click on the link and look at the entities page, such as: https://www.synapse.org/#!Synapse:syn10139511 near the top you'll see the path to that entity: Files » Challenge Data » Sub1 You'll be able to do this with all the entities you linked to in your post above.
Hi Any update on this? Which parent ID to use for each challenge? Thanks
Thanks Thomas, I made the following small edit so it saves the files based on the parent id ``` for (parentID in unique(challenge_dat_df$parentId)){ challenge_dat_df_sub = challenge_dat_df %>% subset(parentId == parentID) dir.create(paste0("lib/",parentID)) file_locations = sapply(challenge_dat_df_sub $id, function(x) getFileLocation(synGet(x))) file.copy(file_locations, paste0("lib/",parentID)) } ``` There are 5 parent IDs: "syn10139511" "syn10139526" "syn10139525" "syn10139541" "syn10139540" Which ID belongs to which challenge? Thanks
Dear SA90, Apologies for the delay in response. Unfortunately, there isn't equivalent code in R, but you can pull down the data in R with this codechunk for all 3 subchallenges: ``` library(synapseClient) synapseLogin() challenge_dat = synTableQuery('select * from syn10819245') challenge_dat_df = challenge_dat@values file_locations = sapply(challenge_dat_df$id, function(x) getFileLocation(synGet(x))) ``` Best, Tom

Grabbing data script page is loading…