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

  1. Initialize s = Normal.
  2. If either allele is listed in ph.poor, set s = Poor.
  3. Else if in ph.rapid, set s = Rapid.
  4. Else if in ph.intermediate, set s = Intermediate.
  5. Else if in ph.ultra, set s = Ultra.
  6. Otherwise remain Normal.

Inputs

TypeNameDefaultDescription
Phenotypeph
Stringa1
Stringa2

Outputs

TypeNameDefaultDescription
MetabolizerStatuss