Description Usage Arguments Value See Also Examples
View source: R/calculate_expression_similarity_counts.R
This function generates an average similarity (correlation/inverse distance) coefficient for every sliding window, for each sample in the expression matrix. That is done by comparing the distribution of genes in each window across samples.
1 2 3 4 5 6 7 8 | calculate_expression_similarity_counts(
expression.matrix,
similarity.measure = "correlation_pearson",
n.elements.per.window = NULL,
n.step = NULL,
n.step.fraction = 0.05,
...
)
|
expression.matrix |
the expression matrix, can be normalized or not |
similarity.measure |
one of the correlation or distance metrics to be used,
defaults to pearson correlation; list of all methods in
|
n.elements.per.window |
number of elements to have in a window, default 10% of the number of rows |
n.step |
step size to slide across, default 1% of n.elements.per.window |
n.step.fraction |
an alternative way to specify the step size, as a fraction of the window length; default is 5% |
... |
arguments passed on to other methods |
A list with three elements: the first element is the expression matrix, as supplied; the other two are the expression levels matrix and expression levels similarity matrix; they have the same # of columns as the expression matrix, and n.elements.per.window * n.step rows.
calculate_expression_similarity_transcript
1 2 3 4 | calculate_expression_similarity_counts(
expression.matrix = matrix(1:100, ncol = 5),
similarity.measure = "correlation_pearson",
n.elements.per.window = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.