From 58c0373934157314e70779a0ab9dfd9d6f1127a1 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Fri, 17 Jul 2026 11:20:49 -0400 Subject: [PATCH] [FIX][SCHEMA] Phenotype subjects are a subset of participants.tsv The existing check required a superset relation. Probably not frequently hit because equality will be the norm. --- src/schema/rules/checks/phenotype.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/schema/rules/checks/phenotype.yaml b/src/schema/rules/checks/phenotype.yaml index 1e836508a5..e55413e01d 100644 --- a/src/schema/rules/checks/phenotype.yaml +++ b/src/schema/rules/checks/phenotype.yaml @@ -14,8 +14,9 @@ PhenotypeSubjectsMissing: - suffix == '.tsv' - type(dataset.subjects.participant_id) != 'null' checks: + # A∩B == A iff A⊆B - | allequal( sorted(intersects(columns.participant_id, dataset.subjects.participant_id)), - sorted(dataset.subjects.participant_id) + sorted(columns.participant_id) )