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

Fix missing score in input bins #36

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Fix missing score in input bins #36

merged 2 commits into from
Dec 19, 2024

Conversation

JeanMainguy
Copy link
Member

This PR fixes the error reported in issue #34, which happened when writing input bin metrics to the output directory.

What Went Wrong

The issue was caused when two input bins from different sets were sharing the same contig content. While the bins were dereplicated during scoring, binette was using the undereplicated bins when writing the metrics. This included unscored bins, which caused the error.

How It’s Fixed

Now, only the dereplicated bins are used when writing metrics. The origin attribute tracks where each bin came from, so no information is lost in the process.

@JeanMainguy JeanMainguy merged commit 476d7e8 into main Dec 19, 2024
4 checks passed
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.

1 participant