upsetplot in ChIPseeker

July 28, 2015
By

(This article was first published on YGC » R, and kindly contributed to R-bloggers)

ChIPseeker is an R package for ChIP peak annotation, comparison and visualization.

We have implemented several visualization methods, including vennpie that was designed for viewing annotation overlap as shown below:

Not all overlap information can be demonstrated in vennpie. Upset is an effective way to visualize sets and intersections. We import upset function from UpSetR package and implement upsetplot function, that can visualize ChIP annotation overlap directly with output of annotatePeak.

?View Code RSPLUS
1
2
3
4
library(ChIPseeker)
peak_file <- getSampleFiles()[[4]]
x <- annotatePeak(peak_file)
upsetplot(x)

We add a new parameter, vennpie=FALSE, in upsetplot. If vennpie=TRUE, a vennpie will be added as show below:

Although upset contains more information, vennpie is more intuitive and the final figure is more compact. More information is available at the online vignette.

Reference

1. Alexander Lex, and Nils Gehlenborg. “Points of View: Sets and Intersections.” Nature Methods 11, no. 8 (August 2014): 779–779. doi:10.1038/nmeth.3033.
2. Guangchuang Yu, Li-Gen Wang, and Qing-Yu He. “ChIPseeker: An R/Bioconductor Package for ChIP Peak Annotation, Comparison and Visualization.” Bioinformatics 31, no. 14 (July 15, 2015): 2382–83. doi:10.1093/bioinformatics/btv145.
3. Conway Jake, and Gehlenborg Nils, “UpSetR”, https://github.com/cran/UpSetR.

Related Posts

To leave a comment for the author, please follow the link and comment on their blog: YGC » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)