synapsePythonClient icon indicating copy to clipboard operation
synapsePythonClient copied to clipboard

Feature Request: Filter capability for syncFromSynapse

Open georggrab opened this issue 3 years ago • 1 comments

Feature Request

Just started using Synapse for a dataset which contains data for multiple image analysis use-cases. Our team only needs a small subset of available data for the time being. As such, it would be great to have some sort of filtering capability in syncFromSynapse to only specify files that are needed. I will attach a pull request to elaborate. Thanks!

Expected behavior

syncFromSynapse allows for filtering capability:

import synapseutils

match_only = ['instrument_instances.png', 'raw.png']
synapseutils.syncFromSynapse(syn, entity=project_id, path=local_folder, onlyMatching=match_only)

georggrab avatar Feb 23 '22 11:02 georggrab

Thanks for your feature contribution! We will discuss internally about this contribution!

thomasyu888 avatar Feb 23 '22 20:02 thomasyu888