generateLengths: Simulate a length matrix

View source: R/generateSyntheticData.R

generateLengthsR Documentation

Simulate a length matrix

Description

Simulate a length matrix of size n.vars times n.sample, with the length of each gene in each sample.

Usage

generateLengths(id.species, lengths.relmeans, lengths.dispersions)

Arguments

id.species

An n.sample vector, indicating the species of each sample.

lengths.relmeans

A vector of mean values to use in the simulation of lengths from the Negative Binomial distribution.

lengths.dispersions

A vector or matrix of dispersions to use in the simulation of data from the Negative Binomial distribution.

Value

A matrix of lengths, with as many columns as the number of species (length of id.species) and as many rows as the number of parameters in lengths.relmeans.


csoneson/compcodeR documentation built on Oct. 25, 2023, 1:28 a.m.