The 'Atlases' panel is organized into three sections:
@@ -231,8 +236,8 @@ Click the (Show/Hide) link after the Left Amygdala; the amygdala overlay will di
If unsure check your results with someone else, or ask for help!
-Make sure all overlays are closed (but keep the `MNI152_T1_2mm.nii.gz` open) before moving to the next section.
-
+!!! warning "Before continuing"
+ Make sure all overlays are closed (but keep the `MNI152_T1_2mm.nii.gz` open) before moving to the next section.
## Using atlas tools to find a brain structure
@@ -251,7 +256,7 @@ Now click on the '+' button next to the tick box. This will centre the viewing c
!!! example "Exercise: Atlas visualization"
- Now try this for yourself:
+ Now try the following exercises for yourself:
- Remove the Heschl's Gyrus visualization. You can tick it off in the 'Atlases' window, or select Heschl's Gyrus in the 'Overlay list' window, and then either toggle its visibility off (click the eye icon) or remove it ('Menu' → 'Overlay' → 'Remove').
- Visualize the Lingual Gyrus and Left Hippocampus. To avoid confusion, change the colour of the Lingual Gyrus visualization from red/yellow to green and Left Hippocampus to blue.
@@ -271,16 +276,12 @@ This time, in the left panel listing different atlases, tick on the option for o
-
-
Now you should see all of the areas covered by the Harvard-Oxford cortical atlas shown on the standard brain. You can click around with the cursor, the labels for the different areas can be seen in the bottom right panel.
-
-
In addition to atlases covering various grey matter structures, there are also two white matter atlases: the JHU ICBM-DTI-81 white-matter labels atlas & JHU white-matter tractography atlas.
If you tick (select) these atlases as per previous instructions (hint using the 'Atlas search' tab), you will see a list of all included white matter tracts (pathways) as shown below:
@@ -319,7 +320,7 @@ Wait for FSLeyes to load, then:
You should now see the MFG overlay in the overlay list (as below) and have a `MFG.nii.gz` file in the `ROImasks` directory. You can check this by typing `ls` in the terminal.
-
+
We will now create a white matter mask. Here are the steps:
@@ -331,7 +332,7 @@ We will now create a white matter mask. Here are the steps:
You should now see the FM overlay in the overlay list (as below) and also have a `FM.nii.gz` file in the `ROImasks` directory.
-
+
You now have two “probabilistic ROI masks”. To use these masks for various analyses, you need to first binarize these images.
diff --git a/docs/workshop2/workshop2-intro.md b/docs/workshop2/workshop2-intro.md
index 93cfd17..a8775ad 100644
--- a/docs/workshop2/workshop2-intro.md
+++ b/docs/workshop2/workshop2-intro.md
@@ -8,7 +8,7 @@ In this workshop we will explore, MRI image fundamentals, MRI data formats, data
- The fundamentals of MRI data, including file types and formats
- Converting between different MRI data files (e.g., DICOM to NIFTI)
- - Introduction to FSLeyes and basic navigation
+ - An introduction to FSLeyes and basic navigation
- Loading atlases and creating regions-of-interest (ROIs)
- Binarizing and thresholding ROIs
diff --git a/docs/workshop3/diffusion-intro.md b/docs/workshop3/diffusion-intro.md
index 81667e8..caed701 100644
--- a/docs/workshop3/diffusion-intro.md
+++ b/docs/workshop3/diffusion-intro.md
@@ -90,7 +90,7 @@ Let's view the content of the `bvals` and `bvecs` files by using the `cat` comma
`cat blip_down.bval`
-
+
The first number is 0. This indicates that indeed the first volume (volume 0) is a non-diffusion weighted image and the third volume (volume 2) is diffusion weighted volume with b=1500.
@@ -118,7 +118,7 @@ All types of distortions need correction during pre-processing steps in diffusio
The processing with these two tools is time and computing intensive. Therefore we will not run the distortion correction steps in the workshop but instead explore some principles behind it.
-
+
For this, you are given distortion corrected data to conduct further analysis, diffusion tensor fitting and probabilistic tractography.
@@ -203,11 +203,11 @@ and then open the 'BET brain extraction tool' by clicking on it in the GUI.
In either case, once BET is opened, click on advanced options and make sure the first two outputs are selected ('brain extracted image' and 'binary brain mask') as below. Select as the 'Input' image the previously created `nodif.nii.gz` and change 'Fractional Intensity Threshold' to 0.4. Then click the 'Go' button.
-
+
-
+
!!! tip "Completing BET in the terminal"
diff --git a/docs/workshop3/diffusion-mri-analysis.md b/docs/workshop3/diffusion-mri-analysis.md
index 15c7fee..5549b4e 100644
--- a/docs/workshop3/diffusion-mri-analysis.md
+++ b/docs/workshop3/diffusion-mri-analysis.md
@@ -27,13 +27,13 @@ To run the diffusion tensor fit, you need 4 files as specified below:
In the FSL GUI, first click on 'FDT diffusion', and in the FDT window, select 'DTIFIT Reconstruct diffusion tensors'. Now choose as 'Input directory' the `data` subdirectory located inside `p01` and click 'Go'.
-
+
You should see something happening in the terminal and once you see 'Done!' you are ready to view the results.
-
+
Click 'OK' when the message appears.
@@ -72,6 +72,7 @@ This would be useful if you want to write a script; we will look at it in the la
Again, please do NOT run it now but try it in your own time with data in the `p02` folder.
The results of running DTIfit are several output files as specified below. We will look closer at the highlighted files in bold.
+
All of these files should be located in the `data` subdirectory, i.e. within `/rds/projects/c/chechlmy-chbh-mricn/xxx/diffusionMRI/DTIfit/p01/data/`.
| Output File | Description |
@@ -127,7 +128,7 @@ The steps for Tract-Based Spatial Statistics are:
5. Each participant’s aligned FA map is then projected back onto the skeleton prior to statistical analysis
6. Hypothesis testing (voxelwise statistics)
-To save time, some of the pre-processing stages including generating FA maps (tensor fitting), preparing data for analysis, registration of FA maps and skeletonization have been run for you and all outputs are included in the `data` folder you have copied at the start of this workshop.
+To save time, some of the pre-processing stages including generating FA maps (tensor fitting), preparing data for analysis, registration of FA maps and skeletonization have been run for you and all outputs are included in the `data` folder you have copied at the start of this workshop.
Tract-Based Spatial Statistics analysis pipeline
@@ -187,7 +188,7 @@ cd FA
imglob *_FA.*
```
-You should see data from the 5 older (o1-o5) followed by data fromthe 10 (y1-y10) younger participants.
+You should see data from the 5 older (o1-o5) followed by data from the 10 (y1-y10) younger participants.
Next navigate back to the `stats` folder and open FSL:
@@ -200,7 +201,7 @@ fsl &
Click on 'Miscellaneous tools' and select 'GLM Setup' to open the GLM GUI.
-
+
In the workshop we will set up a simple group analysis (a two sample unpaired t-test).
@@ -284,7 +285,7 @@ You should see the same results as below:
Are the results as expected? Why/why not?
!!! example "Reviewing the tstat1 image"
- Next review the `tbss_tfce_corrp_tstat1.nii.gz`
+ Next review the image `tbss_tfce_corrp_tstat1.nii.gz`.
!!! info "Further information on TBSS"
More information on TBSS, can be found on the 'TBSS' section of the FSL Wiki: [https://fsl.fmrib.ox.ac.uk/fsl/docs/#/diffusion/tbss](https://fsl.fmrib.ox.ac.uk/fsl/docs/#/diffusion/tbss)
\ No newline at end of file
diff --git a/docs/workshop3/workshop3-intro.md b/docs/workshop3/workshop3-intro.md
index 6d87734..bb60d77 100644
--- a/docs/workshop3/workshop3-intro.md
+++ b/docs/workshop3/workshop3-intro.md
@@ -11,8 +11,8 @@ By the end of the two workshops, you should be able to understand the principles
- Visualizing diffusion data using FSLeyes (before and after distortion correction)
- Using FSL's Brain Extraction Tool (BET) to create a brain mask
- - Understand and perform diffusion tensor fitting (DTIfit) to generate key diffusion metrics like FA (Fractional Anisotropy) and MD (Mean Diffusivity)
- - Learn to conduct Tract-Based Spatial Statistics (TBSS) for group-level comparisons of diffusion data
+ - Performing diffusion tensor fitting (DTIfit) to generate key diffusion metrics like FA (Fractional Anisotropy) and MD (Mean Diffusivity)
+ - Learning to conduct Tract-Based Spatial Statistics (TBSS) for group-level comparisons of diffusion data
We will be working with various previously acquired datasets (similar to the data acquired during the CHBH MRI Demonstration/Site visit). We will not go into details as to why and how specific sequence parameters and specific values of the default settings have been chosen. Some values should be clear to you from the lectures or assigned on Canvas readings, please check there, or if you are still unclear, feel free to ask.
diff --git a/docs/workshop4/probabilistic-tractography.md b/docs/workshop4/probabilistic-tractography.md
index 455994c..3038ed4 100644
--- a/docs/workshop4/probabilistic-tractography.md
+++ b/docs/workshop4/probabilistic-tractography.md
@@ -55,7 +55,7 @@ Then in FSLeyes:
This will likely show that in this case the default brain extraction was good. The reason behind such a good brain extraction with default options is a small FOV and data from a young healthy adult. This is not always the case e.g., when we have a large FOV or data from older participants.
!!! note "More brain extraction to come? You BET!"
- In the next workshop (Workshop 5) we will explore different BET [options] and how to troubleshoot brain extraction.
+ In the next workshop (Workshop 5) we will explore different BET options and how to troubleshoot brain extraction.
## Preparing our data with BEDPOSTX
@@ -68,7 +68,7 @@ To run it, you would need to open FSL GUI, click on FDT diffusion and from drop
- In case of the data being used for this workshop with a single b-value, we need to specify the single-shell model.
+ In case of the data being used for this workshop with a single b-value, we need to specify the single-shell model.
After the workshop, in your own time, you could run it using the provided data (see Tractography Exercises section at the end of workshop notes).
@@ -87,8 +87,6 @@ Typically, registration will be run between three spaces:
This step has been again run for you. To run it, you would need to open FSL GUI, click on 'FDT diffusion' and from the drop down menu select 'Registration'.
The main structural image would be your ”skull-stripped” T1 (`T1_brain`) and non-betted structural image would be T1. Plus you need to select `data.bedpostX` as the 'BEDPOSTX directory'.
-
-
@@ -160,13 +158,13 @@ Close FDT toolbox and then open it again from the terminal to make sure you don
In the FDT Toolbox window - before you select your input in the 'Data' tab - go to the 'Options' tab (as below) and reduce the number of samples to 500 under 'Options'. You would normally run 5000 (default) but reducing this number will speed up processing and is useful for exploratory analyses.
-
+
Now going back to the 'Data' tab (as below) do the following:
-
+
1. Select `data.bedpostX` as 'BEDPOSTX directory'
@@ -183,7 +181,7 @@ Now going back to the 'Data' tab (as below) do the following:
It will take significantly longer this time to run the tractography in standard space. However, once it has finished, you will see the window 'Done!/OK'. Before proceeding, click 'OK'.
-A new subdirectory will be created with the chosen output name `MotorThalamusM1`. Check the contents of this subdirectory. It contains slightly different files compared to the previous tractography output. The main output, the streamline density map is called `fdt_paths.nii.gz`. There is also a file called `waytotal` that contains the total number of valid streamlines runs.
+A new subdirectory will be created with the chosen output name `MotorThalamusM1`. Check the contents of this subdirectory. It contains slightly different files compared to the previous tractography output. The main output, the streamline density map is called `fdt_paths.nii.gz`. There is also a file called `waytotal` that contains the total number of valid streamlines runs.
We will now explore the results from both tractography runs. First close FDT and your terminal as we need FSLeyes, which cannot be loaded together with the current version of FSL.
diff --git a/docs/workshop5/first-level-analysis.md b/docs/workshop5/first-level-analysis.md
index 78fee41..59cc124 100644
--- a/docs/workshop5/first-level-analysis.md
+++ b/docs/workshop5/first-level-analysis.md
@@ -176,7 +176,7 @@ FEAT has a built-in progress watcher, the 'FEAT Report', which you can open in a
To do that, you need to navigate inside the `p01_s1.feat` folder from the BlueBEAR Portal as below and from there select the `report.html` file, and either open it in a new tab or in a new window.
-
+
Watch the webpage for progress. Refresh the page to update and click the links (the tabs near the top of the page) to see the results when available (the 'STILL RUNNING' message will disappear when the analysis has finished).
@@ -223,7 +223,7 @@ Let's have a look and see the effects that other parameters have on the data. To
- High pass filter: set to 30sec (i.e. 50% less than OFF+ON time period).
- Hit 'Go'
-Note that each time you rerun Feat, it creates a new folder with a '+' sign in the name. So you will have folders rather messily named 'p01_s1.feat', 'p01_s1+.feat', 'p01_s1++.feat', and so on. This is rather wasteful of of your precious quota space, so you should delete unnecessary ones after looking at them.
+Note that each time you rerun FEAT, it creates a new folder with a '+' sign in the name. So you will have folders rather messily named `p01_s1.feat`, `p01_s1+.feat`, `p01_s1++.feat`, and so on. This is rather wasteful of of your precious quota space, so you should delete unnecessary ones after looking at them.
For example, if you wanted to remove all files and directories that end with '+' for participant 1:
@@ -262,10 +262,11 @@ Now change the input 4D file, the output directory name, and the registration de
There are therefore 29 separate analyses that need to be done.
- - Analyze each of these 29 fMRI runs independently and put the output of each one into a separate, clearly labelled directory as suggested above.
- - Try and get all these done before the next fMRI workshop in week 10 on higher level fMRI analysis as you will need this processed data for that workshop. You have two weeks to complete this task.
+ Analyze each of these 29 fMRI runs independently and put the output of each one into a separate, clearly labelled directory as suggested above.
+
+ Try and get all these done before the next fMRI workshop in week 10 on higher level fMRI analysis as you will need this processed data for that workshop. You have two weeks to complete this task.
!!! tip "Scripting your analysis"
- It will seem laborious to re-write and re-run 29 separate FEAT analyses; a much quicker way is by scripting our analyses using `bash`. If you would like, try scripting your analyses! Contact one of the course TA's or convenors if you are stuck!
+ It will seem laborious to re-write and re-run 29 separate FEAT analyses; a much quicker way is by scripting our analyses using `bash`. If you would like, try scripting your analyses! We will learn more about `bash` scripting in [the next workshop](https://chbh-opensource.github.io/mri-on-bear-edu/workshop6/workshop6-intro/).
As always, help and further information is also available on the relevant section of the [FSL Wiki](https://fsl.fmrib.ox.ac.uk/fsl/docs/#/task_fmri/feat/index).
diff --git a/docs/workshop5/preprocessing.md b/docs/workshop5/preprocessing.md
index 4d7adf0..e8a0f82 100644
--- a/docs/workshop5/preprocessing.md
+++ b/docs/workshop5/preprocessing.md
@@ -15,7 +15,7 @@ A few extra seconds of “off” (6-8s) were later added at the very end of the
-Normally in any experiment it is very important to keep all the protocol parameters fixed when acquiring the neuroimaging data.
+Normally in any experiment it is very important to keep all the protocol parameters fixed when acquiring the neuroimaging data.
However, in this case we can see different parameters being used which reflect slightly different “best choices” made by different operators over the yearly demonstration sessions:
- The repetition time and voxel size were the same for all scans: (TR = 2000 ms, voxel size 2.5 x 2.5 x 2.5mm).
@@ -47,8 +47,6 @@ You now need to create a copy of the reconstructed fMRI data to be analysed duri
We will now look at how to ”skull-strip” the T1 image (remove the skull and non-brain areas), as this step is needed as part of the registration step in the fMRI analysis pipeline.
We will do this using FSL's BET on the command line. As you should know from previous workshops the basic command-line version of BET is:
-(do not type this command, this is just a reminder)
-
`bet