Skip to content

Commit 3a1c3c2

Browse files
committed
Merge branch 'main' into issue-42
2 parents 1c56c17 + 38199d3 commit 3a1c3c2

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ keywords = [
3131
requires-python = ">=3.10"
3232
dynamic = ["version"]
3333
dependencies = [
34-
"ga4gh.vrs>=2.1.3,<3.0",
34+
"ga4gh.vrs>=2.2.0,<3.0",
3535
"ga4gh.cat_vrs~=0.7.1",
3636
"pydantic>=2.0,<3.0",
3737
"typing_extensions",

src/ga4gh/va_spec/base/core.py

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -155,27 +155,6 @@ class InformationEntity(Entity):
155155
)
156156

157157

158-
class StudyGroup(Entity, BaseModelForbidExtra):
159-
"""A collection of individuals or specimens from the same taxonomic class, selected
160-
for analysis in a scientific study based on their exhibiting one or more common
161-
characteristics (e.g. species, race, age, gender, disease state, income). May be
162-
referred to as a 'cohort' or 'population' in specific research settings.
163-
"""
164-
165-
type: Literal["StudyGroup"] = Field(
166-
default=CoreType.STUDY_GROUP.value,
167-
description=f"Must be '{CoreType.STUDY_GROUP.value}'",
168-
)
169-
memberCount: int | None = Field(
170-
default=None,
171-
description="The total number of individual members in the StudyGroup.",
172-
)
173-
characteristics: list[MappableConcept] | None = Field(
174-
default=None,
175-
description="A feature or role shared by all members of the StudyGroup, representing a criterion for membership in the group.",
176-
)
177-
178-
179158
class DataSet(Entity, BaseModelForbidExtra):
180159
"""A collection of related data items or records that are organized together in a
181160
common format or structure, to enable their computational manipulation as a unit.
@@ -206,6 +185,27 @@ class DataSet(Entity, BaseModelForbidExtra):
206185
)
207186

208187

188+
class StudyGroup(Entity, BaseModelForbidExtra):
189+
"""A collection of individuals or specimens from the same taxonomic class, selected
190+
for analysis in a scientific study based on their exhibiting one or more common
191+
characteristics (e.g. species, race, age, gender, disease state, income). May be
192+
referred to as a 'cohort' or 'population' in specific research settings.
193+
"""
194+
195+
type: Literal["StudyGroup"] = Field(
196+
default=CoreType.STUDY_GROUP.value,
197+
description=f"Must be '{CoreType.STUDY_GROUP.value}'",
198+
)
199+
memberCount: int | None = Field(
200+
default=None,
201+
description="The total number of individual members in the StudyGroup.",
202+
)
203+
characteristics: list[MappableConcept] | None = Field(
204+
default=None,
205+
description="A feature or role shared by all members of the StudyGroup, representing a criterion for membership in the group.",
206+
)
207+
208+
209209
class _StudyResult(InformationEntity, ABC):
210210
"""A collection of data items from a single study that pertain to a particular subject
211211
or experimental unit in the study, along with optional provenance information
@@ -719,7 +719,3 @@ class Statement(InformationEntity, BaseModelForbidExtra):
719719
default=None,
720720
description="An evidence-based argument that supports or disputes the validity of the proposition that a Statement assesses or puts forth as true. The strength and direction of this argument (whether it supports or disputes the proposition, and how strongly) is based on an interpretation of one or more pieces of information as evidence (i.e. 'Evidence Items).",
721721
)
722-
723-
724-
EvidenceLine.model_rebuild()
725-
Statement.model_rebuild()

0 commit comments

Comments
 (0)