update the bam2wig in global