SMACT

SMACT: Semiconducting Materials by Analogy and Chemical Theory - Published in JOSS (2019)

https://github.com/wmd-group/smact

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: sciencedirect.com, rsc.org, acs.org, joss.theoj.org, zenodo.org
  • Committers with academic emails
    15 of 37 committers (40.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

computational-chemistry machine-learning materials-design materials-informatics materials-science materials-screening python

Keywords from Contributors

computational-materials-science physics exoplanet energy-system mesh hydrology pulseq pulse-sequences mri-sequences mri

Scientific Fields

Mathematics Computer Science - 37% confidence
Last synced: 4 months ago · JSON representation

Repository

Python package to aid materials design and informatics

Basic Info
Statistics
  • Stars: 121
  • Watchers: 22
  • Forks: 29
  • Open Issues: 12
  • Releases: 29
Topics
computational-chemistry machine-learning materials-design materials-informatics materials-science materials-screening python
Created about 12 years ago · Last pushed 5 months ago
Metadata Files
Readme Contributing License

README.md

DOI DOI Documentation Status License: MIT python version Code style: black PyPi Conda GitHub issues dependencies CI Status codecov PyPI - Downloads Ask DeepWiki

SMACT

Semiconducting Materials from Analogy and Chemical Theory (SMACT) is a collection of rapid screening and informatics tools that uses data about chemical elements.

A blue interface with the text "SMACT v3" at the top. Below that, there is a label "Materials Search" followed by two radio buttons: "Hi-fi" and "Lo-fi". The "Lo-fi" button is currently selected

If you torture the data enough, nature will always confess - Roland Coase (from 'How should economists choose?')

Statement of need

There is a strong demand for functional materials across a wide range of technologies. The motivation can include cost reduction, performance enhancement, or to enable a new application. We have developed low-cost procedures for screening hypothetical materials. This framework can be used for simple calculations on your own computer. SMACT follows a top-down approach where a set of element combinations is generated and then screened using rapid chemical filters. It can be used as part of a multi-technique workflow or to feed artificial intelligence models for materials.

A gif depicting using the SMACT code. The first lines of code show how SMACT can be used to access properties of Iron (Fe) by create an Fe Element object and then accessing the oxidation states, pauling electronegativity. The next line after these shows the use of the smact_filter function for the Fe-Cu-O chemical system followed by the lists of possible compositions.

Getting started

Features are accessed through Python scripts, importing classes and functions as needed. The best place to start is looking at the docs, which highlight some simple examples of how these classes and functions can be usede Use cases are available in our examples and tutorials folders.

Code features

  • At the core of SMACT are Element and Species (element in a given oxidation state) classes that have various properties associated with them.

  • Oxidation states that are accessible to each element are included in their properties.

  • Element compositions can be screened through based on the heuristic filters of charge neutrality and electronegativity order. This is handled using the screening module and this publication describes the underlying theory. An example procedure is outlined in the docs.

  • Further filters can be applied to generated lists of compositions in order to screen for particular properties. These properties are either intrinsic properties of elements or are calculated for compositions using the properties module. For example:

  • Compositions can also be filtered based on sustainability via the abundance of elements in the Earth's crust or via the HHI scale.

  • Compositions can be converted for use in Pymatgen or for representation to machine learning algorithms (see this example) and the related ElementEmbeddings package.

  • The code also has tools for manipulating common crystal lattice types:

List of modules

  • smact library containing:
    • __init__.py Contains the core Element and Species classes.
    • data_loader.py Handles the loading of external data used to initialise the core smact.Element and smact.Species classes.
    • screening.py Used for generating and applying filters to compositional search spaces.
    • properties.py A collection of tools for estimating useful properties based on composition.
    • lattice.py Given the sites, multiplicities and possible oxidation states at those sites, this reads from the database and generates all possible stoichiometries.
    • builder.py Builds some common lattice structures, given the chemical composition.
    • lattice_parameters.py Estimation of lattice parameters for various lattice types using covalent/ionic radii.
    • distorter.py A collection of functions for enumerating and then substituting on inequivalent sites of a sub-lattice.
    • oxidation_states.py: Used for predicting the likelihood of species coexisting in a compound based on a statistical model.
    • structure_prediction: A submodule which contains a collection of tools for facilitating crystal structure predictions via ionic substitutions
    • dopant_prediction: A submodule which contains a collections of tools for predicting dopants.
    • utils.py A collection of utility functions used throughout the codebase.

Requirements

The main language is Python 3 and has been tested using Python 3.10 - 3.13 (Windows is not officially supported for Python 3.13 as of yet). Basic requirements are Numpy and Scipy. The Atomic Simulation Environment (ASE), spglib, and pymatgen are also required for many components.

Installation

The latest stable release can be installed via pip which will automatically set up other Python packages as required:

pip install smact

Optional dependencies can also be installed. These enable full replication of the examples and tutorials

pip install "smact[optional]"

SMACT is also available via conda through the conda-forge channel on Anaconda Cloud:

conda install -c conda-forge smact

Alternatively, the very latest version can be installed using:

pip install git+https://github.com/WMD-group/SMACT.git

For developer installation SMACT can be installed from a copy of the source repository (https://github.com/wmd-group/smact); this will be preferred if using experimental code branches.

To clone the project from GitHub and make a local installation:

git clone https://github.com/wmd-group/smact.git
cd smact
pip install --user -e .

With -e pip will create links to the source folder so that that changes to the code will be immediately reflected on the PATH.

License and attribution

Python code and original data tables are licensed under the MIT License.

Development notes

Bugs, features and questions

Please use the Issue Tracker to report bugs or request features in the first instance. While we hope that most questions can be answered by searching the docs, we welcome new questions on the issue tracker, especially if they helps us improve the docs! For other queries about any aspect of the code, please contact Anthony Onwuli (maintainer) by e-mail.

Code contributions

We are always looking for ways to make SMACT better and more useful to the wider community; contributions are welcome. Please use the "Fork and Pull" workflow to make contributions and stick as closely as possible to the following:

  • Code style should comply with PEP8 where possible. Google's house style is also helpful, including a good model for docstrings.
  • Please use comments liberally when adding nontrivial features, and take the chance to clean up other people's code while looking at it.
  • Add tests wherever possible, and use the test suite to check if you broke anything.
  • Look at the contributing guide for more information.

Tests

We use integrated testing on GitHub via GitHub Actions. Testing modules should be pass/fail and wrapped into tests/test_core.py or another tests/test_something.py file added, if appropriate. Run the tests using python -m pytest -v.(The final -v is optional and adds more detail to the output.)

References

H. Park et al., "Mapping inorganic crystal chemical space" Faraday Discuss. (2024)

D. W. Davies et al., "SMACT: Semiconducting Materials by Analogy and Chemical Theory" JOSS 4, 1361 (2019)

D. W. Davies et al., "Materials discovery by chemical analogy: role of oxidation states in structure prediction" Faraday Discuss. 211, 553 (2018)

D. W. Davies et al., "Computational screening of all stoichiometric inorganic materials" Chem 1, 617 (2016)

B. R. Pamplin, "A systematic method of deriving new semiconducting compounds by structural analogy", J. Phys. Chem. Solids 25, 675 (1964)

Owner

  • Name: Materials Design Group
  • Login: WMD-group
  • Kind: organization
  • Location: London

Research group in computational chemistry & physics led by @aronwalsh at @ImperialCollegeLondon

JOSS Publication

SMACT: Semiconducting Materials by Analogy and Chemical Theory
Published
June 10, 2019
Volume 4, Issue 38, Page 1361
Authors
Daniel W. Davies ORCID
Department of Materials, Imperial College London, London, UK
Keith T. Butler ORCID
SciML, STFC Scientific Computing Division, Rutherford Appleton Laboratories, UK
Adam J. Jackson ORCID
Department of Chemistry, University College London, London, UK
Jonathan M. Skelton ORCID
School of Chemistry, University of Manchester, Manchester, UK
Kazuki Morita ORCID
Department of Materials, Imperial College London, London, UK
Aron Walsh ORCID
Department of Materials, Imperial College London, London, UK, Department of Materials Science and Engineering, Yonsei University, Seoul, Korea
Editor
Bruce E. Wilson ORCID
Tags
materials design chemical heuristics high-throughput screening

GitHub Events

Total
  • Create event: 84
  • Release event: 4
  • Issues event: 7
  • Watch event: 17
  • Delete event: 73
  • Issue comment event: 159
  • Push event: 177
  • Pull request review event: 131
  • Pull request review comment event: 115
  • Pull request event: 194
  • Fork event: 7
Last Year
  • Create event: 84
  • Release event: 4
  • Issues event: 7
  • Watch event: 17
  • Delete event: 73
  • Issue comment event: 159
  • Push event: 177
  • Pull request review event: 131
  • Pull request review comment event: 115
  • Pull request event: 194
  • Fork event: 7

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 1,500
  • Total Committers: 37
  • Avg Commits per committer: 40.541
  • Development Distribution Score (DDS): 0.68
Past Year
  • Commits: 458
  • Committers: 12
  • Avg Commits per committer: 38.167
  • Development Distribution Score (DDS): 0.428
Top Committers
Name Email Commits
Anthony Onwuli a****6@i****k 480
Alex Moriarty a****4@g****m 220
dependabot[bot] 4****] 155
Keith Butler k****r@b****k 129
Daniel Davies d****9@g****m 64
Daniel Davies d****4@b****k 56
Aron Walsh a****h@g****m 50
ajjackson a****n@b****k 46
ryannduma r****a@g****m 43
Adam J. Jackson a****n@p****g 39
Kinga Mastej k****j@g****m 36
Anthony Onwuli a****6@i****k 26
Daniel Davies d****s@u****k 19
pre-commit-ci[bot] 6****] 18
Daniel Davies d****n@D****l 18
Chloe 5****e 17
dandavies99 d****l@c****k 12
Pan 1****k 11
keeeto k****0@g****m 9
dandavies99 d****s@b****k 8
Kinga Oliwia Mastej k****4@i****k 8
Keith Butler k****r@s****k 5
Tim Gauntlett t****0@b****k 4
Jarvist Moore Frost j****t@g****m 4
JMSkelton j****1@g****m 4
KazMorita K****a@l****t 3
Daniel Davies d****n@D****l 3
Andy Morris a****y@c****k 3
hspark1212 p****8@g****m 2
Tianshu Li 3****9 1
and 7 more...

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 36
  • Total pull requests: 526
  • Average time to close issues: 11 months
  • Average time to close pull requests: 7 days
  • Total issue authors: 13
  • Total pull request authors: 15
  • Average comments per issue: 1.86
  • Average comments per pull request: 1.1
  • Merged pull requests: 438
  • Bot issues: 0
  • Bot pull requests: 325
Past Year
  • Issues: 4
  • Pull requests: 198
  • Average time to close issues: about 1 hour
  • Average time to close pull requests: 10 days
  • Issue authors: 4
  • Pull request authors: 8
  • Average comments per issue: 0.25
  • Average comments per pull request: 1.37
  • Merged pull requests: 145
  • Bot issues: 0
  • Bot pull requests: 119
Top Authors
Issue Authors
  • AntObi (11)
  • usccolumbia (8)
  • dandavies99 (5)
  • CompRhys (2)
  • sgbaird (2)
  • FedeOtto (1)
  • ryannduma (1)
  • raolixiang-up (1)
  • AnikenC (1)
  • wangzyphysics (1)
  • zhubonan (1)
  • lucydot (1)
  • PhilippHoellmer (1)
Pull Request Authors
  • dependabot[bot] (273)
  • AntObi (156)
  • github-actions[bot] (54)
  • KingaMas (17)
  • JiwooChloeLee (14)
  • pre-commit-ci[bot] (12)
  • ryannduma (6)
  • dandavies99 (5)
  • a-ws-m (3)
  • hspark1212 (2)
  • Panyalak (2)
  • CompRhys (2)
  • keeeto (1)
  • AyhamSaffar (1)
  • utf (1)
Top Labels
Issue Labels
enhancement (11) Hacktoberfest (4) bug (4) weird-oxidation-states (2) question (1) dependencies (1) WIP (1) feature (1)
Pull Request Labels
dependencies (284) python (275) enhancement (32) bug (19) github_actions (19) docs (17) feature (14) refactor (9) housekeeping (9) tests (8) pkg (6) breaking (4) WIP (3)

Packages

  • Total packages: 3
  • Total downloads:
    • pypi 10,123 last-month
  • Total dependent packages: 1
    (may contain duplicates)
  • Total dependent repositories: 2
    (may contain duplicates)
  • Total versions: 66
  • Total maintainers: 3
proxy.golang.org: github.com/WMD-group/SMACT
  • Versions: 18
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago
proxy.golang.org: github.com/wmd-group/smact
  • Versions: 18
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago
pypi.org: smact

Semiconducting Materials by Analogy and Chemical Theory

  • Versions: 30
  • Dependent Packages: 1
  • Dependent Repositories: 2
  • Downloads: 10,123 Last month
Rankings
Dependent packages count: 4.8%
Average: 8.3%
Forks count: 8.4%
Downloads: 8.5%
Stargazers count: 8.5%
Dependent repos count: 11.5%
Maintainers (3)
Last synced: 4 months ago

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
  • pre-commit/action v3.0.0 composite
.github/workflows/combine-prs.yml actions
  • actions/github-script v6 composite
.github/workflows/publish-to-pypi.yml actions
  • actions/checkout master composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
requirements-dev.txt pypi
  • black ==22.12.0 development
  • isort ==5.11.4 development
  • nbqa ==1.6.0 development
  • pre-commit ==2.21.0 development
  • pytest ==7.2.0 development
  • pyupgrade ==3.3.1 development
requirements.txt pypi
  • ase ==3.22.1
  • future ==0.18.2
  • numpy ==1.24.1
  • pandas ==1.5.2
  • pathos ==0.3.0
  • pymatgen ==2022.11.7
  • pytest ==7.2.0
  • pytest-subtests ==0.9.0
  • scipy ==1.9.3
  • spglib ==2.0.2
setup.py pypi
  • ase *
  • numpy *
  • pandas *
  • pathos *
  • pymatgen *
  • scipy *
  • spglib *