def draw_promoter_barplot(genome_p,ChIP_p,pval,prom):
    
    names=['<=%d bp' %(prom/3),'<=%d bp' %(2*prom/3),prom %'<=%d bp']
    gp=_get_percentage(genome_p['whole']['promoter'])
    cp=_get_percentage(ChIP_p['whole']['promoter'])
    rscript=_draw_barplot_w_val(gp,cp,pval['whole']['promoter'],names,'Promoter',ylab='Percentage %')
    rscript+=R.legend(x='topleft',legend=['Genome','ChIP (p-value)'],pch=15,col=['lightblue','mistyrose'],bty='n')
    return rscript
dataset/ETHPy150Open taoliu/taolib/Assoc/inout.py/draw_promoter_barplot/swapped operands of `%`