A simplified mass-spec data reader that creates a standardized data object for use among the tidyproteomics packages.
To install, open R and type:
install.packages("devtools")
devtools::install_github("jeffsocal/msreadr")
Its simple to get started, just point the read_spectra()
function at a
downloaded MGF or mzML file and save as an object.
library(msreadr)
data <- path_to_example() |> read_spectra()
Examine the contents
data
##
## ── R MS SPECTRA data object ──
##
## Memory 35.58 kB
## Scans 8
## Precursor
## Intensity 6.5 - 8.3 (log10)
## LC time 0.29 - 0.92 (sec)
## M/Z 378.1929 - 506.757
## Z 2
##
Check out the related packages mspredictr