Skip to main content

Mine MOF oxidation states and featurize metal sites.

Project description

oximachine_featurizer

Actions Status DOI Maintainability License: GPL v3 Binder

Mine oxidation states for structures from the (MOF) subset of the CSD and calculate features for them. Runscripts are automatically installed for the most important steps. Some of these runscripts contain hardcoded paths, that would need to be updated. This code generates inputs that can be used with the learnmofox package.

⚠️ Warning: For the mining of the oxidation states, you need the CSD Python API. You need to export the CSD_HOME path. Due to the licensing issues, this cannot be done automatically.

Installation

To install the software with all dependencies, you can use

pip install git+https://github.com/kjappelbaum/mof_oxidation_states.git

This automatically installs several command-line tools (CLI) which are detailed below.

The full process should take some seconds.

How to use it

  • To run the featurization
run_featurization {structure} {outdir}

for each metal center this should take seconds if there is no disorder. Note that the metal center features are added using methods from the FeatureCollector class.

  • To collect separate files with features into one file for the feature matrix, you can use the featurecollector, e.g.
run_featurecollection --only_racs {FEATURESPATH}  {LABELSPATH} {labelsoutpath} {featureoutspath} {helperoutpath} 0.2 {holdoutpath} 60000 {RACSDATAPATH} column row crystal_nn_no_steinhardt

The bottleneck of this approach is that it currently checks for each name if we exclude it (e.g., due to wrong assignments). One should expect a runtime in the order of several minutes for several structures.

Some output can be found on the MaterialsCloud Archive (doi: 10.24435/materialscloud:2019.0085/v1 ).

Example usage

The use of the main functions of this package is shown in the Jupyter Notebook in the example directory. It contains some example structures and the output, which should be produces in seconds.

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

oximachine_featurizer-0.2.1.tar.gz (62.7 kB view hashes)

Uploaded Source

Built Distribution

oximachine_featurizer-0.2.1-py3-none-any.whl (55.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page