AV_r1.make_reg.tcsh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/tcsh
  2. # ======================================================================
  3. # Create an ideal time series for run 1 only, combining Vis and Aud, as
  4. # if there there were only a single stimulus condition.
  5. #
  6. # This would create a ideal time series like epi_r1_ideal.1D.
  7. #
  8. # Note that the epi_r1 files include 4s (2 TRs) of pre-steady time.
  9. # ======================================================================
  10. # ----------------------------------------------------------------------
  11. # - combine timing for the 2 conditions (vis and aud)
  12. # - add 4 seconds (2 TRs)
  13. # - sort the times, per run
  14. # - extract just the first run, line 1
  15. # - save as regressor, AV_r1.stim.txt
  16. timing_tool.py -timing stim_AV1_vis.txt -extend stim_AV2_aud.txt \
  17. -add_offset 4 -sort -write_timing - \
  18. | column_cat -line 1 - > AV_r1.stim.txt
  19. # ----------------------------------------------------------------------
  20. # convert timing to a single regressor, AV_r1.ideal.1D
  21. # (152 time points matches epi_r1, at TR=2s)
  22. 3dDeconvolve -nodata 152 2 \
  23. -polort -1 \
  24. -num_stimts 1 \
  25. -stim_times 1 AV_r1.stim.txt 'BLOCK(20,1)' -stim_label 1 VA \
  26. -x1D AV_r1.ideal.1D -x1D_stop
  27. echo ""
  28. echo "++ made AV_r1.ideal.1D; consider running:"
  29. echo ""
  30. echo " 1dplot -one epi_r1_ideal.1D AV_r1.ideal.1D"
  31. echo ""