Skip to content

Commit 2fa1cfd

Browse files
Merge pull request #1440 from yarikoptic/rf-events
[ENH] Remove explicitly worded requirement of events file association with the task, move events to modality-agnostic portion of the specifications.
2 parents 6cd39d7 + 5ba8f07 commit 2fa1cfd

File tree

15 files changed

+93
-88
lines changed

15 files changed

+93
-88
lines changed

mkdocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ nav:
1010
- Data summary files: modality-agnostic-files/data-summary-files.md
1111
- Phenotypic and assessment data: modality-agnostic-files/phenotypic-and-assessment-data.md
1212
- Code: modality-agnostic-files/code.md
13+
- Events: modality-agnostic-files/events.md
1314
- Modality specific files:
1415
- Magnetic Resonance Imaging: modality-specific-files/magnetic-resonance-imaging-data.md
1516
- Magnetoencephalography: modality-specific-files/magnetoencephalography.md
1617
- Electroencephalography: modality-specific-files/electroencephalography.md
1718
- Intracranial Electroencephalography: modality-specific-files/intracranial-electroencephalography.md
18-
- Task events: modality-specific-files/task-events.md
1919
- Physiological recordings: modality-specific-files/physiological-recordings.md
2020
- Behavioral experiments (with no neural recordings): modality-specific-files/behavioral-experiments.md
2121
- Genetic Descriptor: modality-specific-files/genetic-descriptor.md
@@ -142,7 +142,7 @@ plugins:
142142
"04-modality-specific-files/02-magnetoencephalography.md": "modality-specific-files/magnetoencephalography.md"
143143
"04-modality-specific-files/03-electroencephalography.md": "modality-specific-files/electroencephalography.md"
144144
"04-modality-specific-files/04-intracranial-electroencephalography.md": "modality-specific-files/intracranial-electroencephalography.md"
145-
"04-modality-specific-files/05-task-events.md": "modality-specific-files/task-events.md"
145+
"04-modality-specific-files/05-task-events.md": "modality-agnostic-files/events.md"
146146
"04-modality-specific-files/06-physiological-and-other-continuous-recordings.md": "modality-specific-files/physiological-recordings.md"
147147
"04-modality-specific-files/07-behavioral-experiments.md": "modality-specific-files/behavioral-experiments.md"
148148
"04-modality-specific-files/08-genetic-descriptor.md": "modality-specific-files/genetic-descriptor.md"
@@ -168,5 +168,6 @@ plugins:
168168
"99-appendices/11-qmri.md": "appendices/qmri.md"
169169
"99-appendices/12-arterial-spin-labeling.md": "appendices/arterial-spin-labeling.md"
170170
"99-appendices/13-cross-modality-correspondence.md": "appendices/cross-modality-correspondence.md"
171+
"modality-specific-files/task-events.md": "modality-agnostic-files/events.md"
171172
docs_dir: "src"
172173
use_directory_urls: false

src/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@
602602

603603
- Added support for MEG data (merged BEP008).
604604
- Added `SequenceName` field.
605-
- Added support for describing events with Hierarchical Event Descriptors: [4.3 Task events](modality-specific-files/task-events.md).
605+
- Added support for describing events with Hierarchical Event Descriptors: [4.3 Task events](modality-agnostic-files/events.md).
606606
- Added `VolumeTiming` and `AcquisitionDuration` fields: [4.1 Task (including resting state) imaging data](modality-specific-files/magnetic-resonance-imaging-data.md#task-including-resting-state-imaging-data).
607607
- Added `DwellTime` field.
608608

src/appendices/hed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on GitHub.
3434

3535
Event-related data in BIDS appears in tab-separated value (`events.tsv`)
3636
files in various places in the dataset hierarchy
37-
(see [Events](../modality-specific-files/task-events.md)).
37+
(see [Events](../modality-agnostic-files/events.md)).
3838

3939
`events.tsv` files MUST have `onset` and `duration` columns.
4040
Dataset curators MAY also include additional columns and define their

src/common-principles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ Example of a hypothetical `*_bold.json` file, accompanying a `*_bold.nii` file:
677677
Example of a hypothetical `*_events.json` file, accompanying an
678678
`*_events.tsv` file. Note that the JSON file contains a key describing an
679679
*arbitrary* column `stim_presentation_side` in the TSV file it accompanies.
680-
See [task events section](modality-specific-files/task-events.md)
680+
See [events section](modality-agnostic-files/events.md)
681681
for more information.
682682

683683
```JSON

src/modality-specific-files/task-events.md renamed to src/modality-agnostic-files/events.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Task events
1+
# Events
22

33
The purpose of this file is to describe timing and other properties of events
4-
recorded during a run.
5-
Events are, for example, stimuli presented to the participant or participant responses
6-
(see [Definitions](../common-principles.md#definitions)).
4+
recorded during data acquisition.
5+
Events may include stimuli presented to the participant, participant responses
6+
that are associated with tasks, or markers of other incidents that occurred
7+
during the execution of the experiment.
8+
See the [definition of Event](../common-principles.md#definitions) for a more detailed explanation.
79
A single event file MAY include any combination of stimulus, response, and other events.
810
Events MAY overlap in time.
9-
Please mind that this does not imply that only so called "event related" study designs
11+
Please keep in mind that this does not imply that only so called "event related" study designs
1012
are supported (in contrast to "block" designs) - each "block of events" can be
1113
represented by an individual row in the `events.tsv` file (with a long
1214
duration).
@@ -18,10 +20,10 @@ duration).
1820
)
1921
}}
2022

21-
Each task events file REQUIRES a corresponding task data file.
22-
It is also possible to have a single `events.tsv` file describing events
23-
for all participants and runs (see
24-
[Inheritance Principle](../common-principles.md#the-inheritance-principle)).
23+
Each `events.tsv` file REQUIRES at least one corresponding data file.
24+
Through the [Inheritance Principle](../common-principles.md#the-inheritance-principle),
25+
a single `events.tsv` file MAY describe events for multiple participants,
26+
sessions, and runs.
2527
As with all other tabular data, `events.tsv` files MAY be accompanied
2628
by a JSON file describing the columns in detail
2729
(see [Tabular Files](../common-principles.md#tabular-files)).
@@ -35,7 +37,7 @@ The definitions of these fields can be found in
3537
and a guide for using macros can be found at
3638
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
3739
-->
38-
{{ MACROS___make_columns_table("task.TaskEvents") }}
40+
{{ MACROS___make_columns_table("events.Events") }}
3941

4042
The content of `events.tsv` files SHOULD be sorted by values in the `onset` column.
4143

@@ -59,7 +61,7 @@ SHOULD be documented in an accompanying JSON sidecar file.
5961
if any acquired scans have been discarded before forming the imaging data file,
6062
ensure that an `onset` of 0 corresponds to the time the first image was stored.
6163
For example in case there is an in scanner training phase that
62-
begins before the scanning sequence has started events from this sequence should
64+
begins before the scanning sequence has started, events from this sequence should
6365
have negative onset time counting down to the beginning of the acquisition of
6466
the first volume.
6567

src/modality-specific-files/behavioral-experiments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The definitions of these fields can be found in
3838
and a guide for using macros can be found at
3939
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
4040
-->
41-
{{ MACROS___make_columns_table("task.Behavioral") }}
41+
{{ MACROS___make_columns_table("events.Behavioral") }}
4242

4343
## Sidecar JSON (`*_beh.json`)
4444

src/modality-specific-files/positron-emission-tomography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Volumes MUST be stored in chronological order (the order they were acquired in).
8383
The OPTIONAL [`task-<label>`](../appendices/entities.md#task) is used to
8484
indicate a task subjects were asked to perform in the scanner.
8585
Those labels MUST be consistent across subjects and sessions.
86-
For task based PET, a corresponding [`task events`](./task-events.md) file MUST be provided
86+
For task based PET, a corresponding [`events`](../modality-agnostic-files/events.md) file MUST be provided
8787
(please note that this file is not necessary for resting scans).
8888

8989
The [`trc-<label>`](../appendices/entities.md#trc) entity is used to

src/pregh-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
- Added support for MEG data (merged BEP008).
1111
- Added `SequenceName` field.
12-
- Added support for describing events with Hierarchical Event Descriptors: [4.3 Task events](modality-specific-files/task-events.md).
12+
- Added support for describing events with Hierarchical Event Descriptors: [4.3 Events](modality-agnostic-files/events.md).
1313
- Added `VolumeTiming` and `AcquisitionDuration` fields: [4.1 Task (including resting state) imaging data](modality-specific-files/magnetic-resonance-imaging-data.md#task-including-resting-state-imaging-data).
1414
- Added `DwellTime` field.
1515

src/schema/objects/columns.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
HED:
33
name: HED
4-
display_name: HED Tag
4+
display_name: HED
55
description: |
6-
Hierarchical Event Descriptor (HED) Tag.
6+
Hierarchical Event Descriptor (HED) tags.
77
See the [HED Appendix](SPEC_ROOT/appendices/hed.md) for details.
88
type: string
99
abbreviation:
@@ -582,7 +582,7 @@ stim_file:
582582
Represents the location of the stimulus file (such as an image, video, or
583583
audio file) presented at the given onset time.
584584
There are no restrictions on the file formats of the stimuli files,
585-
but they should be stored in the `/stimuli` directory
585+
but they should be stored in the `/stimuli/` directory
586586
(under the root directory of the dataset; with optional subdirectories).
587587
The values under the `stim_file` column correspond to a path relative to
588588
`/stimuli`.

src/schema/objects/entities.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ task:
418418
The `task-<label>` MUST be consistent across subjects and sessions.
419419
420420
Files with the `task-<label>` entity SHOULD have an associated
421-
[events file](SPEC_ROOT/modality-specific-files/task-events.md#task-events),
421+
[events file](SPEC_ROOT/modality-agnostic-files/events.md#events),
422422
as well as certain metadata fields in the associated JSON file.
423423
424424
For the purpose of this specification we consider the so-called "resting state" a task,

0 commit comments

Comments
 (0)