Hello , hope you are doing well.
I was facing some issues with downloading the longitudinal data , I am currently using the code given here [Longitudinal data](https://www.synapse.org/Synapse:syn31472953/wiki/619711) to download data. But it is taking a very long time so I tried using the code
"import synapseclient
import synapseutils
syn = synapseclient.Synapse()
syn.login(authToken="my actual key")
synapseutils.syncFromSynapse(
syn,
entity='syn41833579', # File view or folder ID
path='my actual path',
ifcollision='keep.local'
) "
but it throws an error "raise ValueError(
ValueError: Cannot initiate a sync from an entity that is not a File, Folder, Project, or Link to a File/Folder." as I got to know the entity "'syn41833579'" is "" which cannot work with this code . so I wanted to ask if there is a faster way to download ?
Please let me know if there are any further clarifications needed
Thank you
Regards,
Bilal Adnan
Created by Bilal Adnan bilaladnan Sounds good, thank you so much. I will try that Note that the folder structure is highly nested (Folders within Folders within Folders...), so make sure you download recursively and have 714,922 files at the end. Hi Bilal-
I suspect this is happening because syn41833579 is a FileView not a folder. If you wanted to try to see if syncFromSynapse is faster, you should do this pointing to the two different folders in which the data is stored (syn40390832 and syn40390840). Note that to get all the longitudinal data, you'll have to download data from both folders.
Solly