This is a perl script to filter the BAM file based on a range of hard coded criteria, including minLength, maxNM, maxNH etc.