Signac (version 0.2.4)

FragmentHistogram: Plot fragment length histogram

Description

Plot fragment length histogram

Usage

FragmentHistogram(
  object,
  assay = NULL,
  region = "chr1-1-2000000",
  group.by = NULL,
  cells = NULL,
  log.scale = FALSE,
  ...
)

Arguments

object

A Seurat object

assay

Which assay to use. Default is the active assay.

region

Genomic range to use. Default is fist two megabases of chromosome 1. Can be a GRanges object, a string, or a vector of strings.

group.by

Name of one or more metadata columns to group (color) the cells by. Default is the current cell identities

cells

Which cells to plot. Default all cells

log.scale

Display Y-axis on log scale. Default is FALSE.

...

Additional arguments passed to GetReadsInRegion

Value

Returns a ggplot object

Examples

Run this code
# NOT RUN {
fpath <- system.file("extdata", "fragments.tsv.gz", package="Signac")
atac_small <- SetFragments(atac_small, file = fpath)
FragmentHistogram(object = atac_small, region = "chr1-10245-780007")
# }

Run the code above in your browser using DataCamp Workspace