Closed CodeNinjaja closed 10 months ago
Sorry, it seems the function works on my end. What is your rdkit version?
Sorry, it seems the function works on my end. What is your rdkit version?
My rdkit version is 2022.9.5. This may be due to the rdkit version, I will try another version. Thanks for your reply! 🙏
The program crashes when I run the SafeDrug for drug recommendation with the real MIMIC-III dataset. When I looked into the source code, I found the bug occurred in the function
generate_molecule_info()
, specifically,adjacency = Chem.GetAdjacencyMatrix(mol)
. https://github.com/sunlabuiuc/PyHealth/blob/5592d437abf6a06df7d41204cf56971f45e98a47/pyhealth/models/safedrug.py#L529C20-L529C20I don't know what happened. Please provide some suggestions. Thank you. I provide a bug case here:
smile = '[F-].[Na+]'