The mysterious flipped brain

I previously reviewed a series of DICOM to NIFTI converters.  The entire purpose of this post is to state how important it is to check the orientation of the images coming out of any DICOM to NIFTI converter.  The example today illustrates an incorrect flip in dcm2nii, but I want to stress that this happens […]

Quickly Creating Masks in AFNI

Often when creating a mask to use with 3dROIstats, 3dmaskave, or 3dmaskdump, we will create a mask at a higher resolution than our functional runs, detailed here.  One of the reasons the mask is created at a higher resolution is that we base the anatomical masks on either 1) the high-resolution anatomical or 2) the […]

Using afni_proc.py for fMRI analysis

I receive a lot of questions about how to setup the basic analyses in AFNI.  Previously I detailed using uber_subject.py, the AFNI graphical user interface to afni_proc.py which really does all of the hard work under the hood.  Today I’m going to briefly review the common options in afni_proc.py and why I use them.  You […]

Simulating fMRI Designs

I could say a lot about proper simulation of fMRI experiments.  Basically it’s important to measure the efficiency of your design before an experiment (see here).  If you wanted to perform the calculations yourself, MATLAB/Python/Octave are all options and the process is “fairly simple”. Xmat = [design_matrix’ * design_matrix]; main_effects(ct) = [ contrast’ * (Xmat^-1) […]

Adjusting MRI Smoothness for Multi-Scanner Comparisons

Typically when we smooth (aka spatial filter) our fMRI data using a fixed kernel size.  And as we know, the size of a smoothing kernel makes some difference in the final results (see below).  This shows a group analysis map, the results are more shocking on single subject maps. The common misconception is that you […]