Skip to content

Commit 064a7b3

Browse files
committed
Merge branch 'bep-016' of github.com:arokem/bids-specification into bep-016
2 parents cbb5c5f + 616e3e4 commit 064a7b3

File tree

3 files changed

+79
-40
lines changed

3 files changed

+79
-40
lines changed

src/derivatives/diffusion-derivatives.md

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -263,17 +263,21 @@ Some fields are relevant only to specific [orientation encoding types](#orientat
263263
- Where a field is *not* relevant for the corresponding image,
264264
that metadata field MUST NOT be specified.
265265

266+
Auto-generated table:
267+
266268
{{ MACROS___make_metadata_table(
267269
{
268-
"BootstrapAxis": ("OPTIONAL", "Applicable to any orientation encoding type"),
269-
"Description": ("OPTIONAL", "Applicable to any orientation encoding type"),
270-
"NonNegativity": ("OPTIONAL", "Applicable to all orientation encoding types except [spherical coordinates](#encoding-spherical) and [3-vectors](#encoding-3vector)"),
271-
"OrientationEncoding": ("REQUIRED", "Applicable to any orientation encoding type"),
272-
"ParameterURL": ("OPTIONAL", "Applicable to any orientation encoding type"),
273-
"ResponseFunction": ("OPTIONAL", "Applicable to [spherical harmonics](#encoding-sh)"),
270+
"BootstrapAxis": ("OPTIONAL", "Applicable to any orientation encoding type."),
271+
"Description": ("OPTIONAL", "Applicable to any orientation encoding type."),
272+
"NonNegativity": ("OPTIONAL", "Applicable to all orientation encoding types except [spherical coordinates](#encoding-spherical) and [3-vectors](#encoding-3vector)."),
273+
"OrientationEncoding": ("REQUIRED", "Applicable to any orientation encoding type."),
274+
"ParameterURL": ("OPTIONAL", "Applicable to any orientation encoding type."),
275+
"ResponseFunction": ("OPTIONAL", "Applicable to [spherical harmonics](#encoding-sh)."),
274276
}
275277
) }}
276278

279+
Manual table:
280+
277281
| **Key name** | Relevant [orientation encoding types](#orientation-encoding-types) | **Description** |
278282
| ------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
279283
| BootstrapAxis | Any | OPTIONAL. Integer. If multiple realizations of a given parameter are stored in a NIfTI image, this field nominates the image axis (indexed from zero) along which those multiple realizations are stored. |
@@ -285,8 +289,12 @@ Some fields are relevant only to specific [orientation encoding types](#orientat
285289

286290
Dictionary `"OrientationEncoding"` has the following reserved keywords:
287291

292+
Auto-generated table:
293+
288294
{{ MACROS___make_subobject_table("metadata.OrientationEncoding") }}
289295

296+
Manual table:
297+
290298
| **Key name** | Relevant [orientation encoding types](#orientation-encoding-types) | **Description** |
291299
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
292300
| AmplitudesDirections | [Amplitudes](#encoding-amp) | REQUIRED for `"Type": "amplitudes"`; MUST NOT be specified otherwise. List of lists of floats. Data are either [spherical coordinates (directions only)](#encoding-spherical) or [3-vectors](#encoding-3vector) with unit norm. Defines the dense directional basis set on which samples of a spherical function within each voxel are provided. The length of the list must be equal to the number of volumes in the image. |
@@ -309,8 +317,12 @@ Field `"OrientationEncoding"["Reference"]` MUST contain one of the following val
309317

310318
Dictionary `"ResponseFunction"` has the following reserved keywords:
311319

320+
Auto-generated table:
321+
312322
{{ MACROS___make_subobject_table("metadata.ResponseFunction") }}
313323

324+
Manual table:
325+
314326
| **Key name** | **LongName** | **Description** |
315327
| ------------ | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
316328
| coefficients | coefficients | REQUIRED. Either a list of floats, or a list of lists of floats, depending on the mathematical form of the response function and possibly the data to which it applies; see further below. |
@@ -468,10 +480,12 @@ Contents of JSON file "`sub-01_model-csd_param-wm_dwimap.json`":
468480
},
469481
"ParameterURL": "http://www.sciencedirect.com/science/article/pii/S1053811911012092",
470482
"ResponseFunction": {
471-
"Coefficients": [ [ 600.2 0.0 0.0 0.0 0.0 0.0 ],
472-
[ 296.3 -115.2 24.7 -4.4 -0.5 1.8 ],
473-
[ 199.8 -111.3 41.8 -10.2 2.1 -0.7 ],
474-
[ 158.3 -98.7 48.4 -17.1 4.5 -1.4 ] ],
483+
"Coefficients": [
484+
[600.2, 0.0, 0.0, 0.0, 0.0, 0.0],
485+
[296.3, -115.2, 24.7, -4.4, -0.5, 1.8],
486+
[199.8, -111.3, 41.8, -10.2, 2.1, -0.7],
487+
[158.3, -98.7, 48.4, -17.1, 4.5, -1.4]
488+
],
475489
"Type": "zsh"
476490
}
477491
}
@@ -495,10 +509,12 @@ Contents of JSON file "`sub-01_model-csd_param-gm_dwimap.json`":
495509
"Type": "sh",
496510
},
497511
"ResponseFunction": {
498-
"Coefficients": [ [ 1041.0 ],
499-
[ 436.6 ],
500-
[ 224.9 ],
501-
[ 128.8 ] ],
512+
"Coefficients": [
513+
[1041.0],
514+
[436.6],
515+
[224.9],
516+
[128.8]
517+
],
502518
"Type": "zsh"
503519
}
504520
}
@@ -523,10 +539,10 @@ Contents of JSON file "`sub-01_model-csd_param-csf_dwimap.json`":
523539
},
524540
"ResponseFunction": {
525541
"Coefficients": [
526-
[ 3544.90770181 ],
527-
[ 134.441453035 ],
528-
[ 32.0826839826 ],
529-
[ 29.3674604452 ]
542+
[3544.90770181],
543+
[134.441453035],
544+
[32.0826839826],
545+
[29.3674604452]
530546
],
531547
"Type": "zsh"
532548
}
@@ -993,8 +1009,8 @@ Notes:
9931009

9941010
*N* = ((*l<sub>max</sub>*+1) x (*l<sub>max</sub>*+2)) / 2
9951011

996-
| ***l<sub>max</sub>*** | 0 | 2 | 4 | 6 | 8 | 10 | ... |
997-
| --------------------- |--:|--:|--: |--: |--: |--: | :--: |
1012+
| ***l<sub>max</sub>*** | 0 | 2 | 4 | 6 | 8 | 10 | ... |
1013+
| --------------------- | --:| --:| --: | --: | --: | --: | :--: |
9981014
| ***N*** | 1 | 6 | 15 | 28 | 45 | 66 | ... |
9991015

10001016
- Relationship between maximal degree of *zonal* spherical harmonic
@@ -1005,5 +1021,5 @@ Notes:
10051021
*N* = 1 + (*l<sub>max</sub>* / 2)
10061022

10071023
| ***l<sub>max</sub>*** | 0 | 2 | 4 | 6 | 8 | 10 | ... |
1008-
| --------------------- |--:|--:|--:|--:|--:|--: | :--: |
1024+
| --------------------- | --: | --: | --: | --: | --: | --: | :--: |
10091025
| ***N*** | 1 | 2 | 3 | 4 | 5 | 6 | ... |

0 commit comments

Comments
 (0)