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.