modelCarriageComponent

flags carriage of a risk allele; deliberately drives no equation

Information

Emits carriage as a Boolean and warns once at initialization. It has no signal input and no scaled output because carriage is not a factor on any PK or PD parameter — see PGx.RiskGene for why.

Parameters

TypeNameDefaultDescription
PGx.Carriagecarriage
BooleanwarnIfCarriertrueraise a simulation warning when the subject carries the risk allele
RealoddsRatiocarriage.gene.oddsRatioreported association strength — annotation only, read by nothing here
StringriskLabelif PGx.riskAlleleOf(carriage.gene.riskAllele, carriage.allele[1], carriage.allele[2]) == "" then "" else carriage.gene.symbol + " " + PGx.riskAlleleOf(carriage.gene.riskAllele, carriage.allele[1], carriage.allele[2]) + " " + carriage.gene.outcome
Advanced
BooleancheckAllelestrueassert each allele is a risk allele or the explicit negative label

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputcarriersubject carries a risk allele
PGx.RiskBusriskBusconnect to a RiskSummary to be counted