analyse_mods.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # CaDynamics.mod Ca_LVA.mod Gfluct.mod Im.mod K_T.mod Nap.mod NMDA.mod ProbUDFsyn.mod tonic.mod
  2. # Ca_HVA.mod epsp.mod Ih.mod K_P.mod Kv3_1.mod NaTg.mod ProbAMPANMDA.mod SK.mod
  3. #
  4. echo "Compiling mod files"
  5. nrnivmodl .
  6. parallel_run() {
  7. parallel -j $1 --\
  8. "pynml-modchananalysis SK -stepV 5 -temperature 6.3 -v"\
  9. "pynml-modchananalysis Kv3_1 -stepV 5 -temperature 6.3"\
  10. "pynml-modchananalysis NaTg -stepV 5 -temperature 6.3"\
  11. "pynml-modchananalysis Nap -stepV 5 -temperature 6.3 -duration 20000"\
  12. "pynml-modchananalysis K_P -stepV 5 -temperature 6.3"\
  13. "pynml-modchananalysis K_T -stepV 5 -temperature 6.3"\
  14. "pynml-modchananalysis Ca_HVA -stepV 5 -temperature 6.3"\
  15. "pynml-modchananalysis Ca_LVA -stepV 5 -temperature 6.3"\
  16. "pynml-modchananalysis Ih -stepV 5 -temperature 6.3"\
  17. "pynml-modchananalysis Im -stepV 5 -temperature 6.3"
  18. }
  19. serial_run () {
  20. pynml-modchananalysis SK -stepV 5 -temperature 6.3 -v
  21. pynml-modchananalysis Kv3_1 -stepV 5 -temperature 6.3
  22. pynml-modchananalysis NaTg -stepV 5 -temperature 6.3
  23. pynml-modchananalysis Nap -stepV 5 -temperature 6.3 -duration 20000
  24. pynml-modchananalysis K_P -stepV 5 -temperature 6.3
  25. pynml-modchananalysis K_T -stepV 5 -temperature 6.3
  26. pynml-modchananalysis Ca_HVA -stepV 5 -temperature 6.3
  27. pynml-modchananalysis Ca_LVA -stepV 5 -temperature 6.3
  28. pynml-modchananalysis Ih -stepV 5 -temperature 6.3
  29. pynml-modchananalysis Im -stepV 5 -temperature 6.3
  30. }
  31. echo "Analysing mod files"
  32. serial_run
  33. ## if gnu parallel is available, use the parallel run, argument is number of parallel jobs:
  34. # parallel_run 6