Skip to main content

Simple program to quickly prepare ligand 3d SDF/MOL2/PDBQT from smiles

Project description

LigPrepper

Simple program to quickly prepare 3D SDF/MOL2/PDBQT files from SMILES for ligands using rdkit & openbabel.

Also, split sdf and convert formats sdf<->pdbqt for Autodock Vina

PyPI version Downloads

Installation:

pip install LigPrepper

Usage:

For single SMILES

LigPrepper.smiles2sdf('c1ccncc1', labels='pyridine')

LigPrepper.smiles2mol2('c1ccncc1', labels='pyridine')

LigPrepper.smiles2pdbqt('c1ccncc1', labels='pyridine')

For a list of SMILES

LigPrepper.smiles2sdf(smiles_list, labels=labels_list, mergesdf=False)

Want to align molecule to reference molecule in SDF format

LigPrepper.smiles2sdf(smiles_list, labels=labels_list, ref='ref.sdf', mergesdf=False)

convert formats

sdf2pdbqt
pdbqt2sdf

split sdf

splitsdf

Draw 2D structures

LigPrepper.smiles2png(smiles_list, labels=labels_list)

LigPrepper.smiles2png(smiles_list, labels=labels_list, ref='ref smiles')

LigPrepper.smiles2png(smiles_list, labels=labels_list, ref='ref.sdf')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

LigPrepper-0.4.5.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

LigPrepper-0.4.5-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page