analyse_channels.sh 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-channelanalysis SK.channel.nml -stepTargetVoltage 5 -temperature 6.3 -v"\
  9. "pynml-channelanalysis Kv3_1.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  10. "pynml-channelanalysis NaTg.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  11. "pynml-channelanalysis Nap.channel.nml -stepTargetVoltage 5 -temperature 6.3 -duration 20000"\
  12. "pynml-channelanalysis K_P.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  13. "pynml-channelanalysis K_T.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  14. "pynml-channelanalysis Ca_HVA.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  15. "pynml-channelanalysis Ca_LVA.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  16. "pynml-channelanalysis Ih.channel.nml -stepTargetVoltage 5 -temperature 6.3"\
  17. "pynml-channelanalysis Im.channel.nml -stepTargetVoltage 5 -temperature 6.3"
  18. }
  19. serial_run () {
  20. pynml-channelanalysis SK.channel.nml -stepTargetVoltage 5 -temperature 6.3 -v
  21. pynml-channelanalysis Kv3_1.channel.nml -stepTargetVoltage 5 -temperature 6.3
  22. pynml-channelanalysis NaTg.channel.nml -stepTargetVoltage 5 -temperature 6.3
  23. pynml-channelanalysis Nap.channel.nml -stepTargetVoltage 5 -temperature 6.3 -duration 20000
  24. pynml-channelanalysis K_P.channel.nml -stepTargetVoltage 5 -temperature 6.3
  25. pynml-channelanalysis K_T.channel.nml -stepTargetVoltage 5 -temperature 6.3
  26. pynml-channelanalysis Ca_HVA.channel.nml -stepTargetVoltage 5 -temperature 6.3
  27. pynml-channelanalysis Ca_LVA.channel.nml -stepTargetVoltage 5 -temperature 6.3
  28. pynml-channelanalysis Ih.channel.nml -stepTargetVoltage 5 -temperature 6.3
  29. pynml-channelanalysis Im.channel.nml -stepTargetVoltage 5 -temperature 6.3
  30. }
  31. echo "Analysing mod files"
  32. #serial_run
  33. #pynml-channelanalysis Ca_HVA.channel.nml -stepTargetVoltage 5 -temperature 6.3
  34. pynml-channelanalysis Kv3_1.channel.nml -stepTargetVoltage 5 -temperature 6.3
  35. ## if gnu parallel is available, use the parallel run, argument is number of parallel jobs:
  36. # parallel_run 6