Skip to main content

PolyMetriX

PyPI PyPI - License Documentation Contributor Covenant

PolyMetriX Overview

PolyMetriX is a comprehensive Python library that powers the entire machine learning workflow for polymer informatics. From data preparation to feature engineering, it provides a unified framework for developing structure-property relationships in polymer science.

For more detailed information, see the documentation.

✨ Installing PolyMetriX

Prerequisites

  • Python 3.10 or newer:
pip install polymetrix

For more detailed installation instructions, see the documentation.

Loading Curated Glass Transition Temperature Dataset

# Import necessary modules
from polymetrix.datasets import CuratedGlassTempDataset

# Load the dataset
dataset = CuratedGlassTempDataset()

Getting Features for Polymers

from polymetrix.featurizers.polymer import Polymer
from polymetrix.featurizers.chemical_featurizer import MolecularWeight
from polymetrix.featurizers.sidechain_backbone_featurizer import FullPolymerFeaturizer

# initialize the FullPolymerFeaturizer class with required featurizers
featurizer = FullPolymerFeaturizer(MolecularWeight())

polymer = Polymer.from_psmiles('*CCCCCCNC(=O)c1ccc(C(=O)N*)c(Sc2ccccc2)c1')
result = featurizer.featurize(polymer)

For more detailed usage instructions, see the documentation.

Comparator method for Polymer-Organic Mixtures

from polymetrix.featurizers.polymer import Polymer
from polymetrix.featurizers.molecule import Molecule, FullMolecularFeaturizer
from polymetrix.featurizers.chemical_featurizer import MolecularWeight, NumHBondDonors, NumHBondAcceptors, NumRotatableBonds
from polymetrix.featurizers.sidechain_backbone_featurizer import FullPolymerFeaturizer
from polymetrix.comparator import PolymerMoleculeComparator

# initialize with required featurizers
polymer_featurizer = FullPolymerFeaturizer(MolecularWeight())
molecule_featurizer = FullMolecularFeaturizer(MolecularWeight())

polymer = Polymer.from_psmiles('*CCCCCCNC(=O)c1ccc(C(=O)N*)c(Sc2ccccc2)c1')
molecule = Molecule.from_smiles('CC(=O)OC1=CC=CC=C1C(=O)O')

comparator = PolymerMoleculeComparator(polymer_featurizer, molecule_featurizer)
difference = comparator.compare(polymer, molecule)

For more detailed usage instructions, see the documentation.

How to contribute

We welcome contributions to PolyMetriX! Please refer to the contribution guidelines for more information.

Metadata

Release files for polymetrix 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polymetrix 0.2.0
File Size Uploaded
polymetrix-0.2.0.tar.gz 97.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polymetrix 0.2.0
File Interpreter ABI Platform
polymetrix-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 207.4 kB

Release files / polymetrix-0.2.0.tar.gz

Download URL polymetrix-0.2.0.tar.gz
Size 97.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7a034d94239d811f1b21357573beed5ff2404dbc3f99bd265c41e4f3171a99b9
BLAKE2b-256 checksum
How to use checksums
a2e2581011ebc8af05ee162193eeab94e442f02c4afe5f18e1e7d2de79e1d309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Release files / polymetrix-0.2.0-py3-none-any.whl

Download URL polymetrix-0.2.0-py3-none-any.whl
Size 109.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
824d12d4d7ba1a06d27c112b26ef452f91f6cc42f43f452a7b9a352b97736b30
BLAKE2b-256 checksum
How to use checksums
58844f1ca63916315eb3aedb77c028ccdf5a097f4a76f88b249c4d56452eea72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page