Skip to content
Permalink
05a9980f43
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 10 lines (9 sloc) 256 Bytes
#!/bin/bash
# rename DICOM folders to help bidsmap
for SUBJECT_DIR in `ls -d /data/raw/sub-*`; do
for d in ${SUBJECT_DIR}/*; do
dicomsort.py -r -e .dcm $d
done
mv ${SUBJECT_DIR}/*/* ${SUBJECT_DIR}
rm -rf ${SUBJECT_DIR}/[1-9]*
done