Description Usage Arguments Value Examples
View source: R/getArtificialDoublets.R
Adds artificial doublets to an existing dataset
1 2 3 4 5 6 7 8 9 | 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).
1 2 | 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.