-
Notifications
You must be signed in to change notification settings - Fork 0
/
move_anat_originals.sh
25 lines (24 loc) · 1.08 KB
/
move_anat_originals.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /Users/CN/Documents/Projects/Joystick_Cereb_MRS/bin/mrsi_code/env python
# ------------------------------------------------------------------------------
# Script name: move_anat_originals.sh
#
# Description: Move original anats (non-defaced) to seperate folder, to ensure they are not shared
#
# Author: Caroline Nettekoven, 2020
#
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# bold_dir="/Users/CN/Documents/Projects/BOLD_study_local/deidentification/example_subject/"
bold_dir="/vols/Data/devcog/projects/BOLD"
# ------------------------------------------------------------------------------
bold_dir="/vols/Data/devcog/projects/BOLD"
for sub in ${bold_dir}/sub-*; do
for image in `ls ${sub}/anat/*orig* `; do
if [ ! -f ${bold_dir}/anat_originals/${image#*anat/} ]; then
echo "Moving subject ${sub}..."
echo mv ${image} ${bold_dir}/anat_originals/.
else
echo "IMAGE ${image} ALREADY EXISTS"
fi
done
done