Skip to main content

A NOMAD plugin for polymerization reactions.

Project description

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.

Polymerization Reaction search app demo

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.

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

nomad_polymerization_reactions-1.0.1.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

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

nomad_polymerization_reactions-1.0.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file nomad_polymerization_reactions-1.0.1.tar.gz.

File metadata

File hashes

Hashes for nomad_polymerization_reactions-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f9a06d58c9939b82e2bf22299b7b04f851ea86bd64225485b4b7e243235d1cbc
MD5 91d9f3afbbe9c7c4348d0c3fc88e20cd
BLAKE2b-256 56a7ef6dc1ef6ca9bbed2d45b1590a6ae6e21135c790db73cd43c261661acfe1

See more details on using hashes here.

File details

Details for the file nomad_polymerization_reactions-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nomad_polymerization_reactions-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 213a4180f5b63b8e7408cefd7490e64f5fc247f4a6d69524dc3f6f58f9c25312
MD5 3aa302c43ce6364fd12efd50556ca0c4
BLAKE2b-256 1022c6eabb48fb128ec356fa85a256d28b89f8267606cd55db8da5f510b4b5b3

See more details on using hashes here.

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