Dear all,
I have a bamfile which contains some reads that have supplementary alignments within them, as shown in the screenshot.
I tried to filter the bamfile with samtools using flag 2048. Luckily the supplementary alignments belonging to a specific read were gone. However, I want the whole read to be filtered out whenever it contains supplementary alignments from the bamfile and not only its supplementary alignments. is there a possible way to do this?
Best
for what it's worth, "supplementary alignments" can be quite interesting. they often indicate things like SVs