External Email - Use Caution
Hi folks,
Our subject identifiers that we push through Freesurfer are internal-only. We have a public-facing set of IDs, and we'd like to include anonymized Freesurfer data in the BIDS that we share. So: we need to take the stuff we have in $SUBJECT_DIR and transform it. Unfortunately, this isn't as simple as just renaming the directories, as many of the outputs and logs include "# subjectname sub-XXXX" comments and cmdlines that include the subject name.
1. Is there an extant method to rename subject directories? I've searched around on Github and on this list's archives; came up blank. 2. Would it be enough to walk the directories and replace all instances of e.g. "sub-1234" with "sub-30000"? Or do subject numbers get embedded in binary headers/metadata, as well?
The extra-fun touch is that we are not actually allowed to SEE the mapping from internal IDs to public-facing IDs, so any tool we provide for this translation needs to be useable by someone who is unfamiliar with Freesurfer. (Don't ask.)
Then we will also need to de-face all the images, of course.
Any tips or leads appreciated; otherwise, I'll build a thing and eventually post about it here.
Dan Fitch Research Engineer University of Wisconsin-Madison Institute on Aging