ERROR [mem_sam_pe] paired reads have different names -- during binning in metaWRAP pipeline
0
0
Entering edit mode
2.7 years ago
arshad1292 ▴ 100

I performed the following steps with my data.

  1. Performed digital normalization on the individual 205 samples --- success
  2. removed the host (e.g. human) and adapter sequences from the individual samples --- success
  3. concatenated the samples into groups ---success
  4. performed the assembly with metaspades and megahit --- success
  5. Tried to perform binning step but it gives the following error:

    ERROR [mem_sam_pe] paired reads have different names: "A00534:36:HCHN3DRXX:2:1101:7437:1031", "A00534:36:HCHN3DRXX:2:1101:13693:1031"

Any idea how to fix this issue? Could it be digital normalization messing up the read names?

Would really appreciate your help!

metawrap • 1.7k views
ADD COMMENT
0
Entering edit mode

Do you understand what the problem is? Have you figured out which step introduced it?

ADD REPLY
0
Entering edit mode

It could be digital normalization step because the reads without digital normalization work just fine. And within digital normalization, I needed to interleave the read1 and read2 into one. I did that with bbmap

reformat.sh in1=read1.fastq in2=read2.fastq

After performing digital normalizatin steps, I needed to convert interleaved reads back into read1 and read2. Again, I did that with bbmap as below:

reformat.sh in=interleaved.fq out1=read1.fastq out2=read2.fastq

However, when I run the qc step (for adaptor and host sequences removal), it gives the following error:

Error: bad read id in file A_case_diginorm/trimmed_2.fastq: expected A00534:36:HCHN3DRXX:2:1101:12644:1000, got A00534:36:HCHN3DRXX:2:1101:14705:1000

May be bbmap is not splitting the read1 and read2 properly and giving them proper name? Not sure.. Again, this error doesn't appear if I perform this step without digital normalization.

But is there any other tools that I can use to interleave and then later split the reads?

I would really appreciate the help

ADD REPLY
0
Entering edit mode

maybe a couple of solutions can be found here: link

ADD REPLY
0
Entering edit mode

Ok i have fixed the problem. I should not have used bbmap but should have used provided script with khmer.

ADD REPLY
0
Entering edit mode

I needed to interleave the read1 and read2 into one. I did that with bbmap

reformat.sh in1=read1.fastq in2=read2.fastq

This was done incorrectly, unless you left out a part of the command.

This command should have been

reformat.sh in1=read1.fastq in2=read2.fastq out=interleaved.fasq

Then use the interleaved.fastq file for whatever you needed to do.

The only way this could have gone wrong is if your original files were out of sync. Which I think is the case based on the error you posted above. Perhaps you trimmed the read files independently, which should not be done.

Using repair.sh from BBMap would have brought your original files back in sync removing singletons before using reformat.sh to interleave the reads.

ADD REPLY
0
Entering edit mode

Hi I have the same issue. Which script from khmer you used? Thanks a lot!

ADD REPLY

Login before adding your answer.

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