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.