Skip to content

Calculate likelihood of relative strain growth rates based on growth rate differences between them, as well as likelihood of distribution of mutational effects based on strain phenotypes

License

Notifications You must be signed in to change notification settings

plavskin/GR_diff_DFE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Distribution of Mutational Effects Code


This repository contains code for calculating the likelihood of observations of colony growth rates in Spontaneous single-nucleotide substitutions and microsatellite mutations have distinct distributions of fitness effects.

The following abbreviations refer to models described in the text:

  1. poissonmut: 'SNMs only' model
  2. lambdafit: SNMs + unidentified mutations, ‘single DFE’ model
  3. mixedgauss: SNMs + unidentified mutations, ‘Gaussian’ model
  4. mixed_digamma: SNMs + unidentified mutations, ‘two-gamma’ model
  • pre_MLE... and post_MLE... functions perform functions that occur before and after optimization, respectively, that don't need to happen in each round of optimization (e.g. loading in data and organizing inputs in the case of pre_MLE... functions, organizing multiple outputs in the case of post_MLE... functions). These are essentially used for 'housekeeping' and are not necessary for understanding the implementation of the math described in the paper
  • LL_... functions calculate likelihoods of data; these are named directly in the setup files for each model. Note that some likelihood calculation functions perform optimization calling functions from MutationEffectEstimation.
  • sim... functions (e.g. sim_mut_effect_poissonmut) simulate mutational effect or growth rate data from a set of parameters (dimensionality of data simulated matches provided input data)
  • nonlin_constraint... functions (e.g. nonlin_constraint_poissonmut) calculate non-linear constraints on parameter values to be used during optimization
  • fourier_dfe_... functions (e.g. fourier_dfe_poissonmut) calculate the characteristic function for a distribution of mutational effects

There are also a number of accessory functions used for e.g. safely converting between fourier space and mutational effect space, etc.

About

Calculate likelihood of relative strain growth rates based on growth rate differences between them, as well as likelihood of distribution of mutational effects based on strain phenotypes

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages