Skip to content

Commit ce94310

Browse files
authored
Merge pull request #2540 from bcoltman/backward_compatible_metabolism_estimation
Fixes #2539 by adding a simple fix for backward compatibility of include_stray_kos with include_nt_KOs
2 parents e720c63 + 8b6164a commit ce94310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

anvio/metabolism/dbaccess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ class is nothing but one that iterates through all contigs DBs
6666
self.add_coverage = True if A('add_coverage') else False
6767
self.add_copy_number = True if A('add_copy_number') else False
6868
self.exclude_kos_no_threshold = False if A('include_kos_not_in_kofam') else True
69-
self.include_stray_kos = True if A('include_nt_KOs') else False
69+
self.include_stray_kos = True if A('include_nt_KOs') or A('include_stray_kos') else False # quick fix for backward compatability
70+
self.include_nt_KOs = True if A('include_nt_KOs') or A('include_stray_kos') else False # quick fix for backward compatability
7071
self.ignore_unknown_kos = True if A('ignore_unknown_KOs') else False
7172
self.exclude_dashed_reactions = True if A('exclude_dashed_reactions') else False
7273
self.module_specific_matrices = A('module_specific_matrices') or None

0 commit comments

Comments
 (0)