Skip to content

Commit

Permalink
fix(fix prodigal_fail_counter):
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaumeil committed Feb 15, 2023
1 parent 7012655 commit 476a4da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/src/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Change log
==========

2.2.3
-----

Bug Fixes:

* Fix prodigal_fail_counter issue

2.2.2
-----

Expand Down
2 changes: 1 addition & 1 deletion gtdbtk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
__status__ = 'Production'
__title__ = 'GTDB-Tk'
__url__ = 'https://github.com/Ecogenomics/GTDBTk'
__version__ = '2.2.2'
__version__ = '2.2.3'
6 changes: 3 additions & 3 deletions gtdbtk/classify.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def run(self,
output_files = {}

for marker_set_id in ('ar53', 'bac120'):
warning_counter, prodigal_fail_counter = 0, 0
warning_counter, prodigal_failed_counter = 0, 0
if marker_set_id == 'ar53':
marker_summary_fh = CopyNumberFileAR53(align_dir, prefix)
marker_summary_fh.read()
Expand Down Expand Up @@ -635,8 +635,8 @@ def run(self,
# This is a executive direction: failed prodigal and genomes with no markers are nit bacterial or archaeal
# but they need to be included in one of the summary file
if marker_set_id == 'bac120':
prodigal_fail_counter = self.add_failed_genomes_to_summary(align_dir, summary_file, prefix)
warning_counter = warning_counter + prodigal_fail_counter
prodigal_failed_counter = self.add_failed_genomes_to_summary(align_dir, summary_file, prefix)
warning_counter = warning_counter + prodigal_failed_counter

# Symlink to the summary file from the root
if marker_set_id == 'bac120':
Expand Down

0 comments on commit 476a4da

Please sign in to comment.