doAnalysis.sh 380 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. if [ $# -lt 1 ] ; then
  3. echo "Usage $0 patientID \(2SMobr\) \(id\)"
  4. exit 0;
  5. fi;
  6. SDIR=`dirname $0`;
  7. PATIENTID=$1;
  8. NCLASS=10
  9. if [ $# -gt 1 ] ; then
  10. NCLASS=$2;
  11. fi;
  12. ID=0;
  13. if [ $# -gt 2 ] ; then
  14. ID=$3;
  15. fi;
  16. . $SDIR/env.sh
  17. $MATLAB -sd $MATLABSCRIPTDIR -batch "patientID='${PATIENTID}'; nclass='${NCLASS}'; realizationId='${ID}'; analyze" >& ~/logs/dynamicSPECT.log;