Skip to content

Commit 23df27a

Browse files
committed
fix: correct model class order
1 parent c8f8166 commit 23df27a

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

src/ga4gh/va_spec/base/core.py

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,57 @@ class InformationEntity(Entity):
145145
)
146146

147147

148+
class DataSet(Entity, BaseModelForbidExtra):
149+
"""A collection of related data items or records that are organized together in a
150+
common format or structure, to enable their computational manipulation as a unit.
151+
"""
152+
153+
type: Literal["DataSet"] = Field(
154+
default=CoreType.DATA_SET.value,
155+
description=f"MUST be '{CoreType.DATA_SET.value}'.",
156+
)
157+
datasetType: str | None = Field(
158+
default=None,
159+
description="A specific type of data set the DataSet instance represents (e.g. a 'clinical data set', a 'sequencing data set', a 'gene expression data set', a 'genome annotation data set')",
160+
)
161+
reportedIn: Document | iriReference | None = Field(
162+
default=None, description="A document in which the the Method is reported."
163+
)
164+
releaseDate: date | None = Field(
165+
default=None,
166+
description="Indicates the date a version of a DataSet was formally released.",
167+
)
168+
version: str | None = Field(
169+
default=None,
170+
description="The version of the DataSet, as assigned by its creator.",
171+
)
172+
license: MappableConcept | None = Field(
173+
default=None,
174+
description="A specific license that dictates legal permissions for how a data set can be used (by whom, where, for what purposes, with what additional requirements, etc.)",
175+
)
176+
177+
178+
class StudyGroup(Entity, BaseModelForbidExtra):
179+
"""A collection of individuals or specimens from the same taxonomic class, selected
180+
for analysis in a scientific study based on their exhibiting one or more common
181+
characteristics (e.g. species, race, age, gender, disease state, income). May be
182+
referred to as a 'cohort' or 'population' in specific research settings.
183+
"""
184+
185+
type: Literal["StudyGroup"] = Field(
186+
default=CoreType.STUDY_GROUP.value,
187+
description=f"Must be '{CoreType.STUDY_GROUP.value}'",
188+
)
189+
memberCount: int | None = Field(
190+
default=None,
191+
description="The total number of individual members in the StudyGroup.",
192+
)
193+
characteristics: list[MappableConcept] | None = Field(
194+
default=None,
195+
description="A feature or role shared by all members of the StudyGroup, representing a criterion for membership in the group.",
196+
)
197+
198+
148199
class _StudyResult(InformationEntity, ABC):
149200
"""A collection of data items from a single study that pertain to a particular subject
150201
or experimental unit in the study, along with optional provenance information
@@ -490,36 +541,6 @@ class Direction(str, Enum):
490541
DISPUTES = "disputes"
491542

492543

493-
class DataSet(Entity, BaseModelForbidExtra):
494-
"""A collection of related data items or records that are organized together in a
495-
common format or structure, to enable their computational manipulation as a unit.
496-
"""
497-
498-
type: Literal["DataSet"] = Field(
499-
default=CoreType.DATA_SET.value,
500-
description=f"MUST be '{CoreType.DATA_SET.value}'.",
501-
)
502-
datasetType: str | None = Field(
503-
default=None,
504-
description="A specific type of data set the DataSet instance represents (e.g. a 'clinical data set', a 'sequencing data set', a 'gene expression data set', a 'genome annotation data set')",
505-
)
506-
reportedIn: Document | iriReference | None = Field(
507-
default=None, description="A document in which the the Method is reported."
508-
)
509-
releaseDate: date | None = Field(
510-
default=None,
511-
description="Indicates the date a version of a DataSet was formally released.",
512-
)
513-
version: str | None = Field(
514-
default=None,
515-
description="The version of the DataSet, as assigned by its creator.",
516-
)
517-
license: MappableConcept | None = Field(
518-
default=None,
519-
description="A specific license that dictates legal permissions for how a data set can be used (by whom, where, for what purposes, with what additional requirements, etc.)",
520-
)
521-
522-
523544
class EvidenceLine(InformationEntity, BaseModelForbidExtra):
524545
"""An independent, evidence-based argument that may support or refute the validity
525546
of a specific Proposition. The strength and direction of this argument is based on
@@ -740,24 +761,3 @@ class Statement(InformationEntity, BaseModelForbidExtra):
740761
default=None,
741762
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).",
742763
)
743-
744-
745-
class StudyGroup(Entity, BaseModelForbidExtra):
746-
"""A collection of individuals or specimens from the same taxonomic class, selected
747-
for analysis in a scientific study based on their exhibiting one or more common
748-
characteristics (e.g. species, race, age, gender, disease state, income). May be
749-
referred to as a 'cohort' or 'population' in specific research settings.
750-
"""
751-
752-
type: Literal["StudyGroup"] = Field(
753-
default=CoreType.STUDY_GROUP.value,
754-
description=f"Must be '{CoreType.STUDY_GROUP.value}'",
755-
)
756-
memberCount: int | None = Field(
757-
default=None,
758-
description="The total number of individual members in the StudyGroup.",
759-
)
760-
characteristics: list[MappableConcept] | None = Field(
761-
default=None,
762-
description="A feature or role shared by all members of the StudyGroup, representing a criterion for membership in the group.",
763-
)

0 commit comments

Comments
 (0)