I’m working with the Synapse table syn4993293. The table has columns audio_audio.m4a, recordId, and healthCode.
When I download the audio files using Synapse, the filenames are saved like:
audio_audio.m4a-0a0a533c-bca3-4341-8c28-8f68bfc4815c868532989709666129.tmp
But in the table’s CSV export, the audio_audio.m4a column contains numeric IDs like 5392295.
I need to match each downloaded audio file with its corresponding recordId and healthCode.How can I reliably map these downloaded files to the correct recordId and healthCode given that the filenames are renamed during download?
Any advice on a method or best practice for handling this mapping would be really helpful!
Created by Jyotirmoy Ghose jyotirmoy I think the method using the Python client described in this wiki will work in this instance. You'll need to substitute the correct Synapse Table ID and column names for the data you want.
https://www.synapse.org/Synapse:syn8717496/wiki/448349
Drop files to upload
How to match Synapse downloaded audio files to recordId and healthCode when filenames change page is loading…