<p align="center">
<img src="https://github.com/kjappelbaum/mofdscribe/raw/main/docs/source/figures/logo.png" height="300">
</p>
<p align="center">
<a href="https://github.com/kjappelbaum/mofdscribe/actions?query=workflow%3ATests">
<img alt="Tests" src="https://github.com/kjappelbaum/mofdscribe/workflows/Tests/badge.svg" />
</a>
<a href="https://pypi.org/project/mofdscribe">
<img alt="PyPI" src="https://img.shields.io/pypi/v/mofdscribe" />
</a>
<a href="https://pypi.org/project/mofdscribe">
<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/mofdscribe" />
</a>
<a href="https://github.com/kjappelbaum/mofdscribe/blob/main/LICENSE">
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/mofdscribe" />
</a>
<a href='https://mofdscribe.readthedocs.io/en/latest/?badge=latest'>
<img src='https://readthedocs.org/projects/mofdscribe/badge/?version=latest' alt='Documentation Status' />
</
<a href='https://github.com/psf/black'>
<img src='https://img.shields.io/badge/code%20style-black-000000.svg' alt='Code style: black' />
</a>
<a href="https://matsci.org/c/mofdscribe/56">
<img src="https://img.shields.io/badge/matsci-discuss%20%26%20get%20help-yellowgreen" alt="Matsci">
<a href='http://commitizen.github.io/cz-cli/'>
<img src='https://img.shields.io/badge/commitizen-friendly-brightgreen.svg' alt='Commitizen friendly' />
</a>
<a href="https://colab.research.google.com/github/kjappelbaum/mofdscribe/">
<img src=https://colab.research.google.com/assets/colab-badge.svg >
</a>
</p>
Featurizing metal-organic frameworks (MOFs) made simple! This package builds on the power of [matminer](https://hackingmaterials.lbl.gov/matminer/) to make featurization of MOFs as easy as possible. Now, you can use features that are mostly used for porous materials in the same way as all other matminer featurizers.
mofdscribe additionally includes routines that help with model validation.
## πͺ Getting Started
```python
from mofdscribe.featurizers.chemistry import RACS
from pymatgen.core import Structure
structure = Structure.from_file(<my_cif.cif>)
featurizer = RACS()
racs_features = featurizer.featurize(structure)
```
## π Installation
While we are in the process of trying to make mofdscribe work on all operating system (we're waiting for conda recipies getting merged),
it is currently not easy on Windows (and there might be potential issues on ARM-based Macs).
For this reason, we recommend installing mofdscribe on a UNIX machine.
<!-- The most recent release can be installed from
[PyPI](https://pypi.org/project/mofdscribe/) with:
```bash
$ pip install mofdscribe
``` -->
<!--
The most recent code and data can be installed directly from GitHub with:
```bash
$ pip install git+https://github.com/kjappelbaum/mofdscribe.git
``` -->
To install in development mode, use the following:
```bash
git clone git+https://github.com/kjappelbaum/mofdscribe.git
cd mofdscribe
pip install -e .
```
if you want to use all utilities, you can use the `all` extra: `pip install -e ".[all]"`
We depend on many other external tools. Most external tools are automatically installed if you install mofdscribe via conda:
```bash
conda install -c conda-forge mofdscribe
```
## π Contributing
Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See
[CONTRIBUTING.rst](https://github.com/kjappelbaum/mofdscribe/blob/master/CONTRIBUTING.rst) for more information on getting involved.
## π Attribution
### βοΈ License
The code in this package is licensed under the MIT License.
### π Citation
See the [ChemRxiv preprint](https://chemrxiv.org/engage/chemrxiv/article-details/630d1f6f90802d52c16eceb2).
```
@article{Jablonka_2022,
doi = {10.26434/chemrxiv-2022-4g7rx},
url = {https://doi.org/10.26434%2Fchemrxiv-2022-4g7rx},
year = 2022,
month = {sep},
publisher = {American Chemical Society ({ACS})},
author = {Kevin Maik Jablonka and Andrew S. Rosen and Aditi S. Krishnapriyan and Berend Smit},
title = {An ecosystem for digital reticular chemistry}
}
```
<!--
### π Support
This project has been supported by the following organizations (in alphabetical order):
- [Harvard Program in Therapeutic Science - Laboratory of Systems Pharmacology](https://hits.harvard.edu/the-program/laboratory-of-systems-pharmacology/)
-->
### π° Funding
The research was supported by the European Research Council (ERC) under the European Unionβs Horizon 2020 research and innovation programme ([grant agreement 666983, MaGic](https://cordis.europa.eu/project/id/666983)), by the [NCCR-MARVEL](https://www.nccr-marvel.ch/), funded by the Swiss National Science Foundation, and by the Swiss National Science Foundation (SNSF) under Grant 200021_172759.
### πͺ Cookiecutter
This package was created with [@audreyfeldroy](https://github.com/audreyfeldroy)'s
[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using [@cthoyt](https://github.com/cthoyt)'s
[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack) template.
## π οΈ For Developers
<details>
<summary>See developer instructions</summary>
The final section of the README is for if you want to get involved by making a code contribution.
### β Testing
After cloning the repository and installing `tox` with `pip install tox`, the unit tests in the `tests/` folder can be
run reproducibly with:
```shell
tox
```
Additionally, these tests are automatically re-run with each commit in a [GitHub Action](https://github.com/kjappelbaum/mofdscribe/actions?query=workflow%3ATests).
### π¦ Making a Release
After installing the package in development mode and installing
`tox` with `pip install tox`, the commands for making a new release are contained within the `finish` environment
in `tox.ini`. Run the following from the shell:
```shell
tox -e finish
```
This script does the following:
1. Uses BumpVersion to switch the version number in the `setup.cfg` and
`src/mofdscribe/version.py` to not have the `-dev` suffix
2. Packages the code in both a tar archive and a wheel
3. Uploads to PyPI using `twine`. Be sure to have a `.pypirc` file configured to avoid the need for manual input at this
step
4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.
5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
use `tox -e bumpversion minor` after.
</details>
Raw data
{
"_id": null,
"home_page": "https://github.com/kjappelbaum/mofdscribe",
"name": "mofdscribe",
"maintainer": "Kevin M. Jablonka",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "mail@kjablonka.com",
"keywords": "mof,machine-learning,descriptors,featurization,reticular-chemistry",
"author": "Kevin M. Jablonka",
"author_email": "mail@kjablonka.com",
"download_url": "https://files.pythonhosted.org/packages/96/08/697c26fba437287eda52eb3512840b689dca7f0789b83193f6acf8f91154/mofdscribe-0.0.8.tar.gz",
"platform": null,
"description": "\n<p align=\"center\">\n <img src=\"https://github.com/kjappelbaum/mofdscribe/raw/main/docs/source/figures/logo.png\" height=\"300\">\n</p>\n<p align=\"center\">\n <a href=\"https://github.com/kjappelbaum/mofdscribe/actions?query=workflow%3ATests\">\n <img alt=\"Tests\" src=\"https://github.com/kjappelbaum/mofdscribe/workflows/Tests/badge.svg\" />\n </a>\n <a href=\"https://pypi.org/project/mofdscribe\">\n <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/mofdscribe\" />\n </a>\n <a href=\"https://pypi.org/project/mofdscribe\">\n <img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/mofdscribe\" />\n </a>\n <a href=\"https://github.com/kjappelbaum/mofdscribe/blob/main/LICENSE\">\n <img alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/mofdscribe\" />\n </a>\n <a href='https://mofdscribe.readthedocs.io/en/latest/?badge=latest'>\n <img src='https://readthedocs.org/projects/mofdscribe/badge/?version=latest' alt='Documentation Status' />\n </\n <a href='https://github.com/psf/black'>\n <img src='https://img.shields.io/badge/code%20style-black-000000.svg' alt='Code style: black' />\n </a>\n <a href=\"https://matsci.org/c/mofdscribe/56\">\n <img src=\"https://img.shields.io/badge/matsci-discuss%20%26%20get%20help-yellowgreen\" alt=\"Matsci\">\n <a href='http://commitizen.github.io/cz-cli/'>\n <img src='https://img.shields.io/badge/commitizen-friendly-brightgreen.svg' alt='Commitizen friendly' />\n </a>\n <a href=\"https://colab.research.google.com/github/kjappelbaum/mofdscribe/\">\n <img src=https://colab.research.google.com/assets/colab-badge.svg >\n </a>\n</p>\n\nFeaturizing metal-organic frameworks (MOFs) made simple! This package builds on the power of [matminer](https://hackingmaterials.lbl.gov/matminer/) to make featurization of MOFs as easy as possible. Now, you can use features that are mostly used for porous materials in the same way as all other matminer featurizers.\nmofdscribe additionally includes routines that help with model validation.\n\n## \ud83d\udcaa Getting Started\n\n```python\n\nfrom mofdscribe.featurizers.chemistry import RACS\nfrom pymatgen.core import Structure\n\nstructure = Structure.from_file(<my_cif.cif>)\nfeaturizer = RACS()\nracs_features = featurizer.featurize(structure)\n```\n\n## \ud83d\ude80 Installation\n\nWhile we are in the process of trying to make mofdscribe work on all operating system (we're waiting for conda recipies getting merged),\nit is currently not easy on Windows (and there might be potential issues on ARM-based Macs).\nFor this reason, we recommend installing mofdscribe on a UNIX machine.\n\n<!-- The most recent release can be installed from\n[PyPI](https://pypi.org/project/mofdscribe/) with:\n\n```bash\n$ pip install mofdscribe\n``` -->\n<!--\n\nThe most recent code and data can be installed directly from GitHub with:\n\n```bash\n$ pip install git+https://github.com/kjappelbaum/mofdscribe.git\n``` -->\n\nTo install in development mode, use the following:\n\n```bash\ngit clone git+https://github.com/kjappelbaum/mofdscribe.git\ncd mofdscribe\npip install -e .\n```\n\nif you want to use all utilities, you can use the `all` extra: `pip install -e \".[all]\"`\n\nWe depend on many other external tools. Most external tools are automatically installed if you install mofdscribe via conda:\n\n```bash\nconda install -c conda-forge mofdscribe\n```\n\n## \ud83d\udc50 Contributing\n\nContributions, whether filing an issue, making a pull request, or forking, are appreciated. See\n[CONTRIBUTING.rst](https://github.com/kjappelbaum/mofdscribe/blob/master/CONTRIBUTING.rst) for more information on getting involved.\n\n## \ud83d\udc4b Attribution\n\n### \u2696\ufe0f License\n\nThe code in this package is licensed under the MIT License.\n\n\n### \ud83d\udcd6 Citation\n\nSee the [ChemRxiv preprint](https://chemrxiv.org/engage/chemrxiv/article-details/630d1f6f90802d52c16eceb2).\n\n```\n@article{Jablonka_2022,\n doi = {10.26434/chemrxiv-2022-4g7rx},\n url = {https://doi.org/10.26434%2Fchemrxiv-2022-4g7rx},\n year = 2022,\n month = {sep},\n publisher = {American Chemical Society ({ACS})},\n author = {Kevin Maik Jablonka and Andrew S. Rosen and Aditi S. Krishnapriyan and Berend Smit},\n title = {An ecosystem for digital reticular chemistry}\n}\n```\n\n\n<!--\n### \ud83c\udf81 Support\n\nThis project has been supported by the following organizations (in alphabetical order):\n\n- [Harvard Program in Therapeutic Science - Laboratory of Systems Pharmacology](https://hits.harvard.edu/the-program/laboratory-of-systems-pharmacology/)\n\n-->\n\n### \ud83d\udcb0 Funding\n\nThe research was supported by the European Research Council (ERC) under the European Union\u2019s Horizon 2020 research and innovation programme ([grant agreement 666983, MaGic](https://cordis.europa.eu/project/id/666983)), by the [NCCR-MARVEL](https://www.nccr-marvel.ch/), funded by the Swiss National Science Foundation, and by the Swiss National Science Foundation (SNSF) under Grant 200021_172759.\n\n### \ud83c\udf6a Cookiecutter\n\nThis package was created with [@audreyfeldroy](https://github.com/audreyfeldroy)'s\n[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using [@cthoyt](https://github.com/cthoyt)'s\n[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack) template.\n\n## \ud83d\udee0\ufe0f For Developers\n\n<details>\n <summary>See developer instructions</summary>\n\nThe final section of the README is for if you want to get involved by making a code contribution.\n\n### \u2753 Testing\n\nAfter cloning the repository and installing `tox` with `pip install tox`, the unit tests in the `tests/` folder can be\nrun reproducibly with:\n\n```shell\ntox\n```\n\nAdditionally, these tests are automatically re-run with each commit in a [GitHub Action](https://github.com/kjappelbaum/mofdscribe/actions?query=workflow%3ATests).\n\n### \ud83d\udce6 Making a Release\n\nAfter installing the package in development mode and installing\n`tox` with `pip install tox`, the commands for making a new release are contained within the `finish` environment\nin `tox.ini`. Run the following from the shell:\n\n```shell\ntox -e finish\n```\n\nThis script does the following:\n\n1. Uses BumpVersion to switch the version number in the `setup.cfg` and\n `src/mofdscribe/version.py` to not have the `-dev` suffix\n2. Packages the code in both a tar archive and a wheel\n3. Uploads to PyPI using `twine`. Be sure to have a `.pypirc` file configured to avoid the need for manual input at this\n step\n4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.\n5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can\n use `tox -e bumpversion minor` after.\n\n</details>\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Ecosystem for digital reticular chemistry",
"version": "0.0.8",
"split_keywords": [
"mof",
"machine-learning",
"descriptors",
"featurization",
"reticular-chemistry"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "46484603ef51605faeea8fee716d80b52311aa4f34ea1ff1d7cdf39a56cdcc5f",
"md5": "b44b34e526f60ea38c14b7b8c3882e9d",
"sha256": "1de9bdf4b6e1bbf4d484fcc5a9325c2a37d3b32c38c1ec7a51193d437708e97c"
},
"downloads": -1,
"filename": "mofdscribe-0.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b44b34e526f60ea38c14b7b8c3882e9d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 1153832,
"upload_time": "2023-04-12T13:54:03",
"upload_time_iso_8601": "2023-04-12T13:54:03.559006Z",
"url": "https://files.pythonhosted.org/packages/46/48/4603ef51605faeea8fee716d80b52311aa4f34ea1ff1d7cdf39a56cdcc5f/mofdscribe-0.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9608697c26fba437287eda52eb3512840b689dca7f0789b83193f6acf8f91154",
"md5": "6357f91f1a1b59f8296d9ff56b17a360",
"sha256": "cc3196ae6949997012d80672fe8e85fe5e83f4053b62c4f88ffd4e5f6e74e96a"
},
"downloads": -1,
"filename": "mofdscribe-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "6357f91f1a1b59f8296d9ff56b17a360",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4567613,
"upload_time": "2023-04-12T13:54:07",
"upload_time_iso_8601": "2023-04-12T13:54:07.678152Z",
"url": "https://files.pythonhosted.org/packages/96/08/697c26fba437287eda52eb3512840b689dca7f0789b83193f6acf8f91154/mofdscribe-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-12 13:54:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "kjappelbaum",
"github_project": "mofdscribe",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "mofdscribe"
}