Skip to content

Commit

Permalink
Merge pull request #1907 from effigies/enh/behavioral_table
Browse files Browse the repository at this point in the history
[ENH] Provide baseline definition for behavioral files
  • Loading branch information
Remi-Gau authored Sep 5, 2024
2 parents 7c93b9c + 63ef5c8 commit 15d1906
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modality-specific-files/behavioral-experiments.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ that do not include the mandatory `onset` and `duration` columns
MAY be included,
but MUST be labeled `_beh.tsv` rather than `_events.tsv`.

The following OPTIONAL columns are pre-defined for behavioral data files:

<!-- 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.Behavioral") }}

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

In addition to the metadata that is either:
Expand Down
10 changes: 10 additions & 0 deletions src/schema/rules/tabular_data/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ TaskEvents:
initial_columns:
- onset
- duration

Behavioral:
selectors:
- suffix == "beh"
columns:
trial_type: optional
response_time: optional
HED: optional
stim_file: optional
additional_columns: allowed

0 comments on commit 15d1906

Please sign in to comment.