This project requires the following phylogenetic inference tools:
| Program | Version |
|---|---|
| BEAGLE | 4.0.1 |
| BEAST | 1.10.5pre_thorney_0.1.2 |
| iqtree | 2.2.2.6 |
| lsd | 2.3 |
| treetime | 0.11.4 |
There is no need to install dependencies with docker or singularity.
nextflow run main.nf -profile docker
nextflow -C configs/pbs.config run main.nf -profile singularity
Since the pipeline will take weeks to run to completion one should use a high performance computer. An example of configuration file for PBS Pro can be found in the configs folder.
git clone 4ment/fixed-tree-experiments.git
Install BEAST, IQ-TREE and LSD in the bin directory.
Other Python dependencies, including TreeTime, are managed with Anaconda:
conda env create -f environment.yml
conda activate fixed-tree
You may need to set the NXF_CONDA_CACHEDIR variable for nextflow to locate the conda environment
export NXF_CONDA_CACHEDIR=$HOME/miniconda3/envs
nextflow run main.nf
This command creates a results/ directory in the pipeline working directory. The directory contains all intermediate and final outputs needed to generate the figures.
The results can be visualized using the included R Markdown report. Required R packages are managed with renv. Run once:
Rscript -e 'renv::restore()'
Then render the results to a PDF:
Rscript -e 'rmarkdown::render("plot.Rmd")'
python scripts/build-net.py --multi --results results --out plot.pdf
This script will create a pdf file containing the graphs and it will also generate a file containing z-scores contained in the manuscript.