Skip to content

Unicycler SPAdes error #351

@MJoseMo

Description

@MJoseMo

Hi,

I'm using unicycler and encountering an error. The error message is

Error: SPAdes encountered an error.

In a GitHub discussion, I found that this could be resolved with --spades_options -m 1024. However I encounter a new error:
--spades_options: command not found.

`Starting Unicycler (2025-02-06 17:18:56)

Welcome to Unicycler, an assembly pipeline for bacterial genomes. Since you provided only short reads, Unicycler will essentially function as a SPAdes-optimiser. It will try many k-mer sizes, choose the best based on contig length and graph connectivity, and scaffold the graph using SPAdes repeat resolution.
For more information, please see https://github.com/rrwick/Unicycler

Command: conda/envs/centos/bin/unicycler -1 U2OS_1_L1_1_50.fq.gz -2 U2OS_1_L1_2_50.fq.gz -o U2OS1/

Unicycler version: v0.5.1
Using 8 threads

The output directory already exists and files may be reused or overwritten:
U2OS1

Dependencies:
Program Version Status
spades.py 4.0.0 good
racon not used
makeblastdb 2.16.0+ good
tblastn 2.16.0+ good

Choosing k-mer range for assembly (2025-02-06 17:26:19)

Unicycler chooses a k-mer range for SPAdes based on the length of the input reads. It uses a wide range of many k-mer sizes to maximise the chance of finding an ideal assembly.

SPAdes maximum k-mer: 127
Median read length: 150
K-mer range: 27, 53, 71, 87, 99, 111, 119, 127

SPAdes assemblies (2025-02-06 17:33:23)

Unicycler now uses SPAdes to assemble the short reads. It scores the assembly graph for each k-mer using the number of contigs (fewer is better) and the number of dead ends (fewer is better). The score function is 1/(c*(d+2)), where c is the contig count and d is the dead end count.

spades.py -o U2OS1/spades_assembly -k 27 --threads 8 --gfa11 --isolate -1 U2OS_1_L1_1_50.fq.gz -2 U2OS_1_L1_2_50.fq.gz -m 1024
Error: SPAdes encountered an error:`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions