Skip to content

Commit

Permalink
Add descriptions.tsv to schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Feb 15, 2024
1 parent fea966c commit 0215e79
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/schema/objects/files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@ stimuli:
A directory to store any stimulus files used during an experiment.
See the [relevant section](SPEC_ROOT/modality-specific-files/task-events.md#stimuli-directory)
for more information.
descriptions:
display_name: Descriptions Definitions
file_type: regular
description: |
A TSV file describing labels found for the `desc` entity in a Derivatives dataset.
7 changes: 7 additions & 0 deletions src/schema/rules/files/deriv/tables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
descriptions:
level: optional
stem: descriptions
extensions:
- .tsv
- .json
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ SegmentationLookup:
color: optional
mapping: optional
index_columns: [index]

Descriptions:
selectors:
- path == "descriptions.tsv"
columns:
desc_id: required
description: required
index_columns: [desc_id, description]
additional_columns: allowed

0 comments on commit 0215e79

Please sign in to comment.