Skip to content

Commit

Permalink
Newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
earmingol committed Oct 14, 2024
1 parent c15b111 commit 6d6d58d
Show file tree
Hide file tree
Showing 2 changed files with 283 additions and 561 deletions.
2 changes: 1 addition & 1 deletion task_data/Generate-Human-from-MATLAB.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2850,7 +2850,7 @@
" rxn_name = row['Reaction']\n",
" gpr = row['GPR-symbol']\n",
" if isinstance(gpr, str):\n",
" elements = re.findall(r'\\b[\\w:]+\\b', gpr)\n",
" elements = re.findall(r'\\b[^\\s(),]+\\b', gpr)\n",
" _genes = [e for e in elements if e not in ('and', 'or', 'AND', 'OR')]\n",
" for g in _genes:\n",
" rxn_records.append((rxn_name, g))"
Expand Down
Loading

0 comments on commit 6d6d58d

Please sign in to comment.