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

kmerclust_load.R: use vroom to load csv

parent 5b03fdb5
No related branches found
No related tags found
No related merge requests found
library(kmerclust)
library(vroom)
args <- commandArgs(trailingOnly = TRUE)
print(args)
data <- readr::read_tsv(args[2], show_col_types = FALSE)
data <- vroom::vroom(args[2], show_col_types = FALSE)
format(object.size(data), units = "Mb")
annotation <- parse_annotation(args[1])
count <- annotate_counts(annotation, data, args[3]) %>% dplyr::ungroup()
count <- annotate_counts(annotation, data, args[3]) %>% dplyr::ungroup() %>% dplyr::select(-c("files"))
format(object.size(count), units = "Mb")
save(count, file = paste0(args[3], ".Rdata"))
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