Learn R Programming

SCENIC (version 1.1.2-01)

runCorrelation: runCorrelation

Description

Calculates the spearman correlation on the input expression matrix & saves the results in SCENIC format

Usage

runCorrelation(exprMat_filtered, scenicOptions)

Arguments

exprMat_filtered

Expression matrix (filtered)

scenicOptions

Fields used: Intermediate file name "corrMat"

Value

Writes the output in the file name stored in: getIntName(scenicOptions, "corrMat")

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab