summarizeFeatures: Summarization for one site

Description Usage Arguments Value Examples

View source: R/summarize.R

Description

summarizeFeatures summarizes feature log2-intensities for a PTM site and returns one summarized value per run. Tukey's median polish is used by default.

Usage

1
summarizeFeatures(df, method = "tmp")

Arguments

df

A data frame with columns of run, feature, and log2inty.

method

A string defining the summarization method. Default is "tmp", which applies Tukey's median polish. Other methods include log2 of the sum of intensity ("logsum"), and mean ("mean"), median ("median") and max ("max") of the log2-intensities.

Value

A tibble restoring one summarized value per MS run.

Examples

1
2
3
4
5
6
df <- data.frame(
    run=c("a", "a", "a", "b", "b"),
    feature=c("F1", "F2", "F3", "F1", "F3"),
    log2inty=rnorm(5)
)
summarizeFeatures(df, method="tmp")

tsunghengtsai/MSstatsPTM documentation built on Oct. 4, 2020, 5:51 p.m.