modelGeneEffectComponent

diplotype -> the unitless scale its phenotype applies

Information

Emits the dimensionless factor that this gene's phenotype applies to one model parameter. Feed it into a ScaleComponent to multiply the quantity itself; chain several to combine genes.

It takes an Effect and a Diplotype rather than an effect and a bare allele array, so the subject's alleles arrive already bound to the gene that reads them and a mismatched pair is rejected at translation instead of returning a wrong phenotype.

Parameters

TypeNameDefaultDescription
PGx.Effecteffect
PGx.Diplotypediplotype
Advanced
BooleancheckAllelestrueassert that both alleles appear in the gene's table

Connectors

TypeNameDefaultDescription
Pharmacolibrary.Types.RealOutputyscale factor for effect.target

Components

TypeNameDefaultDescription
MetabolizerStatusstatusphenotype this diplotype maps to