aldex.clr.function | R Documentation |
aldex.clr
Object
Generate Monte Carlo samples of the Dirichlet distribution for each sample.
Convert each instance using a centered log-ratio transform.
This is the input for all further analyses.Compute an aldex.clr
Object
Generate Monte Carlo samples of the Dirichlet distribution for each sample.
Convert each instance using a centered log-ratio transform.
This is the input for all further analyses.
aldex.clr.function(
reads,
conds,
mc.samples = 128,
denom = "all",
verbose = FALSE,
useMC = FALSE,
summarizedExperiment = NULL,
gamma = NULL
)
reads |
A |
conds |
A |
mc.samples |
The number of Monte Carlo instances to use to estimate the underlying distributions; since we are estimating central tendencies, 128 is usually sufficient, but larger numbers may be needed with small sample sizes. |
denom |
An |
verbose |
Print diagnostic information while running. Useful only for debugging if fails on large datasets. |
useMC |
Use multicore by default (FALSE). Multi core processing will be attempted with the BiocParallel package. Serial processing will be used if this is not possible. In practice serial and multicore are nearly the same speed because of overhead in setting up the parallel processes. |
summarizedExperiment |
must be set to TRUE if input data are in this format. |
gamma |
Use scale simulation if not NULL. If a matrix is supplied, scale simulation will be used assuming that matrix denotes the scale samples. If a numeric is supplied, scale simulation will be applied by relaxing the geometric mean assumption with the numeric representing the standard deviation of the scale distribution. |
The object produced by the clr
function contains the log-ratio transformed
values for each Monte-Carlo Dirichlet instance, which can be accessed through
getMonteCarloInstances(x)
, where x
is the clr
function output.
Each list element is named by the sample ID. getFeatures(x)
returns the
features, getSampleIDs(x)
returns sample IDs, and getFeatureNames(x)
returns the feature names.
# The 'reads' data.frame or # RangedSummarizedExperiment object should # have row and column names that are unique, # and looks like the following: # # T1a T1b T2 T3 N1 N2 Nx # Gene_00001 0 0 2 0 0 1 0 # Gene_00002 20 8 12 5 19 26 14 # Gene_00003 3 0 2 0 0 0 1 # ... many more rows ...
data(selex) #subset for efficiency selex <- selex[1201:1600,] conds <- c(rep("NS", 7), rep("S", 7)) x <- aldex.clr(selex, conds, mc.samples=4, gamma=NULL, verbose=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.