SimDirFactorCustom: Generate synthetic OTU table from DirFactor model using...

Description Usage Arguments Value

Description

Generate synthetic OTU table from DirFactor model using latent factors provided by users.

Usage

1
SimDirFactorCustom(vcounts, sigma, X, Y, er)

Arguments

vcounts

Required. A vector of total counts per biological sample. Example: vcounts=c(1e5,1e6).

sigma

A length p vector. p is the number of species. Global abundance parameter for species.

X

A m*p matrix. m is the number of factors. Latent factors for species.

Y

A m*n matrix. n is the number of biological samples. Latent factors for biological samples.

er

A positive scalar. Variance of the pure noise.

Value

A list with length(vcounts) elements. The ith elment is an OTU table with total counts per biological sample vcounts[i].


boyuren158/DirFactor documentation built on May 13, 2019, 1:38 a.m.