view ezBAMQC/test-data/output/data/smp2.mapq_profile.r @ 14:744987262771

Uploaded
author cshl-bsr
date Wed, 30 Mar 2016 12:15:03 -0400
parents dfa3745e5fd8
children
line wrap: on
line source

png("/sonas-hs/bsr/hpc/data/yjin/test_BAMqc/exp/test1/figs/smp2.mapq_profile.png",width=500,height=500,units="px")
mapq_val=c(0,1,3,255)
mapq_count=c(525,2546,8143,69389)
xname=c("<3","<10","<20","<30","30-255")
freq = rep(0,5)
freq[1] = sum(mapq_count[which(mapq_val<3)])/80603*100
freq[2] = sum(mapq_count[which(mapq_val<10)])/80603*100
freq[3] = sum(mapq_count[which(mapq_val<20)])/80603*100
freq[4] = sum(mapq_count[which(mapq_val<30)])/80603*100
freq[5] = 100
barplot(freq,beside=T,xlab="Mapping Quality",border="NA",space=1.5,main="Mapping Quality",ylim=c(0,100),ylab="Cumulative proportion (%)",col="blue",names.arg=xname)
dev.state=dev.off()