Skip to content

Simulation of cell populations and lineages during replicative senescence. Code for "Individual cell fate versus population dynamics revealed by a mathematical model linking telomeres to senescence".

Notifications You must be signed in to change notification settings

anais-rat/telomeres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telomeres

Overview

Code for "Individual cell fate versus population dynamics revealed by a mathematical model linking telomeres to senescence".

The telomeres package contains all the necessary auxiliary code. This is where the mathematical model is encoded, with its default parameters (parameters.py). More generally, it contains all the functions allowing to

  • Posttreat the raw data (make_*.py)
  • Simulate the model (simulation.py)
  • Plot the simulated and experimental data, the laws of the model... (plot.py)

The scripts in this folder are not intended to be modified (unless you find errors, in which case please let me know) or used directly to run simulations.

The makeFiles folder contains scripts to run to generate the data/processed directory, that contains the posstreated data.

The main folder contains the scripts that should be run to perform the simulations and plot their results.

Contents

  1. Software Requirements
  2. Dependencies
  3. Dataset
  4. Code

Software Requirements

The code has been tested on the following systems:

  • Linux: Ubuntu 24.04 LTS
  • Mac: MacOS Big Sur 11.6.2
  • Windows:

Dependencies

Python Versions and Packages

The code has been developed in Python 3.8 and maintained with Python 3.11.7.

Errors might occur on a machine or cluster that is missing some Python packages, like cma, latex and mpl-axes-aligner. They can be installed via Python console with:

pip install cma
pip install latex
pip install mpl-axes-aligner

Additional Requirements for Ubuntu Users

Ubuntu users might need to install texlive packages via terminal:

sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super texlive-fonts-extra

or

sudo apt install texlive-full

Dataset

Available in the data folder.

Code

Result Reproducibility

Reproducing our results is costly in terms of time and memory. We therefore recommend simulating with "small" parameters first. For example, compute averages on $k = 2$ simulations:

  • In main/lineage/compute.py taking SIMU_COUNT = 2 instead of 1000
  • In main/population/compute.py taking SIMU_COUNT = 3 instead of 30, and start with $N_{init} = 5$ cells rather than $300$ or $1000$ by setting C_EXP = np.array([5])

For "larger" parameters, parallel computing on a cluster is strongly recommended. We used the CLEPS cluster from Inria Paris. Our Slurm submission scripts are the .batch files contained in the main directory.

Please contact me directly if you need some of our raw simulated data (250 Go total, including less than 5 Go for lineage simulations).

About

Simulation of cell populations and lineages during replicative senescence. Code for "Individual cell fate versus population dynamics revealed by a mathematical model linking telomeres to senescence".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published