Skip to content

Commit

Permalink
Update processing.py deplace_dic ß : b
Browse files Browse the repository at this point in the history
I've seen the german ß used instead of the greek β, this should help canonicalize this nomenclature dialect.
  • Loading branch information
mattias-erhardsson authored Feb 21, 2024
1 parent d7502e9 commit a7061cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glycowork/motif/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def canonicalize_iupac(glycan):
replace_dic = {'Nac': 'NAc', 'AC': 'Ac', 'Nc': 'NAc', 'NeuAc': 'Neu5Ac', 'NeuNAc': 'Neu5Ac', 'NeuGc': 'Neu5Gc',
'\u03B1': 'a', '\u03B2': 'b', 'N(Gc)': 'NGc', 'GL': 'Gl', 'GaN': 'GalN', '(9Ac)': '9Ac',
'KDN': 'Kdn', 'OSO3': 'S', '-O-Su-': 'S', '(S)': 'S', 'H2PO3': 'P', '(P)': 'P',
'–': '-', ' ': '', ',': '-', 'α': 'a', 'β': 'b', '.': '', '((': '(', '))': ')', '→': '-',
'–': '-', ' ': '', ',': '-', 'α': 'a', 'β': 'b', 'ß': 'b', '.': '', '((': '(', '))': ')', '→': '-',
'Glcp': 'Glc', 'Galp': 'Gal', 'Manp': 'Man', 'Fucp': 'Fuc', 'Neup': 'Neu', 'a?': 'a1'}
glycan = multireplace(glycan, replace_dic)
# Trim linkers
Expand Down

0 comments on commit a7061cb

Please sign in to comment.