View source: R/cor_gene_expr.R
cor.gene_expr | R Documentation |
Computes the correlation between the gene expressions of the sample
and the reference data using the cor
function ;
default correlation index is spearman.
cor.gene_expr(samp, refdata, cor.method = "spearman")
samp |
the sample matrix, gene as rows, individuals as columns |
refdata |
the reference time series matrix, same format as |
cor.method |
|
a matrix of correlation scores with samples as columns, refdata as rows
X <- matrix(stats::rnorm(5000), ncol = 5)
Y <- X + stats::rnorm(5000, sd = .1)
rownames(X) <- as.character(1:1000) -> rownames(Y)
cc <- cor.gene_expr(X, Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.