How to find certain source codes for a function #6839
Replies: 1 comment 3 replies
-
Hi @LanceKnight, As you've discovered, it can be a bit complicated to find things like this due to the fact that most of the RDKit is implemented in C++ which is then wrapped to be used from Python. The names of things in the C++ code are usually not exactly the same as the names in Python. Probably the easiest way to answer a question like "how is the number of rotatable bonds defined" is to search in the rdkit repo in github rdkit/Code/GraphMol/Descriptors/Lipinski.cpp Line 108 in 4a69bc3 The other piece of information you need in this case is that the default value of the strict argument is |
Beta Was this translation helpful? Give feedback.
-
Hello, I was wondering how rdkit calculate the rotatable bonds (what criteria it uses to classify a bond into a rotatable bond). So I was trying to read the Chem.Linpiski.NumRotatableBonds. However, I encountered several roadblocks:
Can someone teach how to, in general, look for source codes for certain things in rdkit? I'm more used to pytorch type of documentation where [source codes] is listed right next to the function in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions