Skip to content

Commit

Permalink
reference expected files from KODatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
semiller10 committed Sep 24, 2023
1 parent 50d543a commit fb10435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anvio/kegg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import anvio.filesnpaths as filesnpaths
import anvio.tables as t
import anvio.ccollections as ccollections
import anvio.biochemistry.reactionnetwork as reactionnetwork

from anvio.errors import ConfigError
from anvio.drivers.hmmer import HMMer
Expand Down Expand Up @@ -824,7 +825,7 @@ def kegg_archive_is_ok(self, unpacked_archive_path, no_modeling_is_ok = False):
# this section needs to be kept up to date with any changes to requirements in reactionnetwork.py
# which is a bit silly, but since these two classes don't know about each other it is the workaround we need :(
path_to_modeling_files_in_archive = os.path.join(path_to_kegg_in_archive, "KO_REACTION_NETWORK")
expected_modeling_files = ['ko_info.txt', 'ko_data.tsv']
expected_modeling_files = reactionnetwork.KODatabase.expected_files
missing_modeling_files = []
for f in expected_modeling_files:
path_to_f_in_archive = os.path.join(path_to_modeling_files_in_archive, f)
Expand Down

0 comments on commit fb10435

Please sign in to comment.