Skip to content

MICS-Lab/Model-comparison-with-phylogenetic-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Model choice for JAK2-mutated hematopoietic stem cells dynamics based on phylogenetic data

This repository contains all the scripts to build phylogenetic trees from genotype matrices and to run ABC-SMC and ABC-SMC model selection for the four patients presented.

The data in the form of genotype matrices (.CSV files) should be put in the folder data. The input folder contains scripts to simulate the three models and to generate Lineage Through Time (LTT) plots and Clonal Fraction (CF) for the simulated tree. All these files are necessary to run the inference algorithm. In particular, the script cellSimulation.jl contains all the functions to build the exact and approximated genealogical tree from the model of Hermange et al., and it has been used to perform all the numerical analysis to assess the quality of the approximation.

The scripts are made to run one step of the ABC-SMC algorithm for N_points particles to approximate the sequential probability distributions. They are built to run in parallel across independent threads, improving computation time and flexibility. To run one step of the model selection ABC-SMC for a single patient, refer to (patient_ID)manual_model_selection.jl. After each step run, it is possible to combine results across threads using combine_smc.jl, which also prints quantities of interest for use in the next step.

To run a single model ABC-SMC, it is sufficient to change the model sampling in smc_onestep.jl as m=1 for VanEgeren et al., m=2 for Williams et al. and m=3 for the adaptation to the construction of phylogenetic trees of Hermange et al..

The script run_allpatients.jl is made to run model selection for the whole dataset for one step, then the results for one step across threads can be combined with combine_allpatients.jl.

The notebook tree_simulation.ipynb contains examples to simulate clonal dynamics and phylogenetic trees for the three models. It has been used to simulate and obtain synthetic datasets with specific parameters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors