getCellPairs {scDblFinder} | R Documentation

## getCellPairs

### Description

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

### Usage

    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

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

[Package scDblFinder version 1.4.0 Index]