FindAllMarkers {Seurat} | R Documentation |
Gene expression markers for all identity classes
Description
Finds markers (differentially expressed genes) for each of the identity classes in a dataset
Usage
FindAllMarkers(
object,
assay = NULL,
features = NULL,
logfc.threshold = 0.1,
test.use = "wilcox",
slot = "data",
min.pct = 0.01,
min.diff.pct = -Inf,
node = NULL,
verbose = TRUE,
only.pos = FALSE,
max.cells.per.ident = Inf,
random.seed = 1,
latent.vars = NULL,
min.cells.feature = 3,
min.cells.group = 3,
mean.fxn = NULL,
fc.name = NULL,
base = 2,
return.thresh = 0.01,
densify = FALSE,
...
)
Arguments
object |
An object |
assay |
Assay to use in differential expression testing |
features |
Genes to test. Default is to use all genes |
logfc.threshold |
Limit testing to genes which show, on average, at least
X-fold difference (log-scale) between the two groups of cells. Default is 0.1
Increasing logfc.threshold speeds up the function, but can miss weaker signals.
If the |
test.use |
Denotes which test to use. Available options are:
|
slot |
Slot to pull data from; note that if |
min.pct |
only test genes that are detected in a minimum fraction of min.pct cells in either of the two populations. Meant to speed up the function by not testing genes that are very infrequently expressed. Default is 0.01 |
min.diff.pct |
only test genes that show a minimum difference in the fraction of detection between the two groups. Set to -Inf by default |
node |
A node to find markers for and all its children; requires
|
verbose |
Print a progress bar once expression testing begins |
only.pos |
Only return positive markers (FALSE by default) |
max.cells.per.ident |
Down sample each identity class to a max number. Default is no downsampling. Not activated by default (set to Inf) |
random.seed |
Random seed for downsampling |
latent.vars |
Variables to test, used only when |
min.cells.feature |
Minimum number of cells expressing the feature in at least one of the two groups, currently only used for poisson and negative binomial tests |
min.cells.group |
Minimum number of cells in one of the groups |
mean.fxn |
Function to use for fold change or average difference calculation.
The default depends on the the value of
|
fc.name |
Name of the fold change, average difference, or custom function column in the output data.frame. If NULL, the fold change column will be named according to the logarithm base (eg, "avg_log2FC"), or if using the scale.data slot "avg_diff". |
base |
The base with respect to which logarithms are computed. |
return.thresh |
Only return markers that have a p-value < return.thresh, or a power > return.thresh (if the test is ROC) |
densify |
Convert the sparse matrix to a dense form before running the DE test. This can provide speedups but might require higher memory; default is FALSE |
... |
Arguments passed to other methods and to specific DE methods |
Value
Matrix containing a ranked list of putative markers, and associated statistics (p-values, ROC score, etc.)
Examples
data("pbmc_small")
# Find markers for all clusters
all.markers <- FindAllMarkers(object = pbmc_small)
head(x = all.markers)
## Not run:
# Pass a value to node as a replacement for FindAllMarkersNode
pbmc_small <- BuildClusterTree(object = pbmc_small)
all.markers <- FindAllMarkers(object = pbmc_small, node = 4)
head(x = all.markers)
## End(Not run)