Learn R Programming

MALDIquant (version 0.5)

pA1: Example Mass Spectra (extracted peaks)

Description

This dataset contains two example peak lists (they are technical replicates). This peak lists are extracted out of sA1. It is used to demonstrate the usage of MALDIquant-package.

Usage

pA1

Arguments

format

A list containing two MassPeaks-class objects.

See Also

MassPeaks-class, sA1

Examples

Run this code
## generated as follow:

## load library
library("MALDIquant");

## load example data
data("sA1", package="MALDIquant");

## show some information
sA1

## running typical workflow

## transform intensities
t <- lapply(sA1, transformIntensity, fun=sqrt);

## smoothing function
movingAvg <- function(y) {
    ma <- rep(1, 5)/5;
    return(filter(y, ma, sides=2));
}

## smooth spectra
s <- lapply(t, transformIntensity, fun=movingAvg);

## baseline correction
b <- lapply(s, removeBaseline);

## detect peaks
pA1 <- lapply(b, detectPeaks);

Run the code above in your browser using DataLab