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

PeakPlot

Plot peaks in a genomic region


Description

Display the genomic ranges in a ChromatinAssay object that fall in a given genomic region

Usage

PeakPlot(
  object,
  region,
  assay = NULL,
  peaks = NULL,
  group.by = NULL,
  color = "dimgrey"
)

Arguments

object

A Seurat object

region

A genomic region to plot

assay

Name of assay to use. If NULL, use the default assay.

peaks

A GRanges object containing peak coordinates. If NULL, use coordinates stored in the Seurat object.

group.by

Name of variable in feature metadata (if using ranges in the Seurat object) or genomic ranges metadata (if using supplied ranges) to color ranges by. If NULL, do not color by any metadata variable.

color

Color to use. If group.by is not NULL, this can be a custom color scale (see examples).

Value

Returns a ggplot object

Examples

# plot peaks in assay
PeakPlot(atac_small, region = "chr1-710000-715000")

# manually set color
PeakPlot(atac_small, region = "chr1-710000-715000", color = "red")

# color by a variable in the feature metadata
PeakPlot(atac_small, region = "chr1-710000-715000", group.by = "count")

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.