This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to remove reads supporting the same fragment that other reads support

Hi, I am trying to run a variant caller which is raising an Exception error because there are more than two reads in my bam supporting the same fragment. Is there any possibility to find those reads in my bam and remove those fragments which are aligning in the same exact positions?

I have already removed duplicates and the problem persist. I think this is more related to suplementary alignments due to some artifact in my library.

Thanks!

assembly genome

2 answers

remove duplcates: http://www.htslib.org/algorithms/duplicate.html ; http://www.htslib.org/doc/samtools.html samtools markdup

I have already removed duplicates, but I think my library has some artifact and I think this is more related to suplementary alignments

Hello, you need to mark or remove duplicates, see: https://gatk.broadinstitute.org/hc/en-us/articles/360037225972-MarkDuplicates-Picard-

Log in to answer this question.