SpiecEasi (version 1.0.2)

synth_comm_from_counts: synth_comm_from_counts

Description

from count data (ex HMP) fit parameters to OTU margins and simulate a new community with those properties

Usage

synth_comm_from_counts(comm, mar = 2, distr, Sigma = cov(comm), params,
  n = nrow(comm), retParams = FALSE, ...)

Arguments

comm

community: matrix of counts

mar

the sample margin of the community data matrix (1: rows, 2: cols)

distr

distribution to fit (see fitdistr)

Sigma

covariance structure (defaults to empirical cov of comm)

params

optionally supply already fitted parameters

n

number of samples (defaults to comm samples)

retParams

if TRUE, return the fitted parameters

...

additional parameters to parameter fitting

Value

community