This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to generate a pie chart of genomic annotations of ChIP peaks

I am interested in creating a Pie charts of ChIP-Seq reads corresponding to annotated regions of the hg19 genome. I want to count the total number of peaks at given genomic locations were counted and standardize them to each region's occupancy of the human genome (for example, promoters only account for ~0.8% of the human genome).

NOTE: I'm aware that pie charts are often looked down by this the bioinformatics community, so if anyone has another visualization option please feel free to let me know.

How would I go about generating this type of pie chart?

chip-seq

Most of the time, a bar chart will do the job for you. Pie charts are considered a bad way of conveying information, see this article for reasons why. The first example is compelling enough to drop pie charts entirely.

3 answers

You can try HOMER to annotate the peaks then plot it the way you want, or if you work in R/bioconductor, try ChIPPeakAnno. It can give you both pie and bar charts.

annotatR can annotate genomic regions based on either built-in or custom annotations. It offers various plotting functions. For a pie chart one would need to use the output table and then make a pie manually, e.g. with ggplot.

You can use my script PieChart_annotatePeaksHomer.R. It reads the default output from HOMER annotatePeaks.pl, counts the number of peaks per genomic feature and plots a pie chart.

Pie Chart

the link to your script was not valid anymore

Log in to answer this question.