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

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

data("linnarsson_saver") gene.cor <- cor.genes(linnarsson_saver)
#> Calculating correlation matrix...