mq_conv_hs: Convert a MassSpectrum object to a hyperSpec object

Description Usage Arguments Examples

View source: R/mq_conv_hs.R

Description

This function converts a list of MALDIquant::MassSpectrum objects to a hyperSpec::hyperSpec object for downstream processing. It assumes all MassSpectrum objects have the same wavelengths as the first entry in the list.

Usage

1
mq_conv_hs(mq.x)

Arguments

mq.x

list of MALDIquant objects

Examples

1
2
3
4
5
6
7
8
# Load hyperSpec object
data("hs_example")

# Convert to MassSpectrum object
mq.x <- hs_conv_mq(hs_example)

# Convert to hyperspec object
hs.x <- mq_conv_hs(mq.x)

CMET-UGent/MicroRaman documentation built on July 25, 2020, 6:20 p.m.