Coder Social home page Coder Social logo

plavskin / gr_diff_dfe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 168 KB

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: MIT License

MATLAB 100.00%

gr_diff_dfe's Introduction


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.

gr_diff_dfe's People

Contributors

plavskin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.