Mine MOF oxidation states and featurize metal sites.
Project description
oximachine_featurizer
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
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
File details
Details for the file oximachine_featurizer-0.2.1.tar.gz
.
File metadata
- Download URL: oximachine_featurizer-0.2.1.tar.gz
- Upload date:
- Size: 62.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a7ebae0f282052adc95d5c8806fdc58308e2d70f2757fe4082caf2380e9a894 |
|
MD5 | c70563357be1dbb34b010df068d34c87 |
|
BLAKE2b-256 | f9b64a74f3b38bad654a6130d46435964b23312078cdb957a7064d2ee9c1ffef |
Provenance
File details
Details for the file oximachine_featurizer-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: oximachine_featurizer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 55.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69fcf7449b944b5983237d63806da03ebab07ecbaa31cc4f83a3391c7a95f80f |
|
MD5 | 88f38da41b3303056cd84e6342f7fc38 |
|
BLAKE2b-256 | 1510130343e94fab92f1cb66c5d19eedb013f5af471089b073e9ebd4a224464c |