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

LigPrepper.sdf2pdbqt("your-molecule.sdf")
LigPrepper.pdbqt2sdf("your-molecule.pdbqt")

split sdf

Ligprepper.splitsdf("your-molecules.sdf",outputdir=None,parts=0,molspersdf=1,firstpart=1)

Arguments:
    outputdir   - directory to save output sdf files
    parts       - number of parts to split
    molspersdf  - number of molecules to be chunked into (parts is neglected if this is used)
    firstpart   - naumber of the first part 

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

LigPrepper-0.5.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file LigPrepper-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: LigPrepper-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for LigPrepper-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1796a4181feb4292052ea4717ffb7d1a522bc08d1bb64df0137ccc6132e57a1
MD5 51885e8ec486f86b6af3911f21b3e5aa
BLAKE2b-256 38844965f3b38ebaa038357b4a472bd6c60f482dadc2389114fcde39b70c7d96

See more details on using hashes here.

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