recordDiplotype

one subject's two alleles, BOUND to the gene that interprets them

Information

A star allele means nothing on its own: the same symbol is read differently by different genes. *2 is a no-function allele of CYP2C19 and a fully functional allele of CYP2D6; *17 increases CYP2C19 activity and decreases CYP2D6 activity. So a pair of alleles is only interpretable together with the gene that reads them, and this record keeps the two inseparable.

That binding is why the first-generation package split Genotype from Phenotype, and it was briefly lost when the alleles became a loose String[2] parameter on the component: nothing then stopped CYP2D6 alleles being read by a CYP2C19 effect, which returns a WRONG PHENOTYPE rather than an error.

Three axes, each scoped differently: Gene is allele to phenotype (per gene), Diplotype is this subject's alleles (per subject and gene), and Effect is phenotype to a factor on one model parameter (per gene, parameter and drug).

Parameters

TypeNameDefaultDescription
Genegene
String[2]allele{"*1", "*1"}