Description Usage Arguments Value Examples
View source: R/plot.gene.peaks.R
A plot of the peaks found for a particular gene
1 2 |
GENE |
A 'character' gene id corresponding to the gene_id's found in the GTF files and the 'name' column in the peak files |
PEAKS |
A data frame containing the following columns, and potentially extras, usually found in a BED12 file, base 0 system
|
GTF |
The GTF file used to generate the peaks. This is used to determine the genomic coordinates of the gene. |
OUTPUTDIR |
Output directory |
OUTPUT.TAG |
A character string indicating a tag to track the generated files |
PLOT |
Binary T or F indicating whether to save plot or just return plot |
A ggplot object of the plot
1 2 3 4 5 6 7 8 9 10 11 12 | data.path = system.file("extdata", package = "ConsensusPeaks")
gtf = paste0(data.path, "/test.gtf")
peaks.file = paste0(data.path, "/peaks.bed")
peaks = read.delim(peaks.file, stringsAsFactors = F)
p = plot.gene.peaks(
GENE = "ENSGXX",
PEAKS = peaks,
GTF = gtf,
OUTPUTDIR = ".",
OUTPUT.TAG = "",
PLOT = F
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.