Hi Varun,
do you want to allow STAR to make alignments with N,I,D,S, but then filter them out?
This would be easy to do, though you would have to fix the NH and HI multi-mapping attributes.
Or do you want to extract the M parts of the alignments?
This would be hard since you will have to change practically all fields in SAM.
Cheers
Alex