nomad-polymerization-reactions
A NOMAD plugin providing schemas, search apps, and data transformation utilities. The plugin has been primarily developed for hosting polymerization datasets extracted from the literature in a NOMAD deployment.
Availability
The plugin is available on the central NOMAD deployment. You can use the
polymerization search app to
access entries from publicly available datasets. These entries
are based on the PolymerizationReaction schema
defined in this plugin.
Associated Work
The dataset curated using this plugin has been used in the
copolymer-reactivity project to train machine-learning
models for classifying copolymerization types.
Installation
Install the package in your local environment with pip:
pip install nomad-polymerization-reactions
Adding this plugin to NOMAD Oasis
The plugin can be added to a NOMAD Oasis instance in a few steps, provided that you have access to the repository hosting the Oasis.
Read the NOMAD plugin documentation for all details on how to deploy the plugin on your NOMAD Oasis instance. If you want to get started with a new Oasis, read the installation guide.
Using the CLI for data transformation
The package provides utility functions for transforming JSON files into NOMAD
entry archives. These archives have archive.json ending and are processed by
NOMAD once uploaded. The m_def key in the archives helps NOMAD to identify
which data schema to use (defined in
schema_packages / polymerization.py).
Here's how you can convert a JSON file(s) into NOMAD entry archive(s) using the
CLI command nomad-polymerization archive:
# create an archive with `Monomer` schema
nomad-polymerization archive monomer.json
# create an archive with `PolymerizationReaction` schema
nomad-polymerization archive polymerization_reaction.json --mode polymerization
# provide multiple filepaths or directory paths to convert multiple JSONs
nomad-polymerization archive /folder/poly1.json /folder/poly2.json --mode polymerization
nomad-polymerization archive /folder --mode polymerization
# By default, the command creates archives in the current working directory. To create archives
# in the same directory as the JSONs, use `same-dir` flag:
nomad-polymerization archive /folder/monomer.json --same-dir
The JSON files used for transformation should have a fixed format. You can find the data models for JSON files in models.py.
License
Apache 2.0 - see LICENSE.
Metadata
Release files for nomad-polymerization-reactions 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nomad_polymerization_reactions-1.0.1.tar.gz | 3.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nomad_polymerization_reactions-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.0 MB
Release files / nomad_polymerization_reactions-1.0.1.tar.gz
| Download URL | nomad_polymerization_reactions-1.0.1.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9a06d58c9939b82e2bf22299b7b04f851ea86bd64225485b4b7e243235d1cbc
|
|
BLAKE2b-256 checksum How to use checksums |
56a7ef6dc1ef6ca9bbed2d45b1590a6ae6e21135c790db73cd43c261661acfe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / nomad_polymerization_reactions-1.0.1-py3-none-any.whl
| Download URL | nomad_polymerization_reactions-1.0.1-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
213a4180f5b63b8e7408cefd7490e64f5fc247f4a6d69524dc3f6f58f9c25312
|
|
BLAKE2b-256 checksum How to use checksums |
1022c6eabb48fb128ec356fa85a256d28b89f8267606cd55db8da5f510b4b5b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|