py_hla_match.models

class py_hla_match.models.Donor(hla_data)[source]

Bases: Individual

Represents an individual in the ‘donor’ role in research datasets. Inherits from Individual.

Parameters:

hla_data (list[HLAPair])

class py_hla_match.models.HLAPair(hla1, hla2)[source]

Bases: object

Parameters:
property alleles: tuple[HLA, HLA]

Returns HLA objects in HLAPair.

get_paired_resolution()[source]

Resolution of HLAPair.

Return type:

int

class py_hla_match.models.Individual(hla_data)[source]

Bases: object

Parameters:

hla_data (List[HLAPair])

get_hla_summary()[source]

Get summary of HLA data.

Return type:

dict

class py_hla_match.models.Patient(hla_data)[source]

Bases: Individual

Represents an individual in the ‘patient’ role in research datasets. Inherits from Individual.

Parameters:

hla_data (list[HLAPair])

Classes

Donor(hla_data)

Represents an individual in the 'donor' role in research datasets.

HLAPair(hla1, hla2)

Individual(hla_data)

Patient(hla_data)

Represents an individual in the 'patient' role in research datasets.