readMsp: Import a .msp file into R

Description Usage Arguments Value

View source: R/readMsp.R

Description

Read an .msp file into R from a system path. The data and header for each block are converted and assigned index numbers. Two data.tables are returned to save memeory. These can be combined by merging on the 'index'

Usage

1
readMsp(path, commentType)

Arguments

path

system path to a .msp file containing mass spectral data

commentType

either 'NIST' or 'MoNA' - used for comment parsing

Value

a list containing two data.tables


pmbrophy/mspReader documentation built on May 26, 2020, 9:58 p.m.