From 1800f4bf60e7824c7663b271a91b60c731cc4ea8 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Thu, 14 Nov 2024 16:01:55 -0500 Subject: [PATCH] fix: cohort should be a study group --- src/ga4gh/va_spec/profiles/caf_study_result.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ga4gh/va_spec/profiles/caf_study_result.py b/src/ga4gh/va_spec/profiles/caf_study_result.py index ecd348d..a544d46 100644 --- a/src/ga4gh/va_spec/profiles/caf_study_result.py +++ b/src/ga4gh/va_spec/profiles/caf_study_result.py @@ -6,7 +6,7 @@ from ga4gh.core.entity_models import ( DataSet, - StudyResult, + StudyGroup, StudyResultBase, ) from ga4gh.vrs.models import Allele @@ -40,7 +40,7 @@ class CohortAlleleFrequencyStudyResult(StudyResultBase): focusAlleleFrequency: float = Field( ..., description="The frequency of the focusAllele in the cohort." ) - cohort: list[StudyResult] = Field( + cohort: list[StudyGroup] = Field( ..., description="The cohort from which the frequency was derived." ) subCohortFrequency: list[CohortAlleleFrequencyStudyResult] | None = Field(