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

kmerclust_load.R: fix columns names

parent de8c91a8
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,15 @@ library(kmerclust) ...@@ -2,9 +2,15 @@ library(kmerclust)
library(vroom) library(vroom)
args <- commandArgs(trailingOnly = TRUE) args <- commandArgs(trailingOnly = TRUE)
data <- vroom::vroom(args[2], show_col_types = FALSE) count <- vroom::vroom(
format(object.size(data), units = "Mb") args[2],
annotation <- parse_annotation(args[1]) show_col_types = FALSE,
count <- annotate_counts(annotation, data, args[3]) %>% dplyr::ungroup() %>% dplyr::select(-c("files")) col_names = c("kmer", "count_m", "count_f"),
skip = 1) %>%
mutate(
count_m = as.integer(count_m),
count_f = as.integer(count_f),
specie = as.factor(args[3])
)
format(object.size(count), units = "Mb") format(object.size(count), units = "Mb")
save(count, file = paste0(args[3], ".Rdata")) save(count, file = paste0(args[3], ".Rdata"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment