Skip to content

Commit

Permalink
Fix kcat bug #26 thanks to @yaccos
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulocracy committed Jul 11, 2023
1 parent 180e382 commit e115b91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions autopacmen/submodules/get_reactions_kcat_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ def _get_kcat_from_protein_kcat_database(searched_direction: str, reaction: cobr
if gene_name not in protein_kcat_database.keys():
continue
kcat_direction = protein_kcat_database[gene_name]["direction"][reaction.id]
max_kcat = max(protein_kcat_database[gene_name]["kcats"])

if kcat_direction == searched_direction == "forward":
max_kcats.append(max_kcat)
else:
if kcat_direction == searched_direction:
max_kcat = max(protein_kcat_database[gene_name]["kcats"])
max_kcats.append(max_kcat)

# Get the minimal maximal kcat and return it :D
Expand Down

0 comments on commit e115b91

Please sign in to comment.