add SAM file sampling function for raw reads