as.data.frame.MSThermResultSet: MSResultSet to data frame.

Description Usage Arguments Value Examples

View source: R/export.R

Description

Populates a data frame with information from an MSResultSet, one row per protein/group

Usage

1
2
## S3 method for class 'MSThermResultSet'
as.data.frame(x, ...)

Arguments

x

an MSResultSet object

...

additional arguments passed to or from other functions

Value

A data frame populated with relevant information per result

Examples

1
2
3
4
5
6
7
control <- system.file("extdata", "demo_project/control.tsv", package="mstherm")
annots  <- system.file("extdata", "demo_project/annots.tsv",  package="mstherm")
expt    <- MSThermExperiment(control, annotations=annots)
expt    <- normalize_to_std(expt, "cRAP_ALBU_BOVIN", plot=FALSE)
res     <- model_experiment(expt, bootstrap=FALSE, np=2)

df <- as.data.frame(res)

jvolkening/r-mstherm documentation built on May 20, 2019, 5:21 a.m.