atlas2funcspace.sh 985 B

1234567891011121314
  1. #!/bin/bash
  2. if [ -f /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/atlas/D99_in_Danny_adj_inFunc.nii.gz ]; then
  3. DATE=$( date '+%F_%H%M' )
  4. cp /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/atlas/D99_in_Danny_adj_inFunc.nii.gz \
  5. /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/atlas/D99_in_Danny_adj_inFunc_${DATE}.nii.gz
  6. fi
  7. flirt -in /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/atlas/D99_in_Danny_adj.nii.gz \
  8. -ref /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/func/sub-danny_ref_func_brain_res-1x1x1.nii.gz \
  9. -applyxfm -init /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/warps/sub-danny_anat2func.mat \
  10. -out /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/atlas/D99_in_Danny_adj_inFunc.nii.gz -interp nearestneighbour
  11. gunzip /Users/chris/Dropbox/GIT_Support/NHP-BIDS/manual-masks/sub-danny/atlas/D99_in_Danny_adj_inFunc.nii.gz