Skip to content

Commit d7e6e54

Browse files
committed
update calibration image
1 parent a289c4b commit d7e6e54

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

dev/simulate_read_counts.R

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ library(ppcSeq)
44
library(furrr)
55
plan(multicore)
66

7+
my_theme =
8+
theme_bw() +
9+
theme(
10+
panel.border = element_blank(),
11+
axis.line = element_line(),
12+
panel.grid.major = element_line(size = 0.2),
13+
panel.grid.minor = element_line(size = 0.1),
14+
text = element_text(size=12),
15+
legend.position="bottom",
16+
aspect.ratio=1,
17+
strip.background = element_blank(),
18+
axis.title.x = element_text(margin = margin(t = 10, r = 10, b = 10, l = 10)),
19+
axis.title.y = element_text(margin = margin(t = 10, r = 10, b = 10, l = 10))
20+
)
21+
722
FDR_threshold = 0.2
823

924
res_1 =
@@ -66,7 +81,17 @@ es =
6681
)
6782
)
6883

69-
(es %>% mutate(fp = fp %>% divide_by(10)) %>% unnest(`false positive predicted`) %>% ggplot(aes(x=fp, y= `false positive predicted`)) + geom_jitter() + xlab("false positive") + my_theme) %>% ggsave(plot=., "dev/false_positive_study.pdf", device="pdf")
84+
(
85+
es %>%
86+
mutate(fp = fp %>% divide_by(10)) %>%
87+
unnest(`false positive predicted`) %>%
88+
ggplot(aes(x=fp, y= `false positive predicted`)) +
89+
geom_jitter(width = 0.01) +
90+
geom_smooth(method = "lm") +
91+
xlab("false positive") +
92+
my_theme
93+
) %>%
94+
ggsave(plot=., "dev/false_positive_study.pdf", device = cairo_pdf, width=89, height = 90, units = "mm" )
7095

7196
save(list=c("es", "input_2", "res_1"), file="dev/false_positive_study_3_runs.RData")
7297

0 commit comments

Comments
 (0)