Learn R Programming

chipenrich (version 1.10.0)

plot_dist_to_tss: Plot histogram of distance from peak to nearest TSS

Description

Create a histogram of the distance from each peak to the nearest transcription start site (TSS) of any gene.

Usage

plot_dist_to_tss(peaks, genome = "hg19")

Arguments

peaks
Either a data frame, a BED file, a .broadPeak file, or a .narrowPeak file. The data frame should have at least 3 columns: chrom, start, and end. Chrom should follow UCSC convention, e.g. "chrX". The file should be tab-delimited.
genome
A string indicating the genome upon which the peaks file is based. Supported genomes are listed by the supported_genomes function.

Value

A trellis plot object.

See Also

chipenrich

Examples

Run this code
library(chipenrich.data)
library(chipenrich)

# Create histogram of distance from peaks to nearest TSS.
data(peaks_E2F4)
plot_dist_to_tss(peaks_E2F4)

Run the code above in your browser using DataLab