Skip to content

Commit

Permalink
no_r_group_and_alias: check if molFileAlias starts with R to not mess…
Browse files Browse the repository at this point in the history
… other aliases
  • Loading branch information
Eloy Felix committed Feb 13, 2024
1 parent 4761194 commit 7e3ff7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libRDChEBI/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def no_r_group_and_alias(molfile):
if atom_is_r_group(at):
r_group = True
if "molFileAlias" in at.GetPropNames() and at.GetSymbol() == "C":
alias = True
if at.GetProp("molFileAlias")[0] == "R":
alias = True
if not r_group and alias:
return True
else:
Expand Down

0 comments on commit 7e3ff7a

Please sign in to comment.