adding patterns to SAM/BAM input