#!/bin/tcsh -f if ("$1" == "-clean") then \rm -f lh.OccROIs.1D.dset \rm -f lh.OccROIs.niml.dset \rm -f lh.BigROIs.niml.dset goto END endif if ( ! -f lh.OccROIs.niml.roi || \ ! -f lh.BigROIs.niml.roi ) then echo "Missing ROI files (lh.OccROIs.niml.roi and/or lh.BigROIs.niml.roi)." echo "They should have been in this archive. If you did not delete them" echo "by mistake, post a complaint on the AFNI" echo "message board" exit 1 endif #Turn the ROIs you have created to a surface dataset if ( ! -f lh.OccROIs.1D.dset) then ROI2dataset -prefix lh.OccROIs.1D.dset \ -of 1D \ -input lh.OccROIs.niml.roi else echo "Reusing lh.OccROIs.1D.dset" endif #or use the better niml format if ( ! -f lh.OccROIs.niml.dset) then ROI2dataset \ -label_dset lh.OccROIs.niml.dset \ -input lh.OccROIs.niml.roi else echo "Reusing lh.OccROIs.niml.dset" endif #Turn the other ROI to a dataset if ( ! -f lh.BigROIs.niml.dset) then ROI2dataset -label_dset lh.BigROIs.niml.dset \ -input lh.BigROIs.niml.roi else echo "Reusing lh.BigROIs.niml.dset" endif END: