Matlab version: https://sbia-svn/projects/CBIG-dicomAnonymization/dicomAnonymization/
New, lightweight and more flexible python code: /cbica/comp_space/CBIG/Scripts/Anonymization/dicom_manipulation-git/anonymization/remove_dicom_fields.py. The actual CBIG anonymization key (/cbica/comp_space/CBIG/Scripts/Anonymization/cbig_anonpattern.cfg) is encoded in the code above.
Lab members should be able to run the codes on their own to anonymize the DICOM files for the time being.
To anonymize DICOM files from any source,
upload them to the cluster to /cbica/comp_space/CBIG/dropbox as yourself,
you can upload them via mapped network drive, or
you can use scp/winscp to upload them,
wait about 1 hour for file ownership change from yourself to cbig,
sudo login as cbig project user,
move the data to /cbica/comp_space/CBIG/Data_phiSensitive,
launch the anonymization code with remove_dicom_fields.py specified above and output the files to /cbica/projects/CBIG/Anonymized_to_Distribute/${receiver}, where receiver should be a cbica-cluster user.
After the anonymization, another script /cbica/comp_space/CBIG/Scripts/setPermission.sh would be called to assign the read permission of the $output_dir to a specific user/project user. setPermission.sh has to be executed on a compute node through SGE submission and will not take effect if executed on an interactive node, i.e. crete, agora, etc.
Matlab version:
https://sbia-svn/projects/CBIG-dicomAnonymization/dicomAnonymization/
New, lightweight and more flexible python code:/cbica/comp_space/CBIG/Scripts/Anonymization/dicom_manipulation-git/anonymization/remove_dicom_fields.py
. The actual CBIG anonymization key (/cbica/comp_space/CBIG/Scripts/Anonymization/cbig_anonpattern.cfg) is encoded in the code above.Lab members should be able to run the codes on their own to anonymize the DICOM files for the time being.
To anonymize DICOM files from any source,
remove_dicom_fields.py
specified above and output the files to/cbica/projects/CBIG/Anonymized_to_Distribute/${receiver}
, where receiver should be a cbica-cluster user./cbica/comp_space/CBIG/Scripts/setPermission.sh
. See https://github.com/hsieh42/exit_process/issues/41#issue-364258805