Created
September 22, 2018 04:26
-
-
Save chasemc/a0705b6edd32c9af17276cfa7fb46b31 to your computer and use it in GitHub Desktop.
read mzxml into R for serialization faster than with xml2::serialize
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
# 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