write.coexpressionMatrix: Compute and save a coexpression matrix

View source: R/lib.R

write.coexpressionMatrixR Documentation

Compute and save a coexpression matrix

Description

This function uses the passed coexpression function (default: Pearson's correlation cor) to compute a coexpression matrix between each pair of genes expression arrays. The matrix is saved in the passed directory.

Usage

write.coexpressionMatrix(geneExpression, outfolder, overwrite = FALSE,
  fun = cor, ...)

Arguments

geneExpression

a Seurat dgCMatrix (from the @data field in a Seurat object), containing the expression data.

outfolder

the data folder where to save the results

overwrite

boolean. Should an existing coexpression file be overwritten on disk?

fun

the coexpression function, it will be fed two genes' expression arrays. Defaults to cor

...

all extra parameters are passed to coexpression function

Value

the coexpression matrix, in long form


ne1s0n/MTGOsc documentation built on April 20, 2022, 9:35 p.m.