Slice timing correction in fMRIprep and linear modeling

August 24, 2021


  1. rick reynolds 3 years

    It seems that TR/2 should be subtracted, not added.

    If EPI slice timing is shifted to TR/2 (more specifically to nslices*(nslices-1)*TR/2 in the case of alt+z, for example), then for use in AFNI’s 3dDeconvolve or 3dREMLfit, TR/2 should be subtracted from the event times. If the EPI timing happens later, then relatively, the stimulus events would happen earlier.

    For example, suppose TR=2s and the first stimulus event happens at time t=1s. After 3dTshift, it would be as if the original volume were acquired at time t=1s, corresponding with that initial event. So from the perspective of 3dDeconvolve, that event should be adjusted to time t=0 to still correspond with the initial EPI volume.

    – rick

  2. rick reynolds 3 years

    Aaaaand I mixed up 2 things in my mind when writing the average, which should divide by nslices, not multiply.
    (nslices-1)*TR / (2*nslices)
    Sorry to further any confusion.
    – rick

  3. Jeanette Mumford 3 years

    Good call, thanks! Will repair to reflect this and also the code error that I made in the last plot.

  4. joss 12 months

    Thank you for sharing this.
    Visit this page:

  5. Printer 9 months

    Thanks for sharing this valuable content. It is very helpful for us.
    Visit this page:

  6. Printer Drivers 9 months

    Very informative article.
    Visit this page:

  7. abc123 8 months
  8. Thank you for this article; it’s been a fantastic resource for me.