Is it possible to get a list of all files and their syn IDs from a directory (for example syn12104384) before downloading all files? If I use Python to do
files = synapseutils.syncFromSynapse(syn, 'syn8540863', path = 'BAMs/ROSMAP/')
I do get a SYNAPSE_METADATA_MANIFEST.tsv after I finish download all files which I can use to find the syn IDs of the individual files, but would like to have this before downloading (so I can select which files to download).
Thanks,
Niek
Created by Niek de Klein NiekdeKlein @kdaily Thanks that's exactly what I was looking for! Hi @NiekdeKlein ,
You can! The Synapse client provides a function to get the 'children' of any container, like a folder. See the documentation in the Python client here:
https://python-docs.synapse.org/build/html/Client.html#synapseclient.Synapse.getChildren
This project also uses a file view to provide an index into available files. You can [read more about file views here](https://docs.synapse.org/articles/views.html), but as @Mette suggested getting specific help for identifying files of interest in the AMP-AD project is best posed in the [AMP-AD Knowledge Portal discussion forum](https://www.synapse.org/#!Synapse:syn2580853/discussion/default). Can you please post this question to the AMP-AD Knowledge Portal discussion forum. We will address it there: https://www.synapse.org/#!Synapse:syn2580853/discussion/default
Best,
Mette
Drop files to upload
Is it possible to get a list of synapse IDs and file names from a synapse directory without downloading all files first? page is loading…