Observables

List of built-in observables. They take a Population as the first and often only argument.

GrowthDynamics.Observables.allele_spectrumMethod
allele_spectrum(state;[ threshold=0.0, read_depth=total_population_size(state)])

Return a DataFrame with count, frequency of every polymorphism. Additionally sample from the population.

source
GrowthDynamics.Observables.counts_on_shellsMethod
counts_on_shells(state, g, [o, a])

Return a dictionary i=>count mapping the ith shell to the number of cells of genotype g on it.

The "shell number" of a point is the integer closest to |p-o|/a.

Keyword arguments

  • o=midpointcoord(state.lattice): center of shells
  • a=spacing(state.lattice): spacing of shells
source
GrowthDynamics.Observables.explode_into_shellsMethod
explode_into_shells(v, o, a; r0=)

Take a vector of cartesian coordinates v, center them around the midpoint o, and return a dictionary radius=>coordinates where r0<= radius <= max(||v||) in increments of a.

source
GrowthDynamics.Observables.popsize_on_shellsMethod
popsize_on_shells(T, outer, [o=midpoint(T.lattice)])

Creates a dictionary genotype => trajectory where trajectory is a vector of population size. trajectory[r] is the the population size on a L2-norm shell of radius r around o.

r ranges between 1..outer in increments of a (defaults to the lattice spacing).

Set deleteone/zero=false to keep the wildtype/count empty sites.

source