
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Python wrapper to ease the calculation of CDK molecular descriptors and fingerprints.
From source:
git clone https://github.com/OlivierBeq/CDK_pywrapper.git
pip install ./CDK_pywrapper
with pip:
pip install CDK-pywrapper
from CDK_pywrapper import CDK
from rdkit import Chem
smiles_list = [
# erlotinib
"n1cnc(c2cc(c(cc12)OCCOC)OCCOC)Nc1cc(ccc1)C#C",
# midecamycin
"CCC(=O)O[C@@H]1CC(=O)O[C@@H](C/C=C/C=C/[C@@H]([C@@H](C[C@@H]([C@@H]([C@H]1OC)O[C@H]2[C@@H]([C@H]([C@@H]([C@H](O2)C)O[C@H]3C[C@@]([C@H]([C@@H](O3)C)OC(=O)CC)(C)O)N(C)C)O)CC=O)C)O)C",
# selenofolate
"C1=CC(=CC=C1C(=O)NC(CCC(=O)OCC[Se]C#N)C(=O)O)NCC2=CN=C3C(=N2)C(=O)NC(=N3)N",
# cisplatin
"N.N.Cl[Pt]Cl"
]
mols = [Chem.AddHs(Chem.MolFromSmiles(smiles)) for smiles in smiles_list]
cdk = CDK()
print(cdk.calculate(mols))
The above calculates 222 molecular descriptors (23 1D and 200 2D).
The additional 65 three-dimensional (3D) descriptors may be obtained with the following:
:warning: Molecules are required to have conformers for 3D descriptors to be calculated.
from rdkit.Chem import AllChem
for mol in mols:
_ = AllChem.EmbedMolecule(mol)
cdk = CDK(ignore_3D=False)
print(cdk.calculate(mols))
To obtain molecular fingerprint, one can used the following:
from CDK_pywrapper import CDK, FPType
cdk = CDK(fingerprint=.PubchemFP)
print(cdk.calculate(mols))
The following fingerprints can be calculated:
FPType | Fingerprint name |
---|---|
FP | CDK fingerprint |
ExtFP | Extended CDK fingerprint (includes 25 bits for ring features and isotopic masses) |
EStateFP | Electrotopological state fingerprint (79 bits) |
GraphFP | CDK fingerprinter ignoring bond orders |
MACCSFP | Public MACCS fingerprint |
PubchemFP | PubChem substructure fingerprint |
SubFP | Fingerprint describing 307 substructures |
KRFP | Klekota-Roth fingerprint |
AP2DFP | Atom pair 2D fingerprint as implemented in PaDEL |
HybridFP | CDK fingerprint ignoring aromaticity |
LingoFP | LINGO fingerprint |
SPFP | Fingerprint based on the shortest paths between two atoms |
SigFP | Signature fingerprint |
CircFP | Circular fingerprint |
class CDK(ignore_3D=True, fingerprint=None, nbits=1024, depth=6):
Constructor of a CDK calculator for molecular descriptors or fingerprints
Parameters:
Default method to calculate CDK molecular descriptors and fingerprints.
Parameters:
FAQs
Python wrapper for CDK molecular descriptors and fingerprints
We found that CDK-pywrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.