I am new to AfNI, and I created a script using uber_subjec.py. I ran this script on 10 samples, and 8 out of 10 showed a similar big mismatch between anatomical and EPI data. After checking the attached QC report, can you suggest how should I change my script? If you have suggestion for other than alignment, that would be great as well! Thanks.
OK, I don’t know what your afni_proc.py command actually is – you could post it for advice.
I am guessing that you will need the “-giant_move” or option,because your EPI and anatomical appear to be far apart from each other? I am not certain from the present information. However, adding this to your afni_proc.py command should probably help:
-align_opts_aea -cost lpc+ZZ -giant_move \
For your template choice, probably a higher-contrast one would be better-- a different MNI, like the MNI152_2009_template.nii.gz, probably. Actually, looking at the skullstripping there a bit (from the underlay in the stats image), you might want to use “@SSwarper” to perform both skullstripping and nonlinear alignment to the anatomical template. There might be some useful comments on this step, and on processing FMRI data in general, here: https://www.biorxiv.org/content/10.1101/308643v1.abstract
… and you could check out the code scripts associated with that here: https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/codex/main_det_2018_TaylorEtal.html
… focusing mostly on this script: s.nimh_subject_level_01_qwarp.tcsh
but do make sure to read the article there, because it describes why would still change some steps that we had to include there for the purpose of the other group’s comparison.
Oh, and another thing-- we generally don’t recommend building a script from uber_subject.py; it does not have the full array of options that afni_proc.py does. You might be better off looking at “modern processing examples” in the afni_proc.py help, like example #6 for task?
And last note here: if you have the Python module “matplotlib” available on your computer, you might find it useful to add this option to your afni_proc.py command to have a slightly fancier/nicer looking HTML QC document:
-html_review_style pythonic
And you might want to update your version of AFNI (with “@update.afni.binaries -d”), because from the format of the QC block titles, I think there should be a more modern version of QC functionality.
Thanks for your suggestions. I have a question about using SSwarper. In my original script, I used align_epi_anat.py and @auto_tlrc for skull-stripping and aligning anatomical data to standard space as you can see below.
Although I can’t find the source, I kind of remember reading that SSwarper simply combined these two functions. If that is the case, using SSwarper wouldn’t change the results, right?
@SSwarper combines the steps of skullstripping and alignment to a template space, but it does so in a different way than @auto_tlrc and 3dSkullstrip, for example.
For one thing, @SSwarper uses nonlinear alignment, whereas @auto_tlrc uses linear affine transformations. The former will get muuuch better sulcal/gyral pattern agreement between a subject’s anatomical and the reference dset of interest, in general. Also, in practice @SSwarper has provided really nice skullstripping, as it oscillates back and forth between aligning the anatomical to a template reference and using that reference template to “punch out” the skull, like a cookie-cutter.
As you suggest, I used SSwarper for skulstripping and alignment. I found significant improvement in the alignment of anatomical data to a standard template. However, EPI to ANA alignment is still poor. I also notice that the “Check: statistics vols” no longer shows up on my QC report. Can you provide further advice?
I will PM you instructions to upload some data so I can take a look. It isn’t obvious to me why the “vstat” QC block would no longer be around.
As to the alignment, it isn’t perfect, but I’d like to see what the EPI set looks like.
–pt
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.