Skip to content
moshejasperPublic

About

Aggregate and visualize TreeMix & Orient-A-Graph bootstraps

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

tmixviz

R-CMD-check Python package CI

The goal of tmixviz is to run aggregate & visualize TreeMix and Orient-A-Graph inputs & outputs.

The PYTHON COMPONENT enables aggregation of Orient-A-Graph or TreeMix bootstrap outputs.

The R COMPONENT enables tree consensus and visualizations.

Note, this is the alpha version of this package. Core functionality will be subject to change during continued development

Installation

You can install the development version of tmixviz from GitHub with:

devtools::install_github("moshejasper/tmixviz")

and (python)

pip install git+https://github.com/moshejasper/tmixviz.git

Python package

Once installed, cd into the folder with the bootstraps and run the command:

tmixviz aggregate-bootstraps --mix [mig_num] --prog [program_abbreviation]

R package

Example code found below

library(tmixviz)
tmx <- tmix_from_migfile("inst/extdata/oag_mig4_boot", boot_thresh=0.9,
                         pref="inst/extdata", branchcollapsemode="delta", delta=0.5) # fix ending... 

plot_tmix_migs(tmx , mig_thresh=0.25, treeboots=TRUE, style="roundrect", 
               show_legend=TRUE, bootlabsize=0.5, textsize=4, use_drift=FALSE, 
               linewidth=1)
#> Warning in (function (mapping = NULL, data = NULL, ..., stat = "identity", :
#> Ignoring unknown parameters: `label.size`

plot_dests(tmx, display_thresh=0.05, dest_thresh=0.33, treeboots=TRUE, style="ellipse", 
           textsize=5, linewidth=1.5, xmax=0.1)
#> Warning in (function (mapping = NULL, data = NULL, ..., stat = "identity", :
#> Ignoring unknown parameters: `label.size`

About

Aggregate and visualize TreeMix & Orient-A-Graph bootstraps

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages