generate_2nd-lvl-design_audio-ppa-ind.sh 793 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. set -e
  3. set -u
  4. cat << EOT > code/compute_2nd-lvl_audio-ppa-ind.submit
  5. # auto-generate file (generate_2nd_level_design.sh) -- do not modify!
  6. universe = vanilla
  7. output = condor_logs/\$(CLUSTER).\$(PROCESS).out
  8. error = condor_logs/\$(CLUSTER).\$(PROCESS).err
  9. log = condor_logs/\$(CLUSTER).\$(PROCESS).log
  10. getenv = True
  11. request_cpus = 1
  12. request_memory = 5000
  13. should_transfer_files = NO
  14. transfer_executable = False
  15. initialdir = /data/project/studyforrest_ppa
  16. executable = \$ENV(FSLDIR)/bin/feat
  17. EOT
  18. label="2nd-lvl_audio-ppa-ind"
  19. for sub in sub-*; do
  20. subid=$(echo "$sub" | cut -d '-' -f2-)
  21. sed -e "s/###SUB###/sub-${subid}/g" code/2nd-lvl_audio-ppa-ind.fsf > "$sub/${label}.fsf"
  22. printf "arguments = $sub/${label}.fsf\nqueue\n" >> code/compute_2nd-lvl_audio-ppa-ind.submit
  23. done