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.
Prerequisites
- Python 3.10 or newer:
pip install polymetrix
For more detailed installation instructions, see the documentation.
# Import necessary modules
from polymetrix.datasets import CuratedGlassTempDataset
# Load the dataset
dataset = CuratedGlassTempDataset()
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.
We welcome contributions to PolyMetriX! Please refer to the contribution guidelines for more information.