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

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 • 750 views
ADD COMMENT
1
Entering edit mode
4.2 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: 1676 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