AddNoise: Exposures and spectra with Poisson or negative binomial noise...

View source: R/CreateSynData.R

AddNoiseR Documentation

Exposures and spectra with Poisson or negative binomial noise in exposures.

Description

Exposures and spectra with Poisson or negative binomial noise in exposures.

Usage

AddNoise(input.exposure, signatures, n.binom.size = 100)

Arguments

input.exposure

The exposures to which to add noise; a numeric matrix or data frame in which the rows are signatures and the columns are samples. Each cell indicates the number of mutations due to a particular signature in a particular sample.

signatures

The signatures in the exposure; the column names of signatures have to include all row names in input.exposure; can be an ICAMS catalog or a numerical matrix or data frame.

n.binom.size

If non NULL, use negative binomial noise with this size parameter; see NegBinomial. If NULL, use Poisson noise.

Value

A list with the elements

expsoures

The numbers of mutations due to each signature after adding noise

spectra

The spectra based on the noisy signature exposures.


steverozen/SynSigGen documentation built on April 1, 2022, 8:54 p.m.