#!/bin/bash SUBJ=$1 DATADIR=/home/petty/net/selye/data/MIRECC.03/Analysis/ROI/$SUBJ ##create ROIs fslmaths ${DATADIR}/amyg_free -mul 5 -add ${DATADIR}/amyg_manual $DATADIR/FreeMan_union fslmaths ${DATADIR}/amyg_first -mul 5 -add ${DATADIR}/amyg_manual $DATADIR/FirstMan_union fslmaths ${DATADIR}/amyg_first -mul 10 -add ${DATADIR}/FreeMan_union $DATADIR/all_union touch $DATADIR/all_overlap_vols.txt echo "$DATADIR/FreeMan_union L" >> $DATADIR/all_overlap_vols.txt fslstats $DATADIR/FreeMan_union -l 8.9 -u 9.1 -V >> $DATADIR/all_overlap_vols.txt echo "$DATADIR/FreeMan_union R" >> $DATADIR/all_overlap_vols.txt fslstats $DATADIR/FreeMan_union -l 12.9 -u 13.1 -V >> $DATADIR/all_overlap_vols.txt echo "$DATADIR/FirstMan_union L" >> $DATADIR/all_overlap_vols.txt fslstats $DATADIR/FirstMan_union -l 8.9 -u 9.1 -V >> $DATADIR/all_overlap_vols.txt echo "$DATADIR/FirstMan_union R" >> $DATADIR/all_overlap_vols.txt fslstats $DATADIR/FirstMan_union -l 12.9 -u 13.1 -V >> $DATADIR/all_overlap_vols.txt #echo "$DATADIR/all_union L" >> $DATADIR/all_overlap_vols.txt #fslstats $DATADIR/all_union -l 18.9 -u 19.1 -V >> $DATADIR/all_overlap_vols.txt #echo "$DATADIR/all_union R" >> $DATADIR/all_overlap_vols.txt #fslstats $DATADIR/all_union -l 32.9 -u 33.1 -V >> $DATADIR/all_overlap_vols.txt