synapsePythonClient
synapsePythonClient copied to clipboard
Feature Request: Filter capability for syncFromSynapse
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)
Thanks for your feature contribution! We will discuss internally about this contribution!