Sample abundance valuesSource:
Sample feature abundance values from the given distributions. This function
is used internally by
simphony(), and should not usually need to be
getSampledAbund( abundDt, logOdds = FALSE, family = c("gaussian", "negbinom", "bernoulli", "poisson"), inplace = FALSE )
data.tableof expected abundance. If
familyis 'gaussian', required columns are
familyis 'negbinom', required columns are
familyis 'bernoulli' or 'poisson', required columns are
Logical for whether
mucorresponds to log-odds. Only used if
Character string for the family of distributions from which to sample the abundance values.
simphonywill give a warning if it tries to sample from a distribution outside the region in which the distribution is defined: \(\mu < 0\) for negative binomial and Poisson, and \(\mu < 0\) or \(\mu > 1\) for Bernoulli.
Logical for whether to modify
abundDtin-place, adding a column
abundcontaining the abundance values.
Matrix of abundance values, where rows correspond to features and columns correspond to samples.