Skip to content

moibernabeu/ghost_transfers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Simulating transfers from ghost lineages

This repository contains a set of scripts that performs the simulations of ghost transfers using a backbone tree of life. The scripts can be run sequentially by executing sbatch job_serial.sh, which will launch the job to the slurm queueing system. Loaded modules (R and python) differ between supercomputers, thus, for reproducibility one should change them to the ones installed in its server preserving the versions.

The scripts contains:

  1. 00_parse_tree.R: it reads and parses the tree, removing the mitochondrial and chloroplast sequences.
  2. 01_get_branch_set.py: this script retrieves the birth and dead ages of all the branches of the tree (the branch space).
  3. 02_simulate_transfers.R: using the branch space, the script simulates 10,000 rounds of 1,000 transfers.
  4. 03_plotting_shifts.R: this reads the output generated by the simulation and plots the proportion of shifts.
  5. 05_heatmap.R: it calculates the proportion of shifts between donors of two different groups and plots this information in a heatmap.
  6. job_serial.sh: the job script that executes all the sequence.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published