Skip to content

Instantly share code, notes, and snippets.

@chasemc
Created September 22, 2018 04:26
Show Gist options
  • Save chasemc/a0705b6edd32c9af17276cfa7fb46b31 to your computer and use it in GitHub Desktop.
Save chasemc/a0705b6edd32c9af17276cfa7fb46b31 to your computer and use it in GitHub Desktop.
read mzxml into R for serialization faster than with xml2::serialize
# a <- path to mzXml
a %>%
readLines %>%
serialize(., NULL) %>%
memCompress(., type = "gzip") %>%
list(.) %>%
return(.) -> d
z <- xml2::read_xml(paste0(e,collapse = "\n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment