I know I'm late to the party, but this might still be useful for future readers :-)
I don't believe this explanation is correct. As far as I understand, a supplementary alignment is not necessarily secondary, and filtering them out is not what you want. There are two types of alignments:
- Linear alignments: all parts of a read align (possily with gaps) in the correct order, on the same chromosome, without changes of direction. Such an alignment can be represented by a single line, and is NOT flagged supplementary.
- Chimeric alignments: Any alignment that is not linear cannot be represented by a SINGLE line in the SAM/BAM file, so the alignment is split over multiple lines. ONE of these lines is considered representative, ALL OTHERS are considered SUPPLEMENTARY to that one line, indicating that they do not stand for themselves, but are part of a chimeric alignment.
This has nothing to do with primary or secondary. The primary alignment is just the "best" alignment in some sense (best score, MAPQ etc.), whereas secondary alignments are possible alternatives. You can totally have a chimeric alignment as your primary alignment, in the case of complex variants.
If you filter supplementary alignments, you will remove ALL BUT ONE of the lines for a chimeric alignment. Unless you are absolutely certain that your data cannot possibly contain complex variants, and that all chimeric mappings are mismappings, I would advice against removing supplementary alignments.