The repository TreeToCongruency provides a R script called TreeToCongruency.R to compare two Newick trees through a tanglegram and estimations of congruency metrics (Robinson-Foulds indexes, Fowlkes-Mallows indexes and Cophenetic correlations).
The R script TreeToCongruency.R was prepared and tested with R version 3.6.3.
- library(ape)
- library(ggplot2)
- library(maps)
- library(phytools)
- library(viridis)
- library(dplyr)
- library(phylogram)
- library(phangorn)
- library(dendextend)
sudo apt update
sudo apt install r-base
R --version
R --version
sudo apt-get update
sudo apt-get upgrade
sudo apt-cache showpkg r-base
sudo apt-get install r-base
R --version
git clone https://github.com/Nicolas-Radomski/TreeToCongruency.git
cd TreeToCongruency
R
install.packages("ape")
install.packages("ggplot2")
install.packages("maps")
install.packages("phytools")
install.packages("viridis")
install.packages("dplyr")
install.packages("phylogram")
install.packages("phangorn")
install.packages("dendextend")
quit()
Rscript TreeToCongruency.R tree1.nwk tree2.nwk
- figures of pairwise trees (tanglegram.pdf and tanglegram.tiff)
- estimation of the Robinson-Foulds distance (RF.txt)
- estimation of the Robinson-Foulds indexes (FM-indexes.txt)
- estimation of the Fowlkes-Mallows indexes (RF-indexes.txt)
- estimate the Cophenetic correlations (CC-kendall.txt, CC-person.txt and CC-spearman.txt)
- First version: Henri C., P. Leekitcharoenphon, H.A. Carleton, N. Radomski, R. S. Kaas, J. F. Mariet, A. Felten, F. M. Aarestrup, P. G. Smidt, S. Roussel, L. Guillier, M.Y. Mistou and R.S. Hendriksen. An assessment of different genomic approaches for inferring phylogeny of Listeria monocytogenes. 2017, Frontiers Microbiology, 8(2351): 1-13, doi.org/10.3389/fmicb.2017.02351
- Second version: Vila Nova M, Durimel K., La K., Felten A., Bessières P., Mistou M.Y., Mariadassou M. and N. Radomski. Genetic and metabolic signatures of Salmonella enterica subsp. enterica associated with animal sources at the pangenomic scale. 2019, BMC Genomics, 20(1): 814, doi: 10.1186/s12864-019-6188-x
My colleague Antonio Rinaldi for our fruitful exchanges about Rscript
Nicolas Radomski email: [email protected]