MGDrivE-Cube: MGDrivE: Inheritance Cube

Description Details Drive-specific Cubes Functions for Cubes

Description

To model an arbitrary number of genotypes efficiently in the same mathematical framework, we use a 3-dimensional array structure (cube) where each axis represents the following information:

Details

The cube structure gives us the flexibility to apply tensor operations to the elements within our equations, so that we can calculate the stratified population dynamics rapidly; and within a readable, flexible computational framework. This becomes apparent when we define the equation we use for the computation of eggs laid at any given point in time:

\overline{O(T_x)} = ∑_{j=1}^{n} \Bigg( \bigg( (β*\overline{s} * \overline{ \overline{Af_{[t-T_x]}}}) * \overline{\overline{\overline{Ih}}} \bigg) * Λ \Bigg)^{\top}_{ij}

In this equation, the matrix containing the number of mated adult females (\overline{\overline{Af}}) is multiplied element-wise with each one of the layers containing the eggs genotypes proportions expected from this cross (\overline{\overline{\overline{Ih}}}). The resulting matrix is then multiplied by a binary 'viability mask' (Λ) that filters out female-parent to offspring genetic combinations that are not viable due to biological impediments (such as cytoplasmic incompatibility). The summation of the transposed resulting matrix returns us the total fraction of eggs resulting from all the male to female genotype crosses (\overline{O(T_x)}).

Note: For inheritance operations to be consistent within the framework the summation of each element in the z-axis (this is, the proportions of each one of the offspring's genotypes) must be equal to one.

Drive-specific Cubes

An inheritance cube in an array object that specifies inheritance probabilities (offspring genotype probability) stratified by male and female parent genotypes. MGDrivE provides the following cubes to model different gene drive systems:

Functions for Cubes

We provide one auxiliary function to operate on cube objects.


MGDrivE documentation built on Oct. 23, 2020, 7:28 p.m.