doubletfinderwrapper | R Documentation |
Please see https://github.com/chris-mcginnis-ucsf/DoubletFinder
doubletfinderwrapper(seuratobject, clusters, autofilterres, num.cores)
seuratobject |
A Seurat object, pre-proc with |
clusters |
string, should match a column name of seuratobject metadata with clusters or other cell group annotations. default = 'seurat_clusters' |
autofilterres |
optional, output of |
num.cores |
integer, num.cores to use for |
Models homotypic doublets using the following table: https://kb.10xgenomics.com/hc/en-us/articles/360001378811-What-is-the-maximum-number-of-cells-that-can-be-profiled-
if autofilterres
is provided, it will return autofilterres
with updated autofilterres$cellstatus
, if not it will return a data.frame with doublet information and score.
# With autofiler res, will add in the result to af$cellstatus af <- doubletfinderwrapper(sobj, autofilterres = af, num.cores = 5) # remove doublets goodcells <- af$cellstatus[af$cellstatus$filteredout==F,"barcodes"] sobj <- sobj[,goodcells] # w/o autofilter res: ddf <- doubletfinderwrapper(sobj, num.cores = 5) # remove doublets singlets <- dfdf[dfdf$DoubletFinderClassification=='Singlet','cells'] sobj <- sobj[,singlets]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.