Skip to content

Commit

Permalink
Merge pull request #51 from RPirie96/fix_lipinski
Browse files Browse the repository at this point in the history
Using the original definitions for HBD/HBA calc for Lipinski
  • Loading branch information
bieniekmateusz authored Oct 17, 2023
2 parents b841a71 + f67737f commit 1c071d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Authors: Mateusz K. Bieniek, Ben Cree, Rachael Pirie, Joshua T. Horton, Natalie
- The user now has to import the libraries (RGroupGrid) and instantiate first.
- Libraries (linkers, rgroups) are now single .sdf files to avoid problems on clusters with many small files
- A growing vector can now be any molecule-separating atom in the molecule.
- Lipinski now uses the initial definitions of HBD: "sum of Ns and Os" and HBA: "sum of OHs and NHs",
(thanks to @RPirie96)
- When growing a molecule C multiple time in the same session (e.g. +linker +R), the .template attribute will
always be the original C

Expand Down
6 changes: 3 additions & 3 deletions fegrow/toxicity.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pandas as pd
from rdkit.Chem import Descriptors
from rdkit.Chem import Descriptors, Lipinski
from rdkit.Chem.FilterCatalog import FilterCatalog, FilterCatalogParams

from .sascorer import calculateScore
Expand All @@ -16,8 +16,8 @@ def rule_of_five(mol):

# Ro5 descriptors
MW = Descriptors.MolWt(mol)
HBA = Descriptors.NumHAcceptors(mol)
HBD = Descriptors.NumHDonors(mol)
HBA = Lipinski.NOCount(mol)
HBD = Lipinski.NHOHCount(mol)
LogP = Descriptors.MolLogP(mol)

# Ro5 conditions
Expand Down

0 comments on commit 1c071d6

Please sign in to comment.