simulatePeaks: Simulate peak log2-intensities

Description Usage Arguments Value Examples

View source: R/simulate.R

Description

simulateSites simulates a list of log2-intensities of multiple spectral features of a PTM site, in multiple MS runs and conditions.

Usage

1
simulatePeaks(nGroup, nRep, nFeature, mu, delta, sRep, sPeak)

Arguments

nGroup

An integer to specify the number of conditions.

nRep

An integer to specify the number of replicates per condition.

nFeature

An integer to specify the number of features per site.

mu

A numeric to specify the overall mean log2-intensity.

delta

A numeric to specify the deviation of the mean log2-abundance of each group from the overall mean.

sRep

A numeric to specify the standard deviation for run-to-run variation.

sPeak

A numeric to specify the standard deviation in peak log2-intensities.

Value

A tibble with columns of group, run, feature, and log2inty.

Examples

1
simulatePeaks(nGroup=2, nRep=3, nFeature=5, 25, c(0, 1), 0.2, 0.05)

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