View source: R/runCorrelation.R
runCorrelation | R Documentation |
Calculates the spearman correlation on the input expression matrix & saves the results in SCENIC format
runCorrelation(exprMat_filtered, scenicOptions)
exprMat_filtered |
Expression matrix (filtered) |
scenicOptions |
Fields used: Intermediate file name "corrMat" |
Writes the output in the file name stored in: getIntName(scenicOptions, "corrMat")
library(SCENIC)
scenicOptions <- readRDS("int/scenicOptions.Rds")
loomPath <- system.file(package="SCENIC", "examples/mouseBrain_toy.loom")
exprMat <- SCopeLoomR::get_dgem(SCopeLoomR::open_loom(loomPath))
genesKept <- loadInt(scenicOptions, "genesKept")
exprMatrix_filtered <- exprMat[genesKept,]
exprMat_filtered <- log2(exprMatrix_filtered+1)
runCorrelation(exprMat_filtered, scenicOptions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.