cellregmap.CellRegMap๏
- class cellregmap.CellRegMap(y, E, W=None, Ls=None, E1=None, hK=None)[source]๏
Mixed-model with genetic effect heterogeneity.
The CellRegMap model can be cast as:
๐ฒ = W๐ + ๐ ๐ฝโ + ๐ โ๐โ + ๐ + ๐ฎ + ๐, (1)
where:
๐โ ~ ๐(๐, ๐โ๐ดโ๐ดโแต), ๐ ~ ๐(๐, ๐โฯโ๐ดโ๐ดโแต), ๐ฎ ~ ๐(๐, ๐โ(1-ฯโ)๐บโ๐ดโ๐ดโแต), and ๐ ~ ๐(๐, ๐โ๐ธ).
๐ โ๐ is a random effect term which models the GxC effect. Additionally, W๐ models additive covariates and ๐ ๐ฝโ models persistent genetic effects. Both are modelled as fixed effects. On the other hand, ๐, ๐ฎ and ๐ are modelled as random effects ๐ is the environment effect, ๐ฎ is a background term accounting for interactions between population structure and environmental structure, and ๐ is the iid noise. The full covariance of ๐ฒ is therefore given by:
cov(๐ฒ) = ๐โ๐ณ๐ดโ๐ดโแต๐ณ + ๐โฯโ๐ดโ๐ดโแต + ๐โ(1-ฯโ)๐บโ๐ดโ๐ดโแต + ๐โ๐ธ,
where ๐ณ = diag(๐ ). Its marginalised form is given by:
๐ฒ ~ ๐(W๐ + ๐ ๐ฝโ, ๐โ๐ณ๐ดโ๐ดโแต๐ณ + ๐โ(ฯโ๐ดโ๐ดโแต + (1-ฯโ)๐บโ๐ดโ๐ดโแต) + ๐โ๐ธ).
The CellRegMap method is used to perform an interaction test:
The interaction test compares the following hypotheses (from Eq. 1):
๐โ: ๐โ = 0 ๐โ: ๐โ > 0
๐โ denotes no GxE effects, while ๐โ models the presence of GxE effects.