paired reads aligned at the same genomic position
1
0
Entering edit mode
3.6 years ago
irfanwustl ▴ 80

We know sometimes paired reads can align at the same position. In such a case, is there any simple command to remove one of the paired reads from the bam file?

alignment bam • 680 views
ADD COMMENT
1
Entering edit mode
3.6 years ago
MatthewP ★ 1.4k

Paired reads align at same position probably because some insert fragments is too short that even shorter than your reads, you can use fastp to get fragment length distribution report, so you can see is there some fragments too short.
I don't think you need to remove one of them, you can see bowtie2 manual "dovetail" part, aligner can handle such case.

ADD COMMENT
0
Entering edit mode

Actually, I want to count how many reads aligned to a specific position (like depth) from a python code. That's why I was trying to remove one read.

ADD REPLY

Login before adding your answer.

Traffic: 1878 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6