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

assembly tool as input parameter #4

Open
grendon opened this issue Jul 10, 2020 · 3 comments
Open

assembly tool as input parameter #4

grendon opened this issue Jul 10, 2020 · 3 comments

Comments

@grendon
Copy link
Collaborator

grendon commented Jul 10, 2020

Something like params.asssemblytool. The value could be megahit or masurca.

You should create an assembly process for each tool and then make the execution of the assembly process conditional on the value of that parameter.

If tool=megahit then execute process assemblyMegahit.
If tool=masurca then execute process assemblyMasurca.

There are several examples of conditional processes. This snippet is in nextflow templates;

https://github.com/nextflow-io/patterns/blob/master/docs/conditional-process.adoc

@grendon
Copy link
Collaborator Author

grendon commented Aug 7, 2020

done

@grendon grendon closed this as completed Aug 7, 2020
@kkowalden
Copy link
Contributor

@grendon When a config file with assembler="masurca" is used with pipeline, both megahit and masurca run.
Probably needs an if/else statement.

@kkowalden kkowalden reopened this Feb 3, 2021
@cjfields
Copy link
Contributor

Still runs with both with the overhauled code, so should probably be addressed with masurca as the default.

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

3 participants