Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Value

Returns a data.frame

Examples

fc <- FoldChange(object = atac_small, ident.1 = 0)
head(fc)

Signac

Analysis of Single-Cell Chromatin Data

v1.2.1
MIT + file LICENSE
Authors
Tim Stuart [aut, cre] (<https://orcid.org/0000-0002-3044-0897>), Avi Srivastava [aut] (<https://orcid.org/0000-0001-9798-2079>), Paul Hoffman [ctb] (<https://orcid.org/0000-0002-7693-8957>), Rahul Satija [ctb] (<https://orcid.org/0000-0001-9448-8833>)
Initial release
2021-05-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.