Question: Convert 2 SE bam to PE bam (alignment BWA mem)
0
gravatar for mynameliuxiang
10 months ago by
mynameliuxiang0 wrote:

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

bam bwa alignment • 328 views
ADD COMMENTlink modified 9 months ago by zx87548.8k • written 10 months ago by mynameliuxiang0
4
gravatar for Pierre Lindenbaum
10 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum125k wrote:

Please, don't. Remap your reads.

ADD COMMENTlink modified 9 months ago by zx87548.8k • written 10 months ago by Pierre Lindenbaum125k

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 written 9 months ago by yhoogstrate50
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 943 users visited in the last hour