Convert 2 SE bam to PE bam (alignment BWA mem)
1
0
Entering edit mode
5.4 years ago

Is there anything software which can convert two SE alignment bam files to one PE bam file?

My SE bam files are from BWA mem

alignment bam bwa • 1.1k views
ADD COMMENT
4
Entering edit mode
5.4 years ago

Please, don't. Remap your reads.

ADD COMMENT
0
Entering edit mode

Pierre gives a good suggestion.

Merging will most likely result in incorrect values that affect things such as stranding and which read belongs to which, in later analysis. These SAM flags will become incorrect unless they will be 'fixed' on top of a merge:

  • read paired (0x1)
  • read mapped in proper pair (0x2)
  • mate unmapped (0x8)
  • read reverse strand (0x10)
  • mate reverse strand (0x20)
  • first in pair (0x40)
  • second in pair (0x80)

The same accounts for the RNEXT and PNEXT fields.

A remap will solve all these issues. Good luck!

Youri

ADD REPLY

Login before adding your answer.

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