AFNI version info (afni -ver): Apr 2 2024 (Version AFNI_24.1.00 'Publius Septimius Geta')
Hi Afni people,
I am trying to align one scanning session (with many api runs and one anat) to another session by aligning the 2 anat scans first using align_api_anat.py, and then aligning the epi using the transformation matrix using 3DAllineate.
Something in these transformations is not working, and the first step already produces bad-looking results (that are less aligned than the original images).
also, in the epi after 3DAllineate there is an addition of a contour line that I don't know where it comes from:
(here the overlay is the epi after 3DAllineate and resample)
I notice it doesn't include an align block or a tlrc block.
Are you wanting to move the EPIs before processing with afni_proc.py? That will incur extra blurring in them, because they will be regridded separately many times. I might have thought using the second anatomical as the anatomical dataset (via -copy_anat ..) would be the way to go for this?
Re. the alignment here, are any of the involved EPIs or anatomical datasets oblique? (Check using 3dinfo -obliquity ..) That can complicate this.
Hi Paul,
I want to keep the data in original space, that's why I removed align and tlrc blocks.
I don't think I fully understand what you mean with the second anatomical - should I put the anatomy of session 3 in the processing code of session 1 in -copy_anat line? will this align the epi to the other anatomy?
All raw data here is oblique, but I fix it before the proc.py - the input for copy_anat (*anatMASK) is already plumb, and the errts output is also plumb.
You do still have an "align" block in your list of blocks in the original AP command. Do you want it there?
Re. obliquity: I expect the output of afni_proc.py to be non-oblique, as a result of processing, indeed.
Having oblique EPIs as input is fine and pretty common. Having oblique anatomicals can be fine, but can also create hassles in some cases (different software deal with obliquity differently; in concatenating transforms it has to be accounted for separately in some cases; it is ignored in some of the visualizations, to avoid blurring/resampling and to allow for direct time series viewing in the GUI still).
As another principle, it will generally be preferable to not regrid the EPIs separately, because that incurs extra blurring on them. Every regridding processing (resampling to a new grid or applying obliquity) leads to interpolation, which inherently blurs. Only things like pure translation, purging obliquity or rescaling voxels are coordinate transforms that do not lead to interpolation+blurring.
Maybe stepping back, you have data (EPI + anatomicals) in session 1 and data in session 2. You want all EPIs in the "space" of session 2; more specifically, is the final space in session 2 that of the subject EPI or that of the subect anatomical?
I think it didn't work when I removed the block completely. Should I try again without it?
I don't think it matters if the final space is the anatomical or the EPI, but I want all EPI's to be aligned. I guess the subject's anatomical from session 3 should be the better space to align to.
Thank you,
Maya
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.