I am wanting to try to make a heatmap of some basic ATACseq annotation results using R. My dataset is a subset of a larger dataset, and contains some basic peak annotation data. For peaks between 100-300bp, we have the following results:
exon 2531
Intergenic 10554
intron 10794
promoter-TSS 1691
TTS 807
And we have more than one table like this, for larger peak files (say, 301-400bp; 401-500bp; etc.). As you can see, we have five categories presented in the table above. My idea is to calculate the percentage within each of the five categories, and then to plot the category on the y-axis, the peak sizes on the x-axis, and the percentage within each category as the color.
Does this idea make sense? To me it seems fairly straightforward, but I'm not certain. Any links or guides to do something similar would also be very appreciated.
take a look at this package https://bioconductor.org/packages/release/bioc/html/ChIPseeker.html