view 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 source

#!/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")
)