a_eegmp_calculate_erp_tfr_START.sh 688 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. #!/bin/bash
  3. fun_name="a_eegmp_calculate_erp_tfr"
  4. job_name="eegmp_erptfr"
  5. rootpath="$(pwd)/.."
  6. rootpath=$(builtin cd $rootpath; pwd)
  7. mkdir ${rootpath}/log
  8. for subj in $(seq 1 33); do
  9. cursub=$(printf "sub-%03d\n" ${subj})
  10. echo ${cursub}
  11. # if not been performed yet
  12. #if [ ! -f ${rootpath}/data/erf/sub-$(printf "%03d" ${subj})*_erf.mat ]; then
  13. sbatch \
  14. --job-name ${job_name}_${cursub} \
  15. --cpus-per-task 4 \
  16. --mem 8gb \
  17. --time 00:30:00 \
  18. --output ${rootpath}/log/${job_name}_${cursub}.out \
  19. --workdir . \
  20. --wrap=". /etc/profile ; module load matlab/R2016b; matlab -nodisplay -r \"${fun_name}('${rootpath}','${cursub}')\""
  21. #fi
  22. done