Skip to main content

pinky - molecular fingerprint library

Project description

pinky - molecular fingerprint library

pinky is library for generating molecular fingerprints from SMILES strings.

pinky includes a fork of the SMILES parser and mol builder from frowns http://frowns.sourceforge.net/ originally written by Brian Kelley with contributions from Andrew Dalke.

This should be considered alpha software. The goal is to add more molecular fingerprint algorithms (currently only ECFP is supported). Also, would like to battle test the SMILES parser to provide a robust pure python SMILES parsing library.

Usage

from pinky.smiles import smilin
from pinky.fingerprints import ecfp

mol = smilin('CCCC(=O)N')
for atom in mol.atoms:
    print atom, atom.sumBondOrders()
for bond in mol.bonds:
    print bond.symbol, bond.bondorder, bond.bondtype, bond.fixed

# Compute ECFP_4 fingerprint
fp = ecfp(mol, radius=2)

License

See LICENSE file.

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

pinky-0.0.3.tar.gz (35.3 kB view hashes)

Uploaded Source

Built Distribution

pinky-0.0.3-py3-none-any.whl (52.3 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