View source: R/CrossExpression.R
cross_expression_correlation | R Documentation |
Computes gene-gene correlations between cross-expressing cell-neighbor pairs. Cell and neighbor masks are used to consider mutually exclusive expression per gene pair.
cross_expression_correlation(
data,
locations,
neighbor = 1,
output_matrix = FALSE
)
data |
A cells by genes expression matrix. |
locations |
A cells by coordinates (x-y or higher dimensions) matrix. |
neighbor |
The n-th nearest neighbor for computing correlations. |
output_matrix |
If TRUE, outputs the cross-expression correlation matrix. |
Returns a gene list with cross-expression correlation for each gene pair.
data("locations")
data("expression")
locations = as.matrix(locations)
expression = as.matrix(expression)
expression = expression[,1:5]
results = cross_expression_correlation(data = expression, locations = locations)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.