simulatePeaks {MSstatsPTM}R Documentation

Simulate peak log2-intensities

Description

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

Usage

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

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


[Package MSstatsPTM version 1.0.0 Index]