Skip to content

Commit 8d862e7

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enh/fieldmaps-refactor
2 parents 8377588 + b687525 commit 8d862e7

23 files changed

+683
-136
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
name: check links
3838
command: |
3939
git status
40-
if (! git log -1 --pretty=%b | grep REL:) ; then
40+
if (! git log -1 --pretty=oneline | grep REL:) ; then
4141
chmod a+rX -R ~
4242
linkchecker -t 1 ~/project/site/
4343
# check external separately by pointing to all *html so no

CONTRIBUTING.md

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Jump to the following sections:
2525
- [Example pull request](#example-pull-request)
2626
- [Commenting on a pull request](#commenting-on-a-pull-request)
2727
- [Accepting suggestion from a review](#accepting-suggestion-from-a-review)
28-
- [Updating the specification schema](#updating-the-schema)
28+
- [Making a change to the BIDS-schema](#making-a-change-to-the-BIDS-schema)
2929
- [Recognizing contributions](#recognizing-contributions)
3030

3131
## Joining the community
@@ -575,47 +575,20 @@ reviewer as a co-author.
575575

576576
![BIDS_pr_reviewer_credit](commenting_images/BIDS_pr_reviewer_credit.png "BIDS_pr_reviewer_credit")
577577

578-
## Updating the schema
579-
580-
Portions of the BIDS specification are defined using YAML files, in order to
581-
make the specification machine-readable.
582-
Currently, the only portion of the specification that relies on this schema is
583-
the Entity Table, but any changes to the specification should be mirrored in the schema.
584-
585-
### The format of the schema
586-
587-
The schema reflects the files and objects in the specification, as well as
588-
associations between these objects.
589-
Here is a list of the files and subfolders of the schema, roughly in order of importance:
590-
591-
- `datatypes/*.yaml`:
592-
Data types supported by the specification.
593-
Each datatype may support many suffixes.
594-
These suffixes are divided into groups based on what extensions and entities are allowed for each.
595-
Data types correspond to subfolders (for example, `anat`, `func`) in the BIDS structure.
596-
- `entities.yaml`:
597-
A list of entities (key/value pairs in folder and filenames) with associated descriptions and formatting rules.
598-
The order of the entities in the file determines the order in which entities must appear in filenames.
599-
- `top_level_files.yaml`:
600-
Modality-agnostic files stored at the top level of a BIDS dataset.
601-
The schema specifies whether these files are required or optional, as well as acceptable extensions for each.
602-
- `modalities.yaml`:
603-
Modalities supported by the specification, along with a list of associated data types.
604-
Modalities are not reflected directly in the BIDS structure, but data types are modality-specific.
605-
- `associated_data.yaml`:
606-
Folders that are commonly contained within the same folder as a BIDS dataset, but which do not follow the BIDS structure internally, such as `code` or `sourcedata`.
607-
The schema specifies which folders are accepted and whether they are required or optional.
608-
609-
### Making a change to the schema
610-
611-
#### 1. Ensure that changes to the specification are matched in the schema
578+
## Making a change to the BIDS-schema
579+
580+
Several aspects of the specification are defined in a set of YAML files in the
581+
`src/schema` folder. The content of those files is described in a dedicated
582+
[README file](./src/schema/README.md).
583+
584+
### 1. Ensure that changes to the specification are matched in the schema
612585

613586
The schema formalizes the rules described in the specification text, so you must
614587
ensure that any changes which impact the rules of the specification (including,
615588
but not limited to, adding new entities, suffixes, datatypes, modalities) are
616589
reflected in the schema as well.
617590

618-
#### 2. Ensure that changes to the schema are matched in auto-generated sections of the specification
591+
### 2. Ensure that changes to the schema are matched in auto-generated sections of the specification
619592

620593
The schema is used to generate a number of elements in the specification text, including:
621594
- Filename format templates
@@ -625,7 +598,7 @@ The schema is used to generate a number of elements in the specification text, i
625598
As such, you need to ensure that the functions used throughout the specification to render these elements are appropriately referencing the schema.
626599
In essence, please make sure, if your changes do impact how functions should be called, that you also update how the function are called.
627600

628-
#### 3. Render the specification with `mkdocs` to check your changes
601+
### 3. Render the specification with `mkdocs` to check your changes
629602

630603
Run `mkdocs serve` and open `localhost:8000` to browse the rendered specification.
631604
Make sure that all filename format templates, entity tables, and entity definitions are correct
@@ -635,7 +608,7 @@ While the continuous integration run on pull requests by the repository will ren
635608
it is crucial to manually review the rendered changes to ensure that the code not only successfully runs,
636609
but also that the rendered changes appear as expected.
637610

638-
#### 4. Push your changes
611+
### 4. Push your changes
639612

640613
For more information on making general changes with a pull request, please
641614
review

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_name: Brain Imaging Data Structure v1.6.0-dev
1+
site_name: Brain Imaging Data Structure v1.6.1-dev
22
theme:
33
name: material
44
custom_dir: theme_customizations/
@@ -35,6 +35,7 @@ nav:
3535
- Physiological and other continuous recordings: 04-modality-specific-files/06-physiological-and-other-continuous-recordings.md
3636
- Behavioral experiments (with no neural recordings): 04-modality-specific-files/07-behavioral-experiments.md
3737
- Genetic Descriptor: 04-modality-specific-files/08-genetic-descriptor.md
38+
- Positron Emission Tomography: 04-modality-specific-files/09-positron-emission-tomography.md
3839
- Derivatives:
3940
- BIDS Derivatives: 05-derivatives/01-introduction.md
4041
- Common data types and metadata: 05-derivatives/02-common-data-types.md
@@ -54,6 +55,7 @@ nav:
5455
- File collections: 99-appendices/10-file-collections.md
5556
- Quantitative MRI: 99-appendices/11-qmri.md
5657
- Arterial Spin Labeling: 99-appendices/12-arterial-spin-labeling.md
58+
- Cross modality correspondence: 99-appendices/13-cross-modality-correspondence.md
5759
- Changelog: CHANGES.md
5860
- The BIDS Starter Kit:
5961
- GitHub repository: https://github.com/bids-standard/bids-starter-kit

src/01-introduction.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ For example:
111111
Scientific Data, 5 (180110).
112112
[doi:10.1038/sdata.2018.110](https://doi.org/10.1038/sdata.2018.110)
113113

114+
#### PET
115+
116+
- Knudsen GM, Ganz M, Appelhoff S, Boellaard R, Bormans G, Carson RE, Catana C,
117+
Doudet D, Gee AD, Greve DN, Gunn RN, Halldin C, Herscovitch P, Huang H, Keller SH,
118+
Lammertsma AA, Lanzenberger R, Liow JS, Lohith TG, Lubberink M, Lyoo CH, Mann JJ,
119+
Matheson GJ, Nichols TE, Nørgaard M, Ogden T, Parsey R, Pike VW, Price J, Rizzo G,
120+
Rosa-Neto P, Schain M, Scott PJH, Searle G, Slifstein M, Suhara T, Talbot PS,
121+
Thomas A, Veronese M, Wong DF, Yaqub M, Zanderigo F, Zoghbi S, Innis RB. (2020).
122+
**Guidelines for Content and Format of PET Brain Data in Publications and in Archives: A Consensus Paper**.
123+
Journal of Cerebral Blood Flow and Metabolism, 2020 Aug; 40(8): 1576-1585.
124+
[doi:10.1177/0271678X20905433](https://doi.org/10.1177/0271678X20905433)
125+
114126
#### Genetics
115127

116128
- Clara Moreau, Martineau Jean-Louis, Ross Blair, Christopher Markiewicz, Jessica Turner,

src/02-common-principles.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ misunderstanding we clarify them here.
2828
sessions is appropriate when several identical or similar data acquisitions
2929
are planned and performed on all -or most- subjects, often in the case of
3030
some intervention between sessions (for example, training).
31+
In the [PET](04-modality-specific-files/09-positron-emission-tomography.md)
32+
context, a session may also indicate a group of related scans,
33+
taken in one or more visits.
3134

3235
1. **Data acquisition** - a continuous uninterrupted block of time during which
3336
a brain scanning instrument was acquiring data according to particular
@@ -73,6 +76,13 @@ misunderstanding we clarify them here.
7376
acquisition parameters and task (however events can change from run to run
7477
due to different subject response or randomized nature of the stimuli). Run
7578
is a synonym of a data acquisition.
79+
Note that "uninterrupted" may look different by modality due to the nature of the
80+
recording.
81+
For example, in [MRI](04-modality-specific-files/01-magnetic-resonance-imaging-data.md)
82+
or [MEG] (04-modality-specific-files/02-magnetoencephalography.md),
83+
if a subject leaves the scanner, the acquisition must be restarted.
84+
For some types of [PET](04-modality-specific-files/09-positron-emission-tomography.md) acquisitions,
85+
a subject may leave and re-enter the scanner without interrupting the scan.
7686

7787
1. **Modality** - the category of brain data recorded by a file.
7888
For MRI data, different pulse sequences are considered distinct modalities,
@@ -244,7 +254,7 @@ This specification does not prescribe anything about the contents of `sourcedata
244254
folders in the above example - nor does it prescribe the `sourcedata`,
245255
`derivatives`, or `rawdata` folder names.
246256
The above example is just a convention that can be useful for organizing raw,
247-
source, and derived data while maintaining BIDS compliancy of the raw data
257+
source, and derived data while maintaining BIDS compliance of the raw data
248258
folder. When using this convention it is RECOMMENDED to set the `SourceDatasets`
249259
field in `dataset_description.json` of each subfolder of `derivatives` to:
250260

0 commit comments

Comments
 (0)