Mercurial > repos > dfornika > render_tree
diff render_tree.R @ 0:342fe8c2d8bb draft
planemo upload for repository https://github.com/dfornika/galaxytools/tree/master/tools/render_tree commit 8898f2229ec13917b7d96e20725f3871d9d93e90-dirty
author | dfornika |
---|---|
date | Sat, 29 Jun 2019 00:13:08 -0400 |
parents | |
children | 9f0241ee55e8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/render_tree.R Sat Jun 29 00:13:08 2019 -0400 @@ -0,0 +1,18 @@ +#!/usr/bin/env Rscript + +suppressMessages( + library(ggtree) +) + +args = commandArgs(trailingOnly=TRUE) + +tree <- read.tree(args[1]) + +tree_plot <- ggplot(tree, aes(x, y)) + + geom_tree() + + theme_tree2() + + geom_tiplab() + +suppressMessages( + ggsave(args[2], plot=tree_plot, device="png") +)