Skip to content

Commit

Permalink
[FIX] Discourage use of "sample" in events if sampling frequency is a…
Browse files Browse the repository at this point in the history
…mbiguous, add guidelines for precision (#1140)

* [FIX] add note to 'sample' in events

* add note for precision

* referred -> referenced

* Update src/schema/objects/columns.yaml

Co-authored-by: Taylor Salo <[email protected]>

Co-authored-by: Taylor Salo <[email protected]>
  • Loading branch information
sappelhoff and tsalo authored Jul 22, 2022
1 parent a93d4f2 commit 3f88d17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/04-modality-specific-files/05-task-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,22 @@ and a guide for using macros can be found at
}
) }}

<sup>5</sup> Note for MRI data:
Note for MRI data:
If any acquired scans have been discarded before forming the imaging data file,
ensure that an `onset` of 0 corresponds to the time the first image was stored.
For example in case there is an in scanner training phase that
begins before the scanning sequence has started events from this sequence should
have negative onset time counting down to the beginning of the acquisition of
the first volume.

Note regarding the precision of numeric metadata:
It is RECOMMENDENDED that dataset curators specify numeric metadata like `onset` and
`duration` with as much decimal precision as is reasonable in the context of the experiment.
For example in an EEG experiment with devices operating at 1000 Hz sampling frequency,
dataset curators SHOULD specify **at least** 3 figures after the decimal point.

An arbitrary number of additional columns can be added. Those allow describing
other properties of events that could be later referred in modelling and
other properties of events that could be later referenced in modelling and
hypothesis extensions of BIDS.
Note that the `trial_type` and any additional columns in a TSV file
SHOULD be documented in an accompanying JSON sidecar file.
Expand Down
3 changes: 3 additions & 0 deletions src/schema/objects/columns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ sample:
description: |
Onset of the event according to the sampling scheme of the recorded modality
(that is, referring to the raw data file that the `events.tsv` file accompanies).
When there are several sampling schemes present in the raw data file (as can be
the case for example for `.edf` files), this column is ambiguous and
SHOULD NOT be used.
type: integer
sample_id:
name: sample_id
Expand Down

0 comments on commit 3f88d17

Please sign in to comment.