generateLengthsPhylo: Simulate a length matrix with a phylo model

View source: R/simulatePhyloPoissonLogNormal.R

generateLengthsPhyloR Documentation

Simulate a length matrix with a phylo model

Description

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

Usage

generateLengthsPhylo(tree, id.species, lengths.relmeans, lengths.dispersions)

Arguments

tree

The phylogeneti tree.

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.

lengths.lambda

A vector of heritability parameters to use in the simulation of data from the lambda model.

Value

A matrix of the same size as 'length_matrix', with normalization factors to be applied for each sample and each gene.


csoneson/compcodeR documentation built on Nov. 3, 2024, 6:05 a.m.