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 metabolism coverage bug #1800

Merged
merged 4 commits into from Sep 16, 2021
Merged

Fix metabolism coverage bug #1800

merged 4 commits into from Sep 16, 2021

Conversation

ivagljiva
Copy link
Contributor

This PR addresses the bugs described in #1798 and #1799.

It really was a very stupid bug. The gene caller id variable which was being used to access the gene coverage information was of type string, when it needed to be an integer, and that was causing KeyErrors. But now it is fixed, and I have tested that all modes are working with the --add-coverage flag (this includes multi-mode as well!).

Additionally, while I was at it, I added the --add-coverage functionality to the kofam_hits output mode (it strangely was not available before; I suppose I forgot it when I was initially coding this). This mode now gets the same coverage and detection columns added as in kofam_hits_in_modules mode. I have updated the relevant documentation pages to reflect this.

Sorry for the inconvenience this bug has caused :)

we kept getting key errors because the gene caller id was a string (for 
nice printing purposes) rather than an int. nice going, iva [insert 
sarcastic look here].
@ivagljiva ivagljiva merged commit afb4991 into master Sep 16, 2021
@ivagljiva ivagljiva deleted the fix_metabolism_coverage_bug branch September 16, 2021 16:49
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

1 participant