atlas2funcspace.sh 953 B

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