Skip to content

fix: read EC numbers joined by a semicolon without a space as separate codes - #14

Merged
edkerk merged 1 commit into
developfrom
fix/get-ec-string-semicolons
Oct 28, 2026
Merged

edkerk merged 1 commit into
developfrom
fix/get-ec-string-semicolons

Conversation

@edkerk

@edkerk edkerk commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

getECstring splits the EC numbers of a database cell on white space and on semicolons. A cell that joins codes with ; and no space, such as 1.1.1.1;2.2.2.2, gave the single string EC1.1.1.12.2.2.2, and findECInDB returned 1.1.1.12.2.2.2. It now returns 1.1.1.1;2.2.2.2, which is what geckopy gives for the same cell. UniProt and KEGG separate codes with a space, so their cells are read as before.

The unit test tc0246 covers cells separated by a space, by ; , by ; alone and by repeated or surrounding separators.

Companion change: CompMetEng/raven-gecko-parity#141 adds the ec_lookup_edge_cases variant that compares both sides on such a cell.

A database cell that joins codes with ';' and no space, such as '1.1.1.1;2.2.2.2', gave the single string 'EC1.1.1.12.2.2.2'. The cell is now split on white space and semicolons, as geckopy does.
@github-actions

Copy link
Copy Markdown

Unit test results

63 tests   63 ✅  11s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit abb658b.

@edkerk
edkerk merged commit 1849a03 into develop Oct 28, 2026
2 checks passed
@edkerk
edkerk deleted the fix/get-ec-string-semicolons branch October 28, 2026 21:46
@edkerk edkerk mentioned this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant