cor_batch: This function computes the correlation between cells of the...

Description Usage Arguments Value Examples

View source: R/cor_batch.R

Description

This function computes the correlation between cells of the same cellular type that are from different batches (e.g. protocols).

Usage

1
cor_batch(raw, nnet, cell_types, batch, n = NULL, genes = NULL)

Arguments

raw

A combined matrix of counts with gene expressions from all batches. Rows are genes and columns are cells.

nnet

A named factor with the annotation per cell.

cell_types

A character with names (keywords for nnet levels) for cell types you want to compute the correlation (e.g. "B|HEK|Monocytes").

batch

A named factor with the batch label per cell.

n

Number of cells sampled for the computation of the expression average for cells that are from the same type. Default=minimum number of cells across all batches.

genes

A set of genes you want to use to compute the correlation.

Value

A matrix with correlations between batches.

Examples

1
# TODO

elimereu/matchSCore2 documentation built on April 9, 2020, 5:41 p.m.