The aim of this session is to analyze the data we acquired with 3T functional MRI in our simple cognitive neuroscience experiment.
In outline, the first steps will be very similar to what you may remember from another course (C84FIM), where we had a demonstration & walk-through of a simple data sets.
Have a look at the PDF to refresh your memory.
The plan for here is:
- copy data across to a directory in your space
- organise data in folders
- start up
Feat_gui &
- provide all the necessary info in the GUI interface
- hit
Go!
and watch for progress in web browser - dig around in the resulting folders and files
Do this "by hand" - using mouse clicks in the macOS operative system for now. We'll see how to use command line calls in the Terminal soon. Think about which files are:
- functional data
- anatomical images
- "metadata" - wikipedia entry on this idea
Take 2 minutes with your neighbours to discuss the following
- How can you tell (in words?)
- What tools / commands could you choose to check / inspect?
- What are good ways to keep track of some key information? In the same place? Somewhere else? What are the advantages / disadvantages of those options?
# first an "umbrella" folder, then one for subject 2
mkdir ~/data/
mkdir ~/data/subject-A/
# navigate into data directory
cd ~/data/subject-A/
# COPY the files from
# /Volumes/practicals/ds1/2020-dafni/subject-A
# TO here (.)
#
# HOW?
- Orient the MPRAGE image into the "standard" orientation that most tools will expect. This is not always necessary, but if there are issues with "alignment" in your fMRI analysis, this step can help:
# navigate into data directory
cd ~/data/subject-A/
# identify the MPRAGE image.
# mine is: ` ??? `
fslreorient2std *sMPRAGE*.nii mprage
# if you want to skipt this step, you could also just move / rename
immv *sMPRAGE*.nii mprage
- skull strip that anatomy
# inspect, if ok, then skull strip and also make a mask (-m)
bet mprage mprage_brain -m
- look at the images using
fsleyes
Start up feat
either via the fsl
menu or directly.
# navigate into data directory
cd ~/data/subject-A/
# then pick FEAT FMRI analysis
fsl &
# - OR -
Feat_gui &
- What is the name of the 4D data set?
- Check total volumes and TR are picked up correctly.
- Consider all the options in the Pre-stats tab.
- Registration. We to register to a Main structural image as well as into Standard space.
- if you use the
BBR
method you need to use the_brain.nii
image we made in a previous step. This method is pretty cool, but if not given the right files it tends to run for a long time [viz infinite]. - Stats. We want to specify a full model. To do this, we need to use the
face/object/scene.txt
files here
Register onto a nicer image:
# the renderhighres tool!
# get minimal help:
renderhighres
# actually run it:
renderhighres *.feat highres highres 1
You can then look inside the hr
directory and look at the files called rendered_thresh_zstat
.