comparison COBRAxy/src/utils/reaction_parsing.py @ 542:fcdbc81feb45 draft

Uploaded
author francesco_lapi
date Sun, 26 Oct 2025 19:27:41 +0000
parents 2fb97466e404
children
comparison
equal deleted inserted replaced
541:fa93040a75af 542:fcdbc81feb45
6 - Parsing of custom reaction strings into stoichiometric maps 6 - Parsing of custom reaction strings into stoichiometric maps
7 - Conversion of a dict of raw reactions into a directional reactions dict 7 - Conversion of a dict of raw reactions into a directional reactions dict
8 - Loading custom reactions from a tabular file (TSV) 8 - Loading custom reactions from a tabular file (TSV)
9 """ 9 """
10 from enum import Enum 10 from enum import Enum
11 import utils.general_utils as utils
12 from typing import Dict 11 from typing import Dict
13 import re 12 import re
13
14 try:
15 from . import general_utils as utils
16 except:
17 import general_utils as utils
14 18
15 # Reaction direction encoding: 19 # Reaction direction encoding:
16 class ReactionDir(Enum): 20 class ReactionDir(Enum):
17 """ 21 """
18 A reaction can go forward, backward, or be reversible (both directions). 22 A reaction can go forward, backward, or be reversible (both directions).