getArtificialDoublets {scDblFinder}R Documentation

getArtificialDoublets

Description

Create expression profiles of random artificial doublets.

Usage

getArtificialDoublets(x, n = 3000, prop.fullyRandom = 0,
  clusters = NULL, n.meta.cells = 1, meta.triplets = TRUE)

Arguments

x

A count matrix, with features as rows and cells as columns.

n

The approximate number of doublet to generate (default 3000).

prop.fullyRandom

The proportion of the created doublets that are fully random (default 0); the rest will be doublets created across clusters. Ignored if 'clusters' is NULL.

clusters

The optional clusters labels to use to build cross-cluster doublets.

n.meta.cells

The number of meta-cell per cluster to create. If given, additional doublets will be created from cluster meta-cells.

meta.triplets

Logical; whether to create triplets from meta cells. Ignored if 'clusters' is missing.

Value

A count matrix for artificial doublets.

Examples

m <- t(sapply( seq(from=0, to=5, length.out=50), 
               FUN=function(x) rpois(30,x) ) )
doublets <- getArtificialDoublets(m, 30)


[Package scDblFinder version 1.1.8 Index]