simulateSites: Simulate peak log-intensities for PTM sites

Description Usage Arguments Value Examples

View source: R/simulate.R

Description

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

Usage

1
simulateSites(nGroup, nRep, nSite, 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.

nSite

An integer to specify the number of PTM sites per protein.

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 site, group, run, feature, log2inty.

Examples

1
simulateSites(nGroup=2, nRep=2, nSite=2, nFeature=5, 25, c(0, 1), 0.2, 0.05)

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