Skip to content

Commit 8bd4fdc

Browse files
committed
Update report plots labels and colors
Fixes legend in context phylogeny and updates colors in diversity plot
1 parent abe75cd commit 8bd4fdc

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

config/design_plots.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ GENE_PALETTE <- c(
4242
# Nucleotide diversity
4343
DIVERSITY_PALETTE <- c(
4444
density_fill = "#fcbf49",
45-
density_color = "#eae2b7",
46-
value_color = "#d62828",
45+
density_color = "#ffaa00",
46+
value_color = "#D944AA",
4747
dnorm_color = "#f77f00"
4848
)
4949

@@ -60,7 +60,7 @@ TREE_NODE_SIZE <- c(
6060

6161
TREE_LEGEND_NAMES <- c(
6262
tip_label = "Target samples",
63-
boot_alrt_pass = "UFBoot ≥ %.2f%s & SH-aLRT ≥ %.2f%s"
63+
boot_alrt_pass = "UFBoot ≥ %s%s & SH-aLRT ≥ %s%s"
6464
)
6565

6666
# Nucleotide variants classification colors and labels

workflow/scripts/report/context_phylogeny_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ source(snakemake@params[["design"]])
2020
# Format tree label for well supported nodes
2121
TREE_LEGEND_NAMES["boot_alrt_pass"] <- sprintf(
2222
TREE_LEGEND_NAMES["boot_alrt_pass"],
23-
snakemake@params[["boot_th"]], "%",
24-
snakemake@params[["alrt_th"]], "%"
23+
100 * snakemake@params[["boot_th"]], "%",
24+
100 * snakemake@params[["alrt_th"]], "%"
2525
)
2626

2727
log_info("Reading tree")

workflow/scripts/report/context_phylogeny_plot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ source(snakemake@params[["design"]])
2121
# Format tree label for well supported nodes
2222
TREE_LEGEND_NAMES["boot_alrt_pass"] <- sprintf(
2323
TREE_LEGEND_NAMES["boot_alrt_pass"],
24-
snakemake@params[["boot_th"]], "%",
25-
snakemake@params[["alrt_th"]], "%"
24+
100 * snakemake@params[["boot_th"]], "%",
25+
100 * snakemake@params[["alrt_th"]], "%"
2626
)
2727

2828
log_info("Reading JSON data")

0 commit comments

Comments
 (0)