FoldChange: Compute fold change between two groups of cells
Description
Computes the fold change or log2 fold change (if log=TRUE
) in average
counts between two groups of cells.
Usage
FoldChange(
object,
ident.1,
ident.2 = NULL,
group.by = NULL,
cutoff = 0.5,
assay = NULL,
verbose = TRUE
)
Arguments
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.
Value
Returns a data.frame
Examples
Run this code# NOT RUN {
fc <- FoldChange(object = atac_small, ident.1 = 0)
head(fc)
# }
Run the code above in your browser using DataLab