correct SAM file sampling function for raw reads, add MACS2 spot and bwa mapping tool support