From ac322a192b78041d7a4f37edbfa6fb5a740bdfb0 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/schema/rules/files/common/tables.yaml b/src/schema/rules/files/common/tables.yaml index 5a304dbfd7..21f03f6579 100644 --- a/src/schema/rules/files/common/tables.yaml +++ b/src/schema/rules/files/common/tables.yaml @@ -30,3 +30,16 @@ 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 + datatypes: + - phenotype + stem: '*' + extensions: + - .tsv + - .json