# make.contigs problem

**URL:** <https://forum.mothur.org/t/make-contigs-problem/2836>\
**Category:** mothur bugs\
**Created:** [May 6, 2016, 3:38pm UTC](https://forum.mothur.org/t/make-contigs-problem/2836 "2016-05-06T15:38:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anilei](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@anilei](https://forum.mothur.org/u/anilei)\
**Post date:** [May 6, 2016, 3:38pm UTC](https://forum.mothur.org/t/make-contigs-problem/2836/1 "2016-05-06T15:38:30Z")

</div>

Hi,  
I’m using mothur v.1.37.2 for MiSeq data.  
When I run make.contigs with my trimmed fastq files (Q30) and the oligos file, it quit after a few minutes and I get an error message:

Input command:

make.contigs(ffastq=run141516\_S1\_L001\_R1\_001.trim.fastq, rfastq=run141516\_S1\_L001\_R2\_001.trim.fastq, oligos=AEFVY.oligos, bdiffs=1, pdiffs=2, processors=10)

Output:

Using 10 processors.  
M01212\_115\_000000000-AEFVY\_1\_2105\_5285\_8428 is in your forward fastq file and not in your reverse file, please remove it using the remove.seqs command before proceeding.  
Making contigs…  
Segmentation fault: 11

I tried to run the command with the original fastq files thinking that the trimming didn´t go well, and I got empty files.

Output:

It took 5917 secs to process 21863596 sequences.

  
Output File Names: run141516\_S1\_L001\_R1\_001.trim.contigs.fasta run141516\_S1\_L001\_R1\_001.scrap.contigs.fasta run141516\_S1\_L001\_R1\_001.trim.contigs.qual run141516\_S1\_L001\_R1\_001.scrap.contigs.qual run141516\_S1\_L001\_R1\_001.contigs.report run141516\_S1\_L001\_R1\_001.contigs.groups  
The oligos file seems to be OK, and I also tried to run the command with an older version of mothur (1.36.0), and I got the same output.

What do you think it can be happening?

Thanks!  
Anilei

---

<div class="post-metadata">

**Author:** ![dwaite](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dwaite](https://forum.mothur.org/u/dwaite)\
**Post date:** [May 6, 2016, 10:47pm UTC](https://forum.mothur.org/t/make-contigs-problem/2836/2 "2016-05-06T22:47:00Z")

</div>

It looks like the reverse read for that sequence was discarded due to low quality, but the forward one was retained. If you want to quality filter your sequences before running them through mothur, you’ll probably need to use an external quality filtering tool. sickle is quite good for this - when filtering paired reads if one direction fails, it automatically removes the partner so that your output files still contain matching forward/reverse sequences.

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [May 10, 2016, 12:08pm UTC](https://forum.mothur.org/t/make-contigs-problem/2836/3 "2016-05-10T12:08:03Z")

</div>

Can you run make.contigs with the raw fastq files? I have yet to see data suggesting that trimming prior to assembly improves anything.

Pat

---

<div class="post-metadata">

**Author:** ![anilei](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@anilei](https://forum.mothur.org/u/anilei)\
**Post date:** [May 10, 2016, 3:05pm UTC](https://forum.mothur.org/t/make-contigs-problem/2836/4 "2016-05-10T15:05:29Z")

</div>

Hi,  
Thanks you both for your answers.  
I could run make.contigs with the raw files, but the output were empty files (zero bytes!).

The trimming that I did for both forward and reverse files, were:  
trim.seqs(fasta=run141516\_S1\_L001\_R1\_001.fasta, qfile=run141516\_S1\_L001\_R1\_001.qual, qwindowaverage=35, qwindowsize=50, processors=8)

trim.seqs(fasta=run141516\_S1\_L001\_R2\_001.fasta, qfile=run141516\_S1\_L001\_R2\_001.qual, qwindowaverage=35, qwindowsize=50, processors=8)

After the trimming, in the forward file 20,737,859 out of 21,863,596 were retained. And in the reverse file 19,509,364 out of 21,863,596.

So, apparently I have enough sequences to make contigs, but is not working.  
Do you think it will help doing the trimming with sickle or other?

Thanks again!  
anilei

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [May 23, 2016, 12:16pm UTC](https://forum.mothur.org/t/make-contigs-problem/2836/5 "2016-05-23T12:16:00Z")

</div>

Are you using our current version 1.34.4?
