- #!/bin/bash
- if [ -f /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/atlas/D99_in_M02_adj_inFunc.nii.gz ]; then
- DATE=$( date '+%F_%H%M' )
- cp /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/atlas/D99_in_M02_adj_inFunc.nii.gz \
- /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/atlas/D99_in_M02_adj_inFunc_${DATE}.nii.gz
- fi
- flirt -in /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/atlas/D99_in_M02_adj.nii.gz \
- -ref /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/func/sub-M02_ref_func_brain_res-1x1x1.nii.gz \
- -applyxfm -init /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/warps/sub-M02_anat2func.mat \
- -out /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/atlas/D99_in_M02_adj_inFunc.nii.gz -interp nearestneighbour
- gunzip /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-M02/atlas/D99_in_M02_adj_inFunc.nii.gz
|