A framework for calculating descriptors for polymers
Project description
PolyMetriX
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polymetrix-0.2.0.tar.gz.
File metadata
- Download URL: polymetrix-0.2.0.tar.gz
- Upload date:
- Size: 97.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a034d94239d811f1b21357573beed5ff2404dbc3f99bd265c41e4f3171a99b9
|
|
| MD5 |
724646a7ddcd88bc5de43085e8f1f454
|
|
| BLAKE2b-256 |
a2e2581011ebc8af05ee162193eeab94e442f02c4afe5f18e1e7d2de79e1d309
|
File details
Details for the file polymetrix-0.2.0-py3-none-any.whl.
File metadata
- Download URL: polymetrix-0.2.0-py3-none-any.whl
- Upload date:
- Size: 109.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
824d12d4d7ba1a06d27c112b26ef452f91f6cc42f43f452a7b9a352b97736b30
|
|
| MD5 |
7a557771dec91c22f578a87112635e00
|
|
| BLAKE2b-256 |
58844f1ca63916315eb3aedb77c028ccdf5a097f4a76f88b249c4d56452eea72
|