Git Product home page Git Product logo

evolimmune's Introduction

Diversity of immune strategies explained by adaptation to pathogen statistics

This repository contains the source code associated with the manuscript

Mayer, Mora, Rivoire, Walczak : Diversity of immune strategies explained by adaptation to pathogen statistics, PNAS 2016

It allows reproduction of all numerical results reported in the manuscript.

DOI

Quick-start: Follow these links to see the analysis code producing the figures

Installation requirements

The code uses Python 2.7+.

A number of standard scientific python packages are needed for the numerical simulations and visualizations. An easy way to install all of these is to install a Python distribution such as Anaconda.

Additionally the code also relies on these packages:

And optionally for nicer progress output install:

Running the code

The time stepping of the population dynamics is accelerated by a Cython module, which needs to be compiled first. To compile it run make cython in the lib directory. In the directories for the different figures launch make run followed by make agg to produce the underlying data. Please copy the paper.mplstyle to your custom matplotlib style directory (likely .config/matplotlib/stylelib/). We provide both Jupyter notebooks with additional explanatory comments and plain python files for generating the figures.

Remarks

In the code we use the following simplified notations c_constitutive = mu1, c_defense = mu2, c_infection = lambda_, c_uptake = cup and we define the trade-off c_defense(c_constitutive) as a parametric function of a parameter epsilon in [0, 1], where 0 corresponds to fully constitutive and 1 to maximally regulated responses.

Note: As the simulations are stochastic you generally will not get precisely equivalent plots.

Contact

If you run into any difficulties running the code, feel free to contact us at [email protected].

License

The source code is freely available under an MIT license. The plots are licensed under a Creative commons attributions license (CC-BY).

evolimmune's People

Contributors

andim 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.