make_se: Data.frame to SummarizedExperiment object conversion using an...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

make_se creates a SummarizedExperiment object based on two data.frames: the protein table and experimental design.

Usage

1
make_se(proteins_unique, columns, expdesign)

Arguments

proteins_unique

Data.frame, Protein table with unique names annotated in the 'name' column (output from make_unique()).

columns

Integer vector, Column numbers indicating the columns containing the assay data.

expdesign

Data.frame, Experimental design with 'label', 'condition' and 'replicate' information. See UbiLength_ExpDesign for an example experimental design.

Value

A SummarizedExperiment object with log2-transformed values.

Examples

1
2
3
4
5
6
7
8
9
# Load example
data <- UbiLength
data <- data[data$Reverse != "+" & data$Potential.contaminant != "+",]
data_unique <- make_unique(data, "Gene.names", "Protein.IDs", delim = ";")

# Make SummarizedExperiment
columns <- grep("LFQ.", colnames(data_unique))
exp_design <- UbiLength_ExpDesign
se <- make_se(data_unique, columns, exp_design)

DEP documentation built on Nov. 8, 2020, 7:49 p.m.