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
| Type | Name | Default | Description |
|---|---|---|---|
| PGx.Carriage | carriage | ||
| Boolean | warnIfCarrier | true | raise a simulation warning when the subject carries the risk allele |
| Real | oddsRatio | carriage.gene.oddsRatio | reported association strength — annotation only, read by nothing here |
| String | riskLabel | if 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 | |||
| Boolean | checkAlleles | true | assert each allele is a risk allele or the explicit negative label |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | carrier | subject carries a risk allele | |
| PGx.RiskBus | riskBus | connect to a RiskSummary to be counted |