PomaMSnSetClass: Convert data frames to a MSnSet Object

Description Usage Arguments Value Author(s) References Examples

View source: R/PomaMSnSetClass.R

Description

This function converts data frame objects to a MSnSet object.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

POMA documentation built on Nov. 8, 2020, 6:26 p.m.