OpIndividual
Bases: OpMessage
This class represents the individual or patient who is the subject of the phenopacket. It provides a DTO-like object to hold data that should be instantiated by factory methods corresponding to the data source. THe class can generate a GA4GH Phenopakcet Schema Individual message.
Note that we assume the species is always human, so taxonomy is always set to 9606 Homo sapiens
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
the individual identifier (application-specific) |
required |
alternate_ids
|
list
|
list of alternative identifiers, optional |
[]
|
date_of_birth
|
timestamp, optional
|
date of birth of the individual (optional, should not be used without data privacy protection) |
None
|
iso8601duration
|
str
|
age represented as an ISO 8601 Period, e.g., P42Y5M would be 42 years and 5 months |
None
|
vital_status
|
PPkt.VitalStatus
|
An object representing the Vital status of the individual, optional |
None
|
karyotypic_sex
|
the chromosomal sex (karyotypic sex), of the individual, e.g., XY or XX or XXY, optional |
None
|
|
gender
|
the self-described gender of the individual, optional |
None
|
Source code in src/oncoexporter/model/op_Individual.py
__init__(id, alternate_ids=[], date_of_birth=None, iso8601duration=None, vital_status=None, sex=None, karyotypic_sex=None, gender=None)
Constructor method
Source code in src/oncoexporter/model/op_Individual.py
to_ga4gh()
Transform the data in the onject into a GA4GH Phenopacket Individual
Returns:
Type | Description |
---|---|
PPkt.Individual
|
An message corresponding to the GA4GH Phenopacket Individual |