functionphStatus
Information
Function phStatus(ph, a1, a2) maps a pair of star-alleles to a MetabolizerStatus according to the lists
defined in the PhenotypeTemplate record.
Inputs
ph – Phenotype: Must contain arrays
poor, intermediate, rapid, and ultra.
a1 – String: First allele identifier.
a2 – String: Second allele identifier.
Output
s – MetabolizerStatus: One of
Poor, Intermediate, Normal,
Rapid, or Ultra.
Algorithm
- Initialize
s = Normal.
- If either allele is listed in
ph.poor, set s = Poor.
- Else if in
ph.rapid, set s = Rapid.
- Else if in
ph.intermediate, set s = Intermediate.
- Else if in
ph.ultra, set s = Ultra.
- Otherwise remain
Normal.