generated from carpentries-incubator/template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from carpentries-incubator/gh-pages
fork catchup
- Loading branch information
Showing
66 changed files
with
1,052 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
FIXME: list authors' names and email addresses. | ||
Nikhil Bhagwat [email protected] | ||
Erin Dickie [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: "Course Overview" | ||
teaching: 30 | ||
exercises: 0 | ||
questions: | ||
- "How are structural MR imaging analyses performed?" | ||
objectives: | ||
- "Overview of various (pre)processing tasks involved in a sMRI pipeline and subsequent statistical analyses" | ||
keypoints: | ||
- "sMRI preprocessing is a starting point to gain insight into brain anatomy and its variations" | ||
--- | ||
|
||
## You Are Here! | ||
![course_flow](../fig/episode_0/Course_flow_0.png) | ||
|
||
Welcome to the **Structural Neuroimaging Analysis in Python** workshop! The primary goals of this workshop are: | ||
|
||
1. Understand basics of strcutural MR image acquisition | ||
2. Familiarize with structural MR image (pre)processing pipeline | ||
3. Perform and visualize group-level neuroanatomical analyses | ||
|
||
## The Central Objective | ||
|
||
This workshop is designed to teach you the basics of handling structural MR images in Python and familiarize you with common image processing tasks in an sMRI processing pipeline part of typical neuroanatomical analyses within case-control studies. | ||
|
||
All of this may sound complicated, but we'll explain things step-by-step in depth with practical examples as the course goes along. | ||
|
||
## Topics Covered | ||
|
||
1. sMRI Modalities | ||
2. sMRI Preprocessing (Part 1: image clean-up) | ||
3. sMRI Preprocessing (Part 2: spatial normalization) | ||
4. sMRI Quantification | ||
5. sMRI Quality-Control | ||
6. Statistical Analyses (Part 1: ROIs) | ||
7. Statistical Analyses (Part 2: voxels) | ||
8. Reproducibility Considerations | ||
|
||
In the next section we'll begin with looking at commonly used sMRI modalities in neuroanatomical studies! | ||
|
||
{% include links.md %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
title: "Introduction to structural MR image modalities" | ||
teaching: 20 | ||
exercises: 10 | ||
questions: | ||
- "How is structural MR image acquired?" | ||
- "What anatomical features do different modalities capture?" | ||
objectives: | ||
- "Visualize and understand differnces in T1,T2,PD/FLAIR weighted images." | ||
keypoints: | ||
- "Different acquisition techniques will offer better quantification of specific brain tissues" | ||
--- | ||
## You Are Here! | ||
![course_flow](../fig/episode_1/Course_flow_1.png) | ||
|
||
|
||
## Image acquisition | ||
1. The acquition starts with application of strong magnetic field B<sub>0</sub> (e.g. 1.5 or 3.0 Tesla > 10000x earth's magnetic field) which forces the hydrogen nuclei of the abundant water molecules in soft tissues in the body to align with the field. You can think of hydrogen nuclei as tiny magnets of their own. | ||
2. Then the scanner applies a RF pulse which tilts these nuclei from their alighment along B<sub>0</sub> and then _precess_ back to the alignment. The _precessing_ nuclei emit a signal, which is registered by the receiver coils in the scanner. | ||
3. This signal has two components: 1) _Longitudinal_ (z-axis along the scanner's magnetic field) 2) _Transverse_ (xy-plane orthogonal to the scanner's magnetic field). | ||
4. Initially the longitudinal signal is weak as most nuclei are tilted away from the z-axis. However this signal grows as nuclei realign. The _time constant_ that dictates the speed of re-alignment is denoted by _T1_. | ||
5. Initially the transverse signal is strong as most nuclei are in phase _coherence_. The signal decays as the nuclei dephase as they realign. This decay is denoted by the _T2 time constant_. | ||
7. The tissue specific differences in T1 and T2 relaxation times is what enables us to _see_ anatomy from image contrast. The final image contrast depends on when you _listen_ to the signal (design parameter: echo time (TE)) and how fast you repeat the _tilt-relax_ process i.e. RF pulse freuqency (design parameter: repetition time (TR)). | ||
|
||
|
||
### T1 and T2 relaxation | ||
Here we see signal from two different tissues as the nuclei are tilted and realigned. | ||
![MR_relax](https://user-images.githubusercontent.com/7978607/112332334-08750c80-8c90-11eb-90fc-33956c037a1c.gif) | ||
|
||
### T1w, T2w, and PD acquisition | ||
|
||
| | TE short | TE ~ T2 of tissue of interest| | ||
| :-------------: | :----------: | :-----------: | | ||
| **TR ~ T1 of tissue of interest** | T1w | - | | ||
| **TR long** | Proton Density (PD) | T2w | | ||
|
||
_Note_: More recently, the FLAIR (Fluid Attenuated Inversion Recovery) sequence has replaced the PD image. FLAIR images are T2-weighted with the CSF signal suppressed. | ||
|
||
### T1 and T2 relaxation times for various tissues | ||
|
||
| | T1 (ms) | T2 (ms) | | ||
| :-------------: | :----------: | :-----------: | | ||
| Bones | 500 | 50 | | ||
| CSF | 4000 | 500 | | ||
| Grey Matter | 1300 | 110 | | ||
| White Matter | 800 | 80 | | ||
|
||
### T1w, T2w image contrasts | ||
|
||
| T1w | T2w | | ||
| :-------------: | :-----------: | | ||
| ![T1](../fig/episode_1/T1.gif) | ![T2](../fig/episode_1/T2.gif) | | ||
|
||
|
||
### Applications per modality | ||
|
||
| Modality | Contrast Characteristics | Use Cases | | ||
| :-------------: | :-----------: | :-----------: | | ||
| T1w | Cerebrospinal fluid is dark | Quantifying anatomy _e.g. measure structrual volumes_ | | ||
| T2w | CSF is light, but white matter is darker than with T1 | Identify pathologies related to lesions and tumors | | ||
| PD | CSF is bright. Gray matter is brighter than white matter | Identify demyelination| | ||
| FLAIR | Similar to T2 with the CSF signal suppressed| Identify demyelination | | ||
|
||
**Note: In this lesson, we have only talked about image contrast which is most relevent to sMRI image pipelines. The details of spatial encoding and k-space transforms are out of the scope.** | ||
|
||
{% include links.md %} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: "Image preprocessing with smriprep (Part 1: image clean-up)" | ||
teaching: 20 | ||
exercises: 10 | ||
questions: | ||
- "What are the sources of noise and artifacts in MR images?" | ||
- "How do we extract/mask the brain?" | ||
objectives: | ||
- "Visualize bias fields and motion artifacts" | ||
- "Generate brain masks" | ||
keypoints: | ||
- "Presence of artifacts can lead to flawed analsis and incorrect findings" | ||
--- | ||
## You Are Here! | ||
![course_flow](../fig/episode_2/Course_flow_2.png) | ||
|
||
## Image Clean-ups | ||
### Intensity normalization (a.k.a bias field correction; a.k.a. intensity inhomogeneity correction) | ||
|
||
- The bias field is a low-frequency spatially varying MRI artifact resulting from spatial inhomogeneity of the magnetic field, | ||
variations in the sensitivity of the reception coil, and the interaction between the magnetic field and the human body. | ||
- It causes a smooth signal intensity variation within tissue of the same physical properties. | ||
- The bias field is dependent on the strength of the magnetic field. If it is not corrected for 1.5T or higher MR scanners, it can considerably affect downstram analyses. | ||
- Commonly used tools | ||
- [ANTs N4 bias correction](https://pubmed.ncbi.nlm.nih.gov/20378467/) (See figure below) | ||
- [FSL FAST](https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FAST) (_Note:FSL FAST is a multi-purpose segmentation tool that includes the bias field correction._) | ||
|
||
- ANTs N4 correction | ||
- ![N4_bias](../fig/episode_2/N4_bias.jpeg) | ||
|
||
- Impact of correction (_source: [Despotović et al.](https://www.hindawi.com/journals/cmmm/2015/450341/)_) | ||
- ![bias_correction](../fig/episode_2/Despotovic_bias_correction.png) | ||
|
||
|
||
### Brain extraction (a.k.a skull-stripping) | ||
- Image contrasts from nonbrain tissues such as fat, skull, or neck can cause issues with downstream analyses starting with brain tissue segmentation. | ||
- The brain extraction generates a mask that identifies brain voxels comprising grey-matter (GM), white-matter(WM), and Cerebrospinal fluid (CSF) of | ||
the cerebral cortex and subcortical structures, including the brain stem and cerebellum. | ||
- The scalp, dura matter, fat, skin, muscles, eyes, and bones are classified as nonbrain voxels. | ||
|
||
- Commonly used tools | ||
- [antsBrainExtraction](https://nipype.readthedocs.io/en/latest/api/generated/nipype.interfaces.ants.html#brainextraction) | ||
- [FSL brain extraction tool (BET)](https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/BET) | ||
|
||
- ANTs Brain Extraction | ||
- ![ANTs_brain_extract](../fig/episode_2/brainextraction_t1.jpg) | ||
|
||
- FSL BET | ||
- ![FSL_brain_extract](../fig/episode_2/bet2_eg_small.png) | ||
|
||
|
||
{% include links.md %} | ||
|
Oops, something went wrong.