Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add keypoints to episodes #46

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion episodes/anatomy-of-nifti.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@
```

`t1_data` contains 3 dimensions. You can think of the data as a 3D version of a picture (more accurately, a volume).
![](fig/numpy_arrays.png)

Check warning on line 326 in episodes/anatomy-of-nifti.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/numpy_arrays.png


:::::::::::::::::::::::::

While typical 2D pictures are made out of squares called **pixels**, a 3D MR image is made up of 3D cubes called **voxels**.
![](fig/mri_slices.jpg)

Check warning on line 332 in episodes/anatomy-of-nifti.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/mri_slices.jpg
What about the how big each dimension is (shape)?

::::::::::::::: solution
Expand Down Expand Up @@ -411,7 +411,7 @@
Giving our 3D volume, we pull out a 2D slice of our data.
Here's an example of slicing from left to right (sagittal slicing):

![](fig/T1w.gif)

Check warning on line 414 in episodes/anatomy-of-nifti.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/T1w.gif

This gif is a series of 2D images or **slices** moving from left to right.

Expand Down Expand Up @@ -515,7 +515,7 @@

Applying the affine matrix (`t1_affine`) is done through using a *linear map* (matrix multiplication) on voxel coordinates (defined in `t1_data`).

![](fig/coordinate_systems.png)

Check warning on line 518 in episodes/anatomy-of-nifti.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/coordinate_systems.png

The concept of an affine matrix may seem confusing at first but an example might help gain an intuition:

Expand Down Expand Up @@ -548,7 +548,10 @@

:::::::::::::::::::::::::::::::::::::::: keypoints

-
- NIfTI image contain a header, which describes the contents, and the data.
- The position of the NIfTI data in space is determined by the affine matrix.
- NIfTI data is a multi-dimensional array of values.

::::::::::::::::::::::::::::::::::::::::::::::::::


3 changes: 2 additions & 1 deletion episodes/bids-derivatives.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- **Singularity**
- for running containers on high performance compute clusters

![](fig/bids_app.png)

Check warning on line 41 in episodes/bids-derivatives.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/bids_app.png

Building a singularity container is as easy as:

Expand All @@ -57,7 +57,8 @@

:::::::::::::::::::::::::::::::::::::::: keypoints

-
- BIDS Apps are containerized applications that run on BIDS-compatible datasets.

::::::::::::::::::::::::::::::::::::::::::::::::::


4 changes: 3 additions & 1 deletion episodes/data-organization-bids.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ Using the same structure for all of your studies will allow you to easily reuse

:::::::::::::::::::::::::::::::::::::::: keypoints

-
- BIDS is an organizational principle for neuroimaging data.
- Converting a raw MRI dataset to a BIDS-compatible dataset streamlines data processing pipelines.

::::::::::::::::::::::::::::::::::::::::::::::::::


4 changes: 2 additions & 2 deletions episodes/open-mri-datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ df.head()

:::::::::::::::::::::::::::::::::::::::: keypoints

- BIDS is an organizational principle for neuroimaging data
- PyBIDS is a Python-based tool that allows for easy exploration of BIDS-formatted neuroimaging data
- Public neuroimaging BIDS-compatible data repositories allow for pulling data easily.
- PyBIDS is a Python-based tool that allows for easy exploration of BIDS-formatted neuroimaging data.

::::::::::::::::::::::::::::::::::::::::::::::::::

Expand Down
4 changes: 3 additions & 1 deletion episodes/scanner-to-computer.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

### Anatomical

![](fig/t1t2flairbrain.jpg)

Check warning on line 27 in episodes/scanner-to-computer.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/t1t2flairbrain.jpg

*Sourced from [https://case.edu/med/neurology/NR/MRI%20Basics.htm](https://case.edu/med/neurology/NR/MRI%20Basics.htm)*

Expand All @@ -33,9 +33,9 @@

### Functional

![](fig/bold.gif)

Check warning on line 36 in episodes/scanner-to-computer.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/bold.gif

![](fig/fmri_timeseries.png)

Check warning on line 38 in episodes/scanner-to-computer.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/fmri_timeseries.png

*Sourced from Wagner and Lindquist, 2015*

Expand All @@ -44,9 +44,9 @@

### Diffusion

![](fig/dwi.gif)

Check warning on line 47 in episodes/scanner-to-computer.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/dwi.gif

![](fig/dwi_tracts.png)

Check warning on line 49 in episodes/scanner-to-computer.md

View workflow job for this annotation

GitHub Actions / Build markdown source files if valid

[image missing alt-text]: fig/dwi_tracts.png

*Sourced from [http://brainsuite.org/processing/diffusion/tractography/](https://brainsuite.org/processing/diffusion/tractography/)*

Expand Down Expand Up @@ -110,7 +110,9 @@

:::::::::::::::::::::::::::::::::::::::: keypoints

-
- MRI can capture anatomical (structural), functional, or diffusion features.
- A number of file formats exist to store neuroimaging data.

::::::::::::::::::::::::::::::::::::::::::::::::::


Loading