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

Matrix table fix #7

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Matrix table fix #7

merged 4 commits into from
Apr 10, 2024

Conversation

taranewman
Copy link
Member

@taranewman taranewman commented Apr 10, 2024

Fixes #6

Issue occurs when running gubbins on clusters with less than 3 isolates. There is a parameter to skip_gubbins but we only want to skip if there are 2 isolates in a cluster. In production the pipeline is wrapped in a script and not able to be manually updated each time.

Changes:
Adds a boolean value called 'run_gubbins' in snippy_core.nf , set to true if there are 3 or more isolates in the snippy_dirs
Adds to gubbins.nf to run process only when run_gubbins is true, adds errorStrategy 'ignore'
In main.nf, adds run_gubbins variable to gubbins process, and assigns ch_alignment to the gubbins output only if run_gubbins is true, otherwise the snippy core alignment is used

@taranewman taranewman requested a review from dfornika April 10, 2024 15:39
Copy link
Member

@dfornika dfornika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@taranewman taranewman merged commit 94f88ad into master Apr 10, 2024
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

Successfully merging this pull request may close these issues.

snp-dists sometimes will not create distance matrix
2 participants