This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How do I reduce the length of a contig?

I have recently assembled my shotgun metagenomic reads using metaSPADES without changing any default settings. I then upload them to MG-RAST for annotation. However, some of the samples have contigs greater than the maximum length cut off (500,000bp). According to the manual, the MG-RAST pipeline has a hard time annotating reads/contigs that contain multiple organisms. If I reduce my K-mer size, would this result in shorter contigs? Or does anyone have any other suggestions for adjusting contig length without manually separating them and compromising coverage statistics?

Thank you!

assembly metagenomics

The best approach is to use a different program that does not have such a strange and arbitrary limitation. But if you need to observe a 500kbp limit, manually separate them, rather than trying to find parameters that make SPAdes give you a bad assembly. You can use BBMap like this:

reformat.sh in=good_assembly.fa out=bad_assembly.fa fastareadlen=500000

That will break sequences longer than 500kbp into 500kbp pieces.

Thank you so much! I will try that!

I could not find this mention to the contig maximum length here, could you point the link to the manual and page / section mentioning it?

It is on page 77 in the Data submission via the web interface section.

My mistake, that is the page referring to the format. I found out about the bp cutoff after uploading the file. It will not allow you to submit files that contain one or more sequences/contigs who are >500kbp. It will not allow you to select these files for submission on the submit page.

Below is the link to the screenshot of the submission page:

https://ibb.co/jiWHc5

0 answers

No answers yet.

Log in to answer this question.