synth_comm_from_counts: synth_comm_from_counts

Description Usage Arguments Value

View source: R/fitdistr.R

Description

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

Usage

1
2
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


zdk123/SpiecEasi documentation built on Oct. 1, 2018, 2:12 p.m.