PomaMSnSetClass {POMA} | R Documentation

## Convert data frames to a MSnSet Object

### Description

This function converts data frame objects to a MSnSet object.

### Usage

    PomaMSnSetClass(target, features)

### Arguments

`target` | Metadata variables structured in columns. Sample ID must be the first column and group/type/treatment of the study must be the second column.
`features` | Table of features. Each feature in one column.

### Value

A MSnSet object.

### Author(s)

Pol Castellano-Escuder

### References

Laurent Gatto and Kathryn S. Lilley. MSnbase - an R/Bioconductor package for isobaric tagged mass spectrometry data visualization, processing and quantitation. Bioinformatics 28, 288-289 (2012).

### Examples

    data(iris)

    # create target: two column (or more) data frame with IDs and Group factor
    target <- data.frame(ID = 1:150, Group = iris$Species)

    # create features: p column data frame (or matrix) with features
    features <- iris[,1:4]

    # create an MSnSet object with POMA
    object <- PomaMSnSetClass(target = target, features = features)

[Package POMA version 1.2.0 Index]