Skip to content

WeitzGroup/AdaptivePlasticityofLambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

Code for: The Adaptive Plasticity of Phage Lambda

Authors: Sylvain Gandon, Tapan Goel, Joshua S. Weitz, Sebastian Lion

Code has been archived on Zenodo: DOI

The larger codebase for the manuscript is archived on : DOI

General description:

This repository contains all the code and data needed to generate Figures 1, S2,S3 and S5 in the paper "The Adapative Plasticity of Phage Lambda". The code is written in MATLAB 2024a and MATLAB 2025b. The code associated with the entire mansucript can be found on the Zenodo archive.

File descriptions:

  1. FigureS2.m : Generates figure S2.

  2. FigureS3.m : Generates figure S3.

  3. FigureS5.m : Generates figure S5 using data from Data/ComparisonData.xlsx.

  4. Figure1.m : Contains data to generate Figure 1a and 1b and generates the figure. Data courtesy of Ido Golding - data from Zeng et al. 2010 (DOI: 10.1016/j.cell.2010.03.034)

  5. Utils/ODE_SELV_MOI2.m : Contains the ODE equations for the SELV model with coinfection for a maximal multiplicity of infection = 2 and any number of viral strains.

  6. Utils/MultiSpeciesTrajectories.m : Generates population trajectory of a polymorphic population where one of the viral types is the ESS and the others are sampled randomly. Also provides the mean and standard deviations of the trait values as functions of time. This code generates the data needed for Figure S3.

  7. Utils/PairInvasionDynamics.m : Simulates pairwise invasions to a given resident strategy by user specified mutant strategies. Also compuates the initial invasion growth rate for each mutant strategy. This code generates data needed for Figure S2. Uses the MATLAB parallel computing toolbox.

  8. Utils/MutantGrowthRate.m : Takes the resident-mutant timeseries and calculates the mutant invasion growth rate by fitting an exponential to the peaks of the mutant population fraction.

  9. Data/ComparisonData.xlsx : Contains data used to generate Figure S5.

  10. Data/FigureData.mat : Contains data used to generate Figure S2. Currently not in use. The data for the figure is generated insitu using the PairInvasionDynamics function.

About

This repository contains code associated with the manuscript titled "The adaptive plasticity of phage lambda"

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages