make contigs trouble

Hi everyone,

I got a problem trying to make contigs from my MiSeq 2x250 Illumina data. I used the original command “make.contigs” with the stability file but later on I got the “stability.trim.contigs.good.unique.align” of 3 Gb size and in subsequent analyses I finished with only 10% of my original sequences…

I decided to do the following approach in order to select good quality sequences before make contigs option:

mothur >
fastq.info(fastq=10A_R1.fastq)

mothur >
fastq.info(fastq=10A_R2.fastq)

mothur >
trim.seqs(fasta=10A_R1.fasta, qfile=10A_R1.qual, qaverage=30)

mothur >
trim.seqs(fasta=10A_R2.fasta, qfile=10A_R2.qual, qaverage=30)

mothur >
make.contigs(ffasta=10A_R1.trim.fasta, rfasta=10A_R2.trim.fasta, fqfile=10A_R1.trim.qual, rqfile=10A_R2.trim.qual)

Using 1 processors.
Making contigs…
[WARNING]: name mismatch in forward and reverse fasta file. Ignoring, HWI-M02808_228_AWGN8_1_1101_13861_2168.
[WARNING]: name mismatch in forward and reverse fasta file. Ignoring, HWI-M02808_228_AWGN8_1_1101_11143_2183.
[WARNING]: name mismatch in forward and reverse fasta file. Ignoring, HWI-M02808_228_AWGN8_1_1101_10817_2281.
[WARNING]: name mismatch in forward and reverse fasta file. Ignoring, HWI-M02808_228_AWGN8_1_1101_12388_2296.
[WARNING]: name mismatch in forward and reverse fasta file. Ignoring, HWI-M02808_228_AWGN8_1_1101_19708_2308.
and many more…


Please, can you help me?.

Many thanks in advance,

Frederic

I imagine what’s happening is that some of your forward or reverse sequences are getting discarded during trimming, which is then throwing out the order during make.contigs.

To clarify what I think dwaite is saying, we suspect your sequences were trimmed or processed before coming into mothur. make.contigs needs the raw fastq/fastq.gz files as they come off the sequencer. There should be the same number of reads in the files for the forward and reverse reads

Many thanks for your answer.

I noticed that make.contigs option also allows to work with fasta files:

mothur > make.contigs(ffasta=test_1.fasta, rfasta=test_2.fasta, rqfile=test_1.qual, fqfile=test_1.qual)

My puropse was to run make.contigs with fasta files that did not contain sequences with Q average values below 30. I suspect that the number of sequences in the forward and reverse fasta files is different and this is the reason of the warning message.

Do you have any idea of how could I make contigs from my data?. Initially, I used the option stability.file but like I said in my messabe above it didn’t work.

Many thanks again,

Frederic

I don’t know if this can be done in mothur, but tools like trimmomatic can do quality filtering in a way that only retains pairs when both the forward and reverse sequence pass the filtering criteria. If this is the way you want to analyse the data, it might be worth screening the sequences outside of mothur, then bringing them in for pair joining and the rest of the workflow.

Many thanks!!!. I definitely will try it out.

Frederic