getCellPairs: getCellPairs

Description Usage Arguments Value Examples

View source: R/getArtificialDoublets.R

Description

Given a vector of cluster labels, returns pairs of cross-cluster cells

Usage

1
getCellPairs(x, n = 1000, ...)

Arguments

x

A vector of cluster labels for each cell, or a list containing metacells and graph

n

The number of cell pairs to obtain

...

Further arguments, for instance the 'k' vector of precluster labels if 'x' is a metacell graph.

Value

A data.frame with the columns

Examples

1
2
3
# create random labels
x <- sample(head(LETTERS), 100, replace=TRUE)
getCellPairs(x, n=6)

scDblFinder documentation built on Nov. 8, 2020, 5:48 p.m.