Description Usage Arguments Value See Also Examples
View source: R/calculate_noise_threshold.R
This function is used to calculate the noise threshold for a given expression matrix. It uses as input an expression profile, or just an expression matrix for a simple calculation based on density. A variety of methods are available to obtain a noise threshold using an input similarity threshold.
1 2 3 4 5 6 7 8 | calculate_noise_threshold(
expression,
similarity.threshold = 0.25,
method.chosen = "Boxplot-IQR",
binsize = 0.1,
minimum.observations.per.bin = NULL,
...
)
|
expression |
either an expression summary (as calculated by
|
similarity.threshold |
similarity (correlation or inverse distance) threshold to be used to find corresponding noise threshold; the default, 0.25 is usually suitable for the Pearson correlation (the default similarity measure) |
method.chosen |
method to use to obtain a vector of noise thresholds,
must be one of |
binsize |
size of each bin in the boxplot methods; defaults to 0.1 (on a log-scale) |
minimum.observations.per.bin |
minumum number of observations allowed in each bin of the boxplot; if a bin has fewer observations, it is merged with the one to its left; default is calculated as: ceiling(number of observations / number of bins / 10) |
... |
arguments passed on to other methods |
The output is a vector of noise thresholds, the same length as the number of columns in the expression matrix, or a single value in the case of density based methods.
calculate_noise_threshold_method_statistics
1 2 3 4 5 | expression.summary <- calculate_expression_similarity_counts(
expression.matrix = matrix(1:100, ncol=5),
method = "correlation_pearson",
n.elements.per.window = 3)
calculate_noise_threshold(expression.summary)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.