Skip to content

Commit 0915cee

Browse files
Update tutorial notebooks
1 parent b67db22 commit 0915cee

File tree

5 files changed

+103
-103
lines changed

5 files changed

+103
-103
lines changed

docs/notebook/01-intro.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "d6586284",
5+
"id": "2000f9bd",
66
"metadata": {},
77
"source": [
88
"# The problem of head-motion in dMRI"
@@ -11,7 +11,7 @@
1111
{
1212
"cell_type": "code",
1313
"execution_count": null,
14-
"id": "866a3443",
14+
"id": "16e3b7ac",
1515
"metadata": {
1616
"tags": [
1717
"remove-cell"
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "markdown",
31-
"id": "49b5afd6",
31+
"id": "899f3c43",
3232
"metadata": {},
3333
"source": [
3434
"A recurring problem for any MRI acquisition is that image reconstruction and modeling are extremely sensitive to very small changes in the position of the imaged object.\n",
@@ -41,7 +41,7 @@
4141
{
4242
"cell_type": "code",
4343
"execution_count": null,
44-
"id": "e779ac52",
44+
"id": "75a8775e",
4545
"metadata": {
4646
"tags": [
4747
"remove-input"
@@ -54,7 +54,7 @@
5454
},
5555
{
5656
"cell_type": "markdown",
57-
"id": "5d008192",
57+
"id": "bea63d55",
5858
"metadata": {},
5959
"source": [
6060
"## Dimensions of the head-motion problem\n",

docs/notebook/02-data.ipynb

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "60b5e291",
5+
"id": "5fd862f3",
66
"metadata": {},
77
"source": [
88
"# Introduction to dMRI data"
@@ -11,7 +11,7 @@
1111
{
1212
"cell_type": "code",
1313
"execution_count": null,
14-
"id": "f55c036f",
14+
"id": "5664b87d",
1515
"metadata": {
1616
"tags": [
1717
"remove-cell"
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "markdown",
31-
"id": "53e08b2f",
31+
"id": "648db9eb",
3232
"metadata": {},
3333
"source": [
3434
"Diffusion imaging probes the random, microscopic movement of water molecules by using MRI sequences that are sensitive to the geometry and environmental organization surrounding these protons.\n",
@@ -40,7 +40,7 @@
4040
{
4141
"cell_type": "code",
4242
"execution_count": null,
43-
"id": "45f14017",
43+
"id": "2eea8b8a",
4444
"metadata": {
4545
"tags": [
4646
"remove-input"
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "markdown",
56-
"id": "ca95e692",
56+
"id": "116dbb36",
5757
"metadata": {},
5858
"source": [
5959
"*Sourced from Dr. A. Rokem, DIPY Workshop 2021*\n",
@@ -86,7 +86,7 @@
8686
{
8787
"cell_type": "code",
8888
"execution_count": null,
89-
"id": "fa2291b3",
89+
"id": "a07690dd",
9090
"metadata": {},
9191
"outputs": [],
9292
"source": [
@@ -124,7 +124,7 @@
124124
},
125125
{
126126
"cell_type": "markdown",
127-
"id": "8cd9d100",
127+
"id": "87c993b0",
128128
"metadata": {},
129129
"source": [
130130
"This code implements several *attributes* as well as a *behavior* - the `__len__` *method*.\n",
@@ -136,7 +136,7 @@
136136
{
137137
"cell_type": "code",
138138
"execution_count": null,
139-
"id": "a0f97868",
139+
"id": "ad54c224",
140140
"metadata": {},
141141
"outputs": [],
142142
"source": [
@@ -152,7 +152,7 @@
152152
},
153153
{
154154
"cell_type": "markdown",
155-
"id": "816f0374",
155+
"id": "c1008cf3",
156156
"metadata": {},
157157
"source": [
158158
"The output of this `print()` statement is telling us that this (simulated) dataset has 64 diffusion-weighted samples.\n",
@@ -169,7 +169,7 @@
169169
{
170170
"cell_type": "code",
171171
"execution_count": null,
172-
"id": "d847c2cd",
172+
"id": "e2f7d9c4",
173173
"metadata": {},
174174
"outputs": [],
175175
"source": [
@@ -183,7 +183,7 @@
183183
},
184184
{
185185
"cell_type": "markdown",
186-
"id": "ddc3a0c0",
186+
"id": "e4089417",
187187
"metadata": {},
188188
"source": [
189189
"In this case, the dataset is reporting to have 102 diffusion-weighted samples.\n",
@@ -195,7 +195,7 @@
195195
{
196196
"cell_type": "code",
197197
"execution_count": null,
198-
"id": "1f196426",
198+
"id": "93fde81e",
199199
"metadata": {},
200200
"outputs": [],
201201
"source": [
@@ -204,7 +204,7 @@
204204
},
205205
{
206206
"cell_type": "markdown",
207-
"id": "7d4916b9",
207+
"id": "c9d41046",
208208
"metadata": {},
209209
"source": [
210210
"Perhaps, the most interesting aspect of our DWI data structure is that it allows indexed access.\n",
@@ -214,7 +214,7 @@
214214
{
215215
"cell_type": "code",
216216
"execution_count": null,
217-
"id": "015c51be",
217+
"id": "3cc07497",
218218
"metadata": {},
219219
"outputs": [],
220220
"source": [
@@ -225,7 +225,7 @@
225225
},
226226
{
227227
"cell_type": "markdown",
228-
"id": "8562ddb6",
228+
"id": "ccb3d63c",
229229
"metadata": {},
230230
"source": [
231231
"## Visualizing the data\n",
@@ -246,7 +246,7 @@
246246
{
247247
"cell_type": "code",
248248
"execution_count": null,
249-
"id": "58ab5fd5",
249+
"id": "066f1f84",
250250
"metadata": {
251251
"tags": [
252252
"hide-cell"
@@ -261,7 +261,7 @@
261261
},
262262
{
263263
"cell_type": "markdown",
264-
"id": "0ba86437",
264+
"id": "9b961d6c",
265265
"metadata": {},
266266
"source": [
267267
"When calling `plot_dwi()`, we will be required a 3D data object, and optionally, an `affine` orientation matrix and a `gradient` or b-vector.\n",
@@ -281,7 +281,7 @@
281281
{
282282
"cell_type": "code",
283283
"execution_count": null,
284-
"id": "1b673a7a",
284+
"id": "30984326",
285285
"metadata": {
286286
"tags": [
287287
"hide-cell"
@@ -296,7 +296,7 @@
296296
{
297297
"cell_type": "code",
298298
"execution_count": null,
299-
"id": "38211d1a",
299+
"id": "453f2679",
300300
"metadata": {
301301
"tags": [
302302
"hide-cell"
@@ -310,7 +310,7 @@
310310
},
311311
{
312312
"cell_type": "markdown",
313-
"id": "03d34457",
313+
"id": "7c428553",
314314
"metadata": {},
315315
"source": [
316316
"Diffusion that exhibits directionality in the same direction as the gradient results in a loss of signal.\n",
@@ -334,7 +334,7 @@
334334
{
335335
"cell_type": "code",
336336
"execution_count": null,
337-
"id": "6987b941",
337+
"id": "972705d7",
338338
"metadata": {
339339
"tags": [
340340
"hide-cell"
@@ -347,7 +347,7 @@
347347
},
348348
{
349349
"cell_type": "markdown",
350-
"id": "7d69cd66",
350+
"id": "5b9e0e9b",
351351
"metadata": {},
352352
"source": [
353353
"We get a $4\\times102$ -- three spatial coordinates ($b_x$, $b_y$, $b_z$) of the unit-norm \"*b-vector*\", plus the gradient sensitization magnitude (the \"*b-value*\"), with a total of 102 different orientations for the case at hand.\n",
@@ -363,7 +363,7 @@
363363
{
364364
"cell_type": "code",
365365
"execution_count": null,
366-
"id": "b93fd080",
366+
"id": "59a83019",
367367
"metadata": {
368368
"tags": [
369369
"hide-cell"
@@ -376,7 +376,7 @@
376376
},
377377
{
378378
"cell_type": "markdown",
379-
"id": "fb177e95",
379+
"id": "f70113b9",
380380
"metadata": {},
381381
"source": [
382382
"Later, we'll refer to this array as the gradient table.\n",
@@ -395,7 +395,7 @@
395395
{
396396
"cell_type": "code",
397397
"execution_count": null,
398-
"id": "d2d62ef9",
398+
"id": "e1c9d481",
399399
"metadata": {},
400400
"outputs": [],
401401
"source": [
@@ -406,7 +406,7 @@
406406
},
407407
{
408408
"cell_type": "markdown",
409-
"id": "6c418921",
409+
"id": "ae9e36ee",
410410
"metadata": {},
411411
"source": [
412412
"We've projected all of the gradient directions onto the surface of a sphere, with each unique gradient strength colour-coded.\n",

0 commit comments

Comments
 (0)