Skip to content

Commit

Permalink
SCHEMA: Add file rule for phenotype
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Feb 16, 2024
1 parent 6a5767b commit c3c6696
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/schema/rules/files/common/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ sessions: # This file may only exist if session is present in the dataset.
- .json
entities:
subject: required

# Phenotype is a special case where there are no applicable entities, but a
# parent directory is specified. This most closely matches datatype in the current
# structure. We also require a stem that can match any value, as there are no
# constraints on the filename except extension.
phenotype:
level: optional
datatype: phenotype
stem: '*'
extensions:
- .tsv
- .json

0 comments on commit c3c6696

Please sign in to comment.