Learn R Programming

mstherm (version 0.4.7)

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

Description

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

Usage

# S3 method for 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

Run this code
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)

Run the code above in your browser using DataLab