Crates.io | rectree3 |
lib.rs | rectree3 |
version | 0.5.3 |
source | src |
created_at | 2021-04-20 16:31:03.802738 |
updated_at | 2024-02-22 13:22:58.418413 |
description | OBSOLETE: Pease see 'thirdkind' instead! (Read 2 recPhyloXML files and build a svg representation of 3 level reconciliation as gene/parasite/host.) |
homepage | https://github.com/simonpenel/rectree3 |
repository | https://github.com/simonpenel/rectree3 |
max_upload_size | |
id | 387190 |
size | 599,401 |
Build a svg representation of a 3 level reconciliation, as gene/parasite/host
Still in development
Keywords: phylogeny, reconciled trees, phylogenetic trees
Input format is recPhyloXML
The program needs 2 input files: one for the gene/parasite reconciliation, one for the parasite/host reconciliation.
The program creates 7 output files, including 2 files displaying the 3 levels all together:
mapped_1.svg display the recnociled genes trees inside the "pipe" parasite tree. The "pipe" trees shows the duplications, losses and transfers reletive to the host in a similar way the transfers are displayed in simple phyloXML format.
mapped_2.svg display the reconciled parasite trees inside the "pipe" host tree. The transfers between genes are mapped to the parasite tree and displayed
rectree3 is written in Rust. The code is managed using Cargo and published on crates.io.
Install cargo:
curl https://sh.rustup.rs -sSf | sh
or for Windows see https://doc.rust-lang.org/cargo/getting-started/installation.html
Once Cargo is installed just open a terminal and type:
cargo install rectree3
You may as well install from the sources. Clone or download the sources here https://github.com/simonpenel/rectree2svg and type:
cargo build --release
target/release/rectree3 -h
Usage:
rectree3 -f parasite host input file -g gene parasite input file [-b][-c config file][-h][-i][-I][-L][-o output file][-r ratio][-v]
-b : open svg in browser
-c configfile: use a configuration file
-h : help
-i : display internal gene nodes
-I : display internal species nodes
-L : display as landscape
-r ratio : set the ratio between width of species and gene tree.
Default 1.0, you usualy do not need to change it.
-v : verbose
Example:
rectree3 -f recphyl_examples/test1_mult_parasite/rechp_dtl.recphyloxml -g recphyl_examples/test1_mult_parasite/recgs_mult_host_dtl.recphyloxml -i -b
You will find several input file examples in recphylo_examples directory.
You may configure some of the features of the svg with the -c option.
The default values are the values of the "config_default.txt" file.
Modify the default values and save it into "my_config.txt" then type:
rectree3 use the light_phylogeny crate:
https://crates.io/crates/light_phylogeny
See http://phylariane.univ-lyon1.fr/recphyloxml/
recPhyloXML paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6198865/
phyloXML paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2774328/
Multiple parasites