Skip to main content

Add your description here

Project description

polymerfingerprint

origin

The Polymerfingerprint is a decoder for SMILES of polymer monomer units specialised for machine learning and the product of a prior scientific study "Fingerprint applicable for machine learning tested on LCST behavior of polymers". Please cite us under https://doi.org/10.1016/j.xcrp.2023.101553 upon using the code or the data generated with it.
A tutorial to redo the study is available as "Protocol for creating representations of molecular structures using a polymer-specific decoder" (https://doi.org/10.1016/j.xpro.2024.103055)

Use cases

  • creating fingerprints of homo-, or random copolymers
    • the polymerfingerprint consists of morgan and atom pair fingerprints by default
    • constituting fingerprints can be added removed or swapped out
  • reducing these sets to gain a concise representation for machine learning

Example for creating a reducing a fingerprint set

import polymerfingerprint as pfp

# the create fingerprint function can take dataframes or lists of molecules these two serve just as examples
a_polyfingerprint = pfp.create_pfp(end_units={"start": "[C](C)(C)(C#N)", "end": "[S]C(=S)OCC"},
                                   repeating_units={0.53: "[CH2][CH1](OC(=O)C)", 0.47: "[CH2][CH](N1C(=O)CCCCC1)"},
                                   mol_weight=35370,
                                   fp_size=2048)

b_polyfingerprint = pfp.create_pfp(end_units={"start": "[C](C=C)(C)(C#N)", "end": "[S]C(=S)OCCCC"},
                                       repeating_units={0.53: "[CH2][CH1](OC(=O)CC)", 0.47: "[CH2][CH](N1C(=O)CCC1)"},
                                       mol_weight=35370, fp_size=2048)

# create a list of polymerfingerprints
list_of_pfps = [a_polyfingerprint, b_polyfingerprint]

reduced_set = pfp.reduce_fp_set(list_of_pfps)

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

polymerfingerprint-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polymerfingerprint-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file polymerfingerprint-0.1.0.tar.gz.

File metadata

  • Download URL: polymerfingerprint-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for polymerfingerprint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db012ba6d6512a8d5c30d5a703ae310a3d1e817d57463d414fb637e94d8f2048
MD5 ca12e9fef061748ac006ab8c393627b4
BLAKE2b-256 7298f8e252e9a305f1efe68741ee145b55b71ff7b710a9e87b292bb4c7f25d00

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymerfingerprint-0.1.0.tar.gz:

Publisher: version_publish_main.yml on Bizbalt/polymerfingerprint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polymerfingerprint-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for polymerfingerprint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4fecfb49a292e911dadb6c39dce8b9972ff4062fb5b382e4c6c0e8b91668086
MD5 4ddb736af14923d62d5e39a17038da9b
BLAKE2b-256 e1b626a72fa94a24a3bbc31f5c86cc8aa53221507a99abf16264adc1c426e2e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymerfingerprint-0.1.0-py3-none-any.whl:

Publisher: version_publish_main.yml on Bizbalt/polymerfingerprint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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