Skip to main content

No project description provided

Project description

Molecules and CGR’s fingerprints

Library provides transformers of molecules and CGR’s into features.

  • Pure python code

  • Sklearn like API. Pipelines supported.

  • Linear fingerprints

  • Morgan fingerprints

  • Linear features lists

  • Morgan features lists

Install

pip install StructureFingerprint

Example

import numpy as np from CGRtools import smiles from StructureFingerprint import LinearFingerprint, MorganFingerprint

lfp = LinearFingerprint() # Sklearn-like transformer mol = smiles(‘CN(C)C=O’)

print(lfp.transform([mol])) # array. Can be used in sklearn estimators print(lfp.transform_bitset([mol])) # active bits indexes

print(set(np.where(lfp.transform([mol])==1)[1]) == set(lfp.transform_bitset([mol])[0]))

print(lfp.transform_hashes([mol])) # hashes of fragments

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

StructureFingerprint-2.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

StructureFingerprint-2.1-py3-none-any.whl (7.2 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