loadLabkeyData.sh 553 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. . `dirname $0`/env.sh
  3. PATIENTID=$1
  4. $WEBDAV/set_project.sh $DSPECTPROJECT
  5. OUTDIR=$DSPECTTMP/$PATIENTID;
  6. if [ ! -d $OUTDIR ] ; then
  7. mkdir $OUTDIR;
  8. fi;
  9. for ((i=0;i<20;i++)) ; do
  10. F=${PATIENTID}Volume$i.nrrd;
  11. $WEBDAV/getFile.sh $PATIENTID/$F $OUTDIR/$F;
  12. done;
  13. F=${PATIENTID}_Ventricle.mcsv;
  14. $WEBDAV/getFile.sh $PATIENTID/$F $OUTDIR/$F;
  15. F=${PATIENTID}_Dummy.mcsv;
  16. $WEBDAV/getFile.sh $PATIENTID/$F $OUTDIR/$F;
  17. FILES="k1.nrrd vbf.nrrd";
  18. for f in $FILES ;
  19. do
  20. F=${PATIENTID}_$f;
  21. $WEBDAV/getFile.sh $PATIENTID/$F $OUTDIR/$F;
  22. done;