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

Fixes for two critical bugs in KOfam annotation step #95

Merged
merged 3 commits into from Feb 17, 2024

Conversation

ivagljiva
Copy link
Contributor

This PR addresses the bugs described in issue #94.

To ensure the correct bit score threshold is used for distinguishing between strong and weak hits in the hmmer_filter() function, we've moved the code for obtaining the current model's threshold to within the loop that iterates over each hit from the HMMER results. To ensure that a numerical comparison is used to identify the best match to a given gene in the best_match_selector() function, we've added explicit float conversions to the bit scores loaded from the intermediate file of HMM hits.

To confirm that these fixes resolve the bugs, we ran the code from this branch on our test genome from issue #94, Bradyrhizobium manausense BR3351 (NCBI RefSeq GCF_001440035.1). We analyzed the results with the scripts (also provided in issue #94) that count the number of false positives (from bug 1) and incorrect 'best matches' (from bug 2), respectively. In both cases, the number of errors with the fixed code was 0.

Copy link

@bdaisley bdaisley left a comment

Choose a reason for hiding this comment

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

Confirmed that these changes work as intended to fix the 2 bugs described in #94

@cruizperez cruizperez merged commit 9bbc5f6 into cruizperez:master Feb 17, 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.

None yet

3 participants