coverageplot: Visualization of reads coverage on gene.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/coverageplot.R

Description

Visualization of reads coverage on interested gene.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
coverageplot(dminfo,
             grlist,
             intrested_gene,
             track_height = NA,
             savepath = NA,
             txdb = TxDb.Hsapiens.UCSC.hg19.knownGene,
             orgsymbol = org.Hs.egSYMBOL,
             orgdb = org.Hs.eg.db,
             zoom_region = NA,
             label_log2FD = FALSE,
             label_log2FD_rot = 45,
             add_guideline = FALSE)

Arguments

dminfo

A dataframe of DmM sites information. It can be generated using summarydmdeepm6A from DMDeepm6A package result.

grlist

A list containing the reads count of IP/Input bam files under different condition and the id of each files. It can be generated using makegrreadsfrombam function. This is necessary if users want to watch the reads coverage for interested genes.

intrested_gene

A vector of interested gene to visualize, can be entrez gene id or gene symbol

track_height

A numeric number to set the max ylim of tracks showing reads count coverage on gene

savepath

The file path where to save the result

txdb

The txdb famate genome annotation. You need to input it similar to "TxDb.Hsapiens.UCSC.hg19.knownGene" if use other genomes instead of hg19.

orgsymbol

The gene name annotation. You need to input it similar to "org.Hs.egSYMBOL" if DefaultGenome is use other genomes instead of human genome.

orgdb

The annotation of genome. You need to input it similar to "org.Hs.eg.db" if DefaultGenome is use other genomes instead of human genome.

zoom_region

The region to be zoomed near the differential methylation sites. It should be a integer, e.g., 100 means 100 bp up- and down-stream of the sites will be zoomed.

label_log2FD

A logical value determines whether the log2 fold change should be labeled with differential methylation sites, FALSE in default.

label_log2FD_rot

The angle to rotate the text of log2 fold change.

add_guideline

A logical value determines whether to add guideline for each differential methylation site to better observe the fragments coverage near the sites, FALSE in default.

Details

This function is used to visualize reads coverage and DmM sites on interested gene.

Value

By default, coverageplot will output results of DmM sites and reads coverage on interested gene.

Author(s)

Songyao Zhang

References

Funm6AViewer: Visualization of single base differential m6A methylation sites and functional DmM genes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## reads coverage plot for interested genes

dminfo <- system.file("extdata", "DMinfo_toy.xls", package="Funm6AViewer")
dminfo <- read.table(dminfo, header = TRUE, stringsAsFactors = FALSE)

bamreadsgr <- system.file("extdata", "bamgrlist_toy.RData", package="Funm6AViewer")
load(bamreadsgr)

siggene <- c("CCNT1", "MYC", "BCL2")

re <- coverageplot(dminfo = dminfo, grlist = grlist, intrested_gene = siggene)

NWPU-903PR/Funm6AViewer documentation built on April 25, 2021, 4:26 p.m.