From c3c6696d6c0aef0b57b95a402e285dae1cae674c Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 16 Feb 2024 10:09:59 -0500 Subject: [PATCH] SCHEMA: Add file rule for phenotype --- src/schema/rules/files/common/tables.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/schema/rules/files/common/tables.yaml b/src/schema/rules/files/common/tables.yaml index 5a304dbfd7..73b5b35524 100644 --- a/src/schema/rules/files/common/tables.yaml +++ b/src/schema/rules/files/common/tables.yaml @@ -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