Added bam filter based on pysam.