Learn R Programming

SAVER (version 1.1.2)

cor.genes: Calculates gene-to-gene and cell-to-cell SAVER correlation

Description

Adjusts for SAVER estimation uncertainty by calculating and adjusting gene-to-gene and cell-to-cell correlation matrices

Usage

cor.genes(x, cor.mat = NULL)

cor.cells(x, cor.mat = NULL)

Arguments

x

A saver object.

cor.mat

If a correlation matrix of the SAVER estimates was already obtained, then it can be provided as an input to avoid recomputation.

Value

An adjusted correlation matrix.

Details

The SAVER estimates that are produced have varying levels of uncertainty depending on the gene and the cell. These functions adjust the gene-to-gene and cell-to-cell correlations of the SAVER estimates to reflect the estimation uncertainty.

Examples

Run this code
# NOT RUN {
data("linnarsson_saver")

gene.cor <- cor.genes(linnarsson_saver)

# }

Run the code above in your browser using DataLab