Skip to content

Commit

Permalink
fix: consistency and [recording-<label>] soft removal
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Apr 2, 2024
1 parent a9b70f8 commit fb8dd81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/modality-specific-files/physiological-recordings.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Physiological recordings such as cardiac and respiratory signals MAY be
specified using a [compressed tabular file](../common-principles.md#compressed-tabular-files)
([TSVGZ file](../glossary.md#tsvgz-extensions)) and a corresponding
([TSV.GZ file](../glossary.md#tsvgz-extensions)) and a corresponding
JSON file for storing metadata fields (see below).

!!! example "Example datasets"
Expand Down
19 changes: 8 additions & 11 deletions src/modality-specific-files/task-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,18 @@ in the accompanying JSON sidecar as follows (based on the example of the previou
- [*Trial timing for multivariate pattern analysis*][ds000238]

Signals related to stimuli (such as parameters of a film or audio stimuli) that are
evenly recorded at a constant sampling frequency MUST be stored as follows.
evenly recorded at a constant sampling frequency MUST be specified using a
[compressed tabular file](../common-principles.md#compressed-tabular-files)
([TSV.GZ file](../glossary.md#tsvgz-extensions)) and a corresponding
JSON file for storing metadata fields (see below).

Template:

```Text
sub-<label>/[ses-<label>/]
<datatype>/
<matches>[_recording-<label>]_stim.tsv.gz
<matches>[_recording-<label>]_stim.json
<matches>_stim.tsv.gz
<matches>_stim.json
```

For the template directory name, `<datatype>` can correspond to any data
Expand All @@ -346,14 +349,8 @@ For example for the file `sub-control01_task-nback_run-1_bold.nii.gz`,

`<matches>[_recording-<label>]_stim.tsv.gz` files MUST NOT include a header line,
as established by the [common-principles](../common-principles.md#compressed-tabular-files).
As a result, when supplying a `<matches>[_recording-<label>]_stim.tsv.gz` file,
an accompanying `<matches>[_recording-<label>]_stim.json` MUST be present to indicate
the column names.

The [`recording-<label>`](../appendices/entities.md#recording)
entity MAY be used to distinguish between several recording files,
as prescribed by the specifications for
[physiological recordings](physiological-recordings.md).
As a result, when supplying a `<matches>_stim.tsv.gz` file, an accompanying
`<matches>_stim.json` MUST be present to indicate the column names.

If the same continuous recording has been used for all subjects (for example in
the case where they all watched the same movie), one file placed in the
Expand Down

0 comments on commit fb8dd81

Please sign in to comment.