View source: R/getArtificialDoublets.R
addDoublets | R Documentation |
Adds artificial doublets to an existing dataset
addDoublets(
x,
clusters,
dbr = (0.01 * ncol(x)/1000),
only.heterotypic = TRUE,
adjustSize = FALSE,
prefix = "doublet.",
...
)
x |
A count matrix of singlets, or a
|
clusters |
A vector of cluster labels for each column of 'x' |
dbr |
The doublet rate |
only.heterotypic |
Whether to add only heterotypic doublets. |
adjustSize |
Whether to adjust the library sizes of the doublets. |
prefix |
Prefix for the colnames generated. |
... |
Any further arguments to |
A 'SingleCellExperiment' with the colData columns 'cluster' and 'type' (indicating whether the cell is a singlet or doublet).
sce <- mockDoubletSCE(dbl.rate=0)
sce <- addDoublets(sce, clusters=sce$cluster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.