Skip to content

Commit

Permalink
Changed EC number regex
Browse files Browse the repository at this point in the history
Made it softer for provisional ECs
  • Loading branch information
iquasere committed Jan 4, 2024
1 parent 2256769 commit bce857a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keggcharter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from lxml import html
from keggpathway_map import KEGGPathwayMap, expand_by_list_column

__version__ = "1.1.0"
__version__ = "1.1.1"


def get_arguments():
Expand Down Expand Up @@ -181,7 +181,7 @@ def read_input_file(args: argparse.Namespace) -> pd.DataFrame:
patterns = {
"kegg_column": (r"^[A-Za-z]{3}:.+$", 'tax_id:KEGG_ID'),
"ko_column": (r"^K\d{5}$", 'KXXXXX'),
"ec_column": (r"^(\d+)(\.(\d+|-)){3}$", 'X.X.X.X'),
"ec_column": (r"^(\d+)(\.(\d+|-)){2}(\.(.*))?$", 'X.X.X.X'),
"cog_column": (r"^COG\d{4}$", 'COGXXXX')
}
for col in ["kegg_column", "ko_column", "ec_column", "cog_column"]:
Expand Down

0 comments on commit bce857a

Please sign in to comment.