Compute fold change between two groups of cells
Computes the fold change or log2 fold change (if log=TRUE
) in average
counts between two groups of cells.
FoldChange( object, ident.1, ident.2 = NULL, group.by = NULL, cutoff = 0.5, assay = NULL, verbose = TRUE )
object |
A Seurat object |
ident.1 |
Identities of first group of cells to compare. |
ident.2 |
Identities of second group of cells to compare. If NULL, compare cells in the first group to all other cells. |
group.by |
Grouping variable to use. If NULL, use the current cell identities. |
cutoff |
Mean count cutoff for classifying as "open". Only used for ordering results. Results will be ordered first by whether the average counts in ident.1 is greater than the cutoff value, then by fold change with respect to ident.2. This prevents very lowly detected peaks from being pushed to the top of the results due to high fold change values. |
assay |
Name of assay to use. If NULL, use the default assay. |
verbose |
Display messages |
Returns a data.frame
fc <- FoldChange(object = atac_small, ident.1 = 0) head(fc)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.