Skip to content
Snippets Groups Projects
Verified Commit 5214d2e5 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

update boot script to use 1e-3 of the reads for the fit

parent a7e820ef
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ load(file = paste0(args[1], ".Rdata"))
res <- count %>%
dplyr::select(count_m, count_f) %>%
as.matrix() %>%
poiss_compare_models(count, nboot = as.numeric(args[2]) * 2, bootsize = 1, core = as.numeric(args[2]))
poiss_compare_models(count, nboot = as.numeric(args[2]) * 2, frac = 1e-3 bootsize = 1, core = as.numeric(args[2]))
save(res, file = paste0(args[1], "_boot_", args[3], ".Rdata"))
......@@ -7,11 +7,13 @@ print(args)
load(file = paste0(args[1], "_boot.Rdata"))
print(res)
res %>%
ggplot(aes(x = name, y = BIC)) +
res %>%
pivot_longer(cols = -c("name"), names_to = "metric") %>%
ggplot(aes(x = name, y = value)) +
geom_violin() +
facet_wrap(~metric) +
theme_bw()
ggsave(paste0(args[1], "_BIC.pdf"))
ggsave(paste0(args[1], "_BIC_loglik.pdf"))
load(file = paste0(args[1], ".Rdata"))
count %>%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment