Fixing BAM file generated without .alt index file during BWA
1
0
Entering edit mode
4.2 years ago
Hadi M ▴ 50

Hi everyone,

I generated a BAM file after aligning my NGS reads against the reference genome using BWA. My reference genome contains ALT contigs but I did not supply the .alt index file during alignment. I know I can just do the alignment again with the .alt index file but before I proceed to that, I am curious if there are any tools that can correct the alignment information in the BAM file as if I supplied the .alt index file during alignment.

Many thanks.

BWA BAM • 920 views
ADD COMMENT
0
Entering edit mode
4.2 years ago
ATpoint 82k

I am not aware of any solution for this. I would realign. Be sure to use the ALT-aware version of bwa via bwa-kit when including ALT into the reference.

ADD COMMENT
0
Entering edit mode

Yeah seems like there's no way to fix the BAM file as of now so I have to realign my reads. Cheers.

ADD REPLY
0
Entering edit mode

It is also safer to start from scratch if this is possible. Custom filtering is hard to reproduce at times.

ADD REPLY

Login before adding your answer.

Traffic: 3015 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