OTUs_simulated: OTUs_simulated

Description Usage Arguments Value Examples

Description

We used a phylogenetic tree of OTUs from a real throat microbiome data set, which consists of 856 OTUs after discarding singleton OTUs. Then based on a complicated statistical meodel, we generated the OTU counts for each individual to simulate the features of real microbiome data.

Usage

1
OTUs_simulated(data, nSam, nOTU, n_repeat, mu, size)

Arguments

data

Real data.

nSam

Sample size.

nOTU

The number of OTUs.

n_repeat

The number of repeat.

mu

The mean of the negative binomial distribution.

size

The size of the negative binomial distribution.

Value

OTU_simulated: OTU counts table simulated based on real data.

Examples

1
2
3
4
5
6
# Import requisite R packages
library(MiSPU)

#Simulated OTUs
data("throat.otu.tab")
otu.tab <- round(OTUs_simulated(data=throat.otu.tab, nSam=100, nOTU=100, n_repeat=10, mu=1000, size=25)$OTU_simulated)

XiaoyunHuang33/MiATDS documentation built on Dec. 18, 2021, 7:23 p.m.