Biostar Beta. Not for public use.
Convert 2 SE bam to PE bam (alignment BWA mem)
0
Entering edit mode
15 months 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

ADD COMMENTlink
4
Entering edit mode
13 months ago
France/Nantes/Institut du Thorax - INSE…

Please, don't. Remap your reads.

ADD COMMENTlink
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 REPLYlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1