Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarification on --continue #376

Open
willboulton opened this issue Aug 12, 2024 · 0 comments
Open

clarification on --continue #376

willboulton opened this issue Aug 12, 2024 · 0 comments

Comments

@willboulton
Copy link

Hi, thanks for this great assembler.

I'm using megahit version 1.2.9 to run a relatively large coassembly - using the meta-large presets. Due to some limitations on my unversity cluster, I've set the time too small and would like to restart my job from where it left off using --continue.
However, when I run this, megahit doesn't seem to continue from where it left off. I was wondering if you could clarify which parameters I should use to continue, and if I also need to change the options.json as well?

I'm currently using this:

megahit \
    --memory 400e9 \
    --mem-flag 1 \
    --min-contig-len 500 \
    --presets meta-large \
    --tmp-dir /path/to/my/assembly/megahit/samples_tmp/ \
    -t 48 \
    --12 {input.interleaved} \
    -r {input.singletons} \
    --continue -o {output}

But each time I restart, I get a new temp directory in the tmp-dir with some randomly generated hash as the directory suffix.
I've also tried editing the options.json file so that continue_mode:true was set; that didn't work either. From the logs it seems like megahit is starting from k=27, even though that finished successfully... I was hoping to continue from k=47 which was where the first run left off.

Would you be able to clarify with an example how to run megahit using --continue, for example if the first run didn't use --continue and the failed halfway through?

Many thanks for your help,
Will

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant