Skip to content

Commit

Permalink
replace trademark and register symbols in gtopdb
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanWelzel committed Jul 12, 2024
1 parent a07e7a3 commit 007d21d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/gtopdb/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def preprocess_ligands(d: dict, _id: str):
d["species"] = [species.lower() for species in species_list]

if "synonyms" in d.keys():
d["synonyms"] = d["synonyms"].split("|")
# replace trademark and registered symbols with url encoding
d["synonyms"] = d["synonyms"].split(
"|").replace("™", "™").replace("®", "®")
if "uniprot_id" in d.keys():
d["uniprot_id"] = d["uniprot_id"].split("|")
if "ensembl_id" in d.keys():
Expand Down

0 comments on commit 007d21d

Please sign in to comment.