Skip to content

Instantly share code, notes, and snippets.

View sterding's full-sized avatar
🏠
Working from home

Xianjun Dong sterding

🏠
Working from home
View GitHub Profile
@sterding
sterding / venn_pie_chart.r
Last active July 28, 2019 20:44
R script to generate multi-layer pie chart (or called it venn pieagram) to visualize the NGS reads distribution in different annotation regions
## data input (number of reads mapped to each category)
total=100
rRNA=5 # mapped to nuclear rRNA regions
mtRNA=7 # mapped to mitochondria genome
# for the rest of above, then we divide into different category, like http://www.biomedcentral.com/1741-7007/8/149 did.
intergenic=48
introns=12
exons=30
upstream=3
downstream=6