Created
May 18, 2018 11:42
-
-
Save genomewalker/b160c4ddb573b3cab2083056a585d484 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(Nonpareil) | |
library(tidyverse) | |
f <- list.files(path="/scratch/antonio/nonpareil/out/", pattern = "npo") | |
f <- list.files(path="~/tara_nonpareil/", pattern = "npo") | |
sample.names <- sapply(strsplit(f, ".npo"), `[`, 1) | |
Nonpareil.curve(f[[1]]) | |
results_np_tara <- lapply(file.path("~/tara_nonpareil/",f), Nonpareil.curve) | |
names(results_np_tara) <- sample.names | |
purrr::map_df(results_np_tara, "C") %>% gather() %>% | |
ggplot(aes(1,value)) + | |
geom_boxplot() | |
purrr::map_df(results_np_tara, "diversity") %>% gather() %>% | |
ggplot(aes("1", value)) + | |
geom_boxplot() | |
save(results_np_tara, file = "~/tara_nonpareil.Rdata") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment