jmtyszka / bidskit

Utility functions for working with DICOM and BIDS neuroimaging data
MIT License
61 stars 41 forks source link

Not anonymizing #116

Open CatalinaTLl opened 1 year ago

CatalinaTLl commented 1 year ago

Hi,

The first step (converting DICOM to NIFTI) run well but my nii.gz files in the work folder got the complete name of the subject as ID. How can I change this by an specific ID code?

Thanks! Best,

jmtyszka commented 1 year ago

Hi @CatalinaTLl. bidskit uses the folder names at the first level of the sourcedata folder as subject IDs. If your original DICOM data is exported from (eg) a PACs system you might be able to deidentify the subject ID at export. Otherwise you can rename the sourcedata/* folders using a deidentification key. Typical practice at research sites like ours is to generate deidentified subject IDs prior to MR scanning and use those for registration at the console.