Skip to content

Commit 16523fc

Browse files
committed
Fix error for zero selected variants
1 parent 7978a48 commit 16523fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workflow/scripts/report/af_trajectory_panel_plot.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ selected.colors <- sample(TRAJECTORY.PANEL.COLORS, length(selected.variants))
3232
log_debug("Selected color: {selected.colors}")
3333
p <- variants %>%
3434
filter(VARIANT_NAME %in% selected.variants) %>%
35-
mutate(gPOS = reorder(paste0("g.", POS), POS)) %>%
35+
mutate(
36+
gPOS = paste0("g.", POS),
37+
gPOS = reorder(gPOS, POS)
38+
) %>%
3639
ggplot() +
3740
aes(
3841
x = interval,

0 commit comments

Comments
 (0)