forked from GreenleafLab/ArchR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilterDoublets.Rd
30 lines (27 loc) · 1.42 KB
/
filterDoublets.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FilterCells.R
\name{filterDoublets}
\alias{filterDoublets}
\title{Filter Doublets From an ArchRProject}
\usage{
filterDoublets(
ArchRProj = NULL,
cutEnrich = 1,
cutScore = -Inf,
filterRatio = 1
)
}
\arguments{
\item{ArchRProj}{An \code{ArchRProject} object.}
\item{cutEnrich}{The minimum numeric cutoff for \code{DoubletEnrichment}. This number is equivalent to the number of simulated
doublets identified as a nearest neighbor to the cell divided by the expected number given a random uniform distribution.}
\item{cutScore}{The minimum numeric cutoff for \code{DoubletScore} which represents the \verb{-log10(binomial adjusted p-value)} for the \code{DoubletEnrichment}.}
\item{filterRatio}{The maximum ratio of predicted doublets to filter based on the number of pass-filter cells.
For example, if there are 5000 cells, the maximum would be \code{filterRatio * 5000^2 / (100000)} (which simplifies to \code{filterRatio * 5000 * 0.05}).
This \code{filterRatio} allows you to apply a consistent filter across multiple different samples that may have different
percentages of doublets because they were run with different cell loading concentrations.
The higher the \code{filterRatio}, the greater the number of cells potentially removed as doublets.}
}
\description{
This function will filter doublets from an ArchRProject after addDoubletScores() has been run.
}