s04.cmd.usubj 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/tcsh
  2. # ----------------------------------------------------------------------
  3. # run uber_subject as would be done in class (see afni16_start_to_finish.pdf)
  4. #
  5. # notes:
  6. # - this was generated automatically by uber_subject.py with changes:
  7. # - top_dir was added for portability across directory trees
  8. # - the epi and stim inputs were tightened ($top_dir and wildcards)
  9. # - gui_choice was added to allow running without PyQt4 installed
  10. #
  11. # - to run with GUI: set gui_choice = ""
  12. # - for no GUI : set gui_choice = "-no_gui -save_ap_command cmd.ap.uber"
  13. #
  14. # (this saves the afni_proc.py command in $HOME/$subj_dir/cmd.ap.uber)
  15. # ----------------------------------------------------------------------
  16. set gui_choice = "-no_gui -save_ap_command cmd.ap.uber"
  17. set subj_dir = .
  18. set process = 1
  19. uber_subject.py \
  20. $gui_choice \
  21. -cvar subj_dir $subj_dir \
  22. -svar anat FT/FT_anat+orig.HEAD \
  23. -svar compute_fitts yes \
  24. -svar epi FT/FT_epi_r[123]+orig.HEAD \
  25. -svar gid horses \
  26. -svar gltsym 'vis -aud' '0.5*vis +0.5*aud' \
  27. -svar gltsym_label V-A mean.VA \
  28. -svar regress_jobs 2 \
  29. -svar run_clustsim no \
  30. -svar sid FT \
  31. -svar stim FT/AV1_vis.txt FT/AV2_aud.txt \
  32. -svar stim_basis 'BLOCK(20,1)' 'BLOCK(20,1)' \
  33. -svar stim_label vis aud \
  34. -svar tcat_nfirst 2 \
  35. -svar volreg_base MIN_OUTLIER
  36. # if process, actually run the analysis
  37. if ( $process ) then
  38. echo ""
  39. echo cd $subj_dir
  40. cd $subj_dir
  41. echo ""
  42. sleep 2
  43. echo 'CREATING PROC SCRIPT: tcsh -x cmd.ap.uber'
  44. echo ""
  45. sleep 3
  46. tcsh -x cmd.ap.uber |& tee out.cmd.ap.uber
  47. if ( $status ) then
  48. exit 1
  49. endif
  50. echo ""
  51. echo 'RUNNING ANALYSIS: tcsh -xef proc.FT |& tee output.proc.FT'
  52. echo ""
  53. sleep 5
  54. tcsh -xef proc.FT |& tee output.proc.FT
  55. endif