Skip to content

Commit 25b714d

Browse files
committed
Read node sizes and transparency for ML tree from design script
Also removes an unused variable
1 parent fb59cad commit 25b714d

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

config/design_plots.R

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,15 @@ gene_colors = c(
4343

4444
# M-L tree colors and labels
4545
tree_colors = c(
46-
tip_label = "#D944AA",
47-
boot_alrt_pass = "#64acee"
46+
tip_label = "#D944AA99",
47+
boot_alrt_pass = "#64ACEEB2"
4848
)
4949

50-
5150
node.size <- c(
5251
tip_label = 2,
5352
boot_alrt_pass = 0.8
5453
)
5554

56-
node.alpha <- c(
57-
tip_label = 0.6,
58-
boot_alrt_pass = 0.7
59-
)
60-
61-
6255
# Nucleotide variants classification colors and labels
6356
NV_colors <- c(
6457
Frameshift = "#568D63",

workflow/scripts/report/phylo_plots.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ p <- ggtree(tree_ml, layout = "circular") %<+% ml.tree.annot +
245245
values = setNames(tree_colors[names(legend.names)], legend.names),
246246
na.translate = FALSE
247247
) +
248-
scale_size_discrete(range = c(2, 1), na.translate = FALSE)
248+
scale_size_manual(
249+
values = setNames(node.size[names(legend.names)], legend.names),
250+
na.translate = FALSE
251+
)
249252

250253
ggsave(
251254
filename = snakemake@output[["tree_ml"]],

0 commit comments

Comments
 (0)