Skip to content

Wiley-Z/pinky

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

molecular fingerprint library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%