Skip to content

Commit

Permalink
WIP table
Browse files Browse the repository at this point in the history
  • Loading branch information
neuromechanist committed Dec 13, 2024
1 parent 6745ccb commit dfb1243
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions src/modality-specific-files/task-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,19 @@ The `stimuli.tsv` would list the stimulus files as rows and provide more informa
Annotations for the still stimulus files can be properly held in `stimuli.tsv` as specific columns. The `stimuli.tsv` file can be accompanied by a `stimuli.json` file describing the columns in detail. The `stimuli.json`, similar to the `events.json` file, MAY also include additional information about the stimuli, such as references to databases, HED tags, etc.
The `stimuli.tsv` MUST include the following columns:

{{ MACROS___make_columns_table(
<!-- {{ MACROS___make_columns_table(
{
"stim_file": "REQUIRED",
"stim_file_type": "REQUIRED"
}
) }}
) }} -->
<!-- This block generates a columns table.
The definitions of these fields can be found in
src/schema/rules/tabular_data/*.yaml
and a guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
<!-- {{ MACROS___make_columns_table("task.StimuliFile") }} -->

### Time-varying stimuli
A single-line annotation in a `stimuli.tsv` column would be sufficient for still stimulus files (for example, images). However, a time-varying stimulus file could need separate *temporal annotations* (or traces) for every frame (that is, the smallest temporal resolution of the stimulus file).
Expand Down
3 changes: 1 addition & 2 deletions src/schema/rules/tabular_data/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ TaskEvents:
StimuliFile:
selectors:
- '"task" in entities'
- suffix == "stimuli"
- extension == ".tsv"
- suffix == "events"
columns:
stim_file: required
stim_file_type: required
Expand Down

0 comments on commit dfb1243

Please sign in to comment.