SMACT
SMACT: Semiconducting Materials by Analogy and Chemical Theory - Published in JOSS (2019)
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
Keywords from Contributors
Scientific Fields
Repository
Python package to aid materials design and informatics
Basic Info
- Host: GitHub
- Owner: WMD-group
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://smact.readthedocs.io
- Size: 43.2 MB
Statistics
- Stars: 121
- Watchers: 22
- Forks: 29
- Open Issues: 12
- Releases: 29
Topics
Metadata Files
README.md
SMACT
Semiconducting Materials from Analogy and Chemical Theory (SMACT) is a collection of rapid screening and informatics tools that uses data about chemical elements.
- Documentation: https://smact.readthedocs.io/en/latest/
- Examples: https://smact.readthedocs.io/en/latest/examples.html

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.

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:
- An application is shown in this publication, in which 160,000 chemical compositions are screened based on optical band gap calculated using the solid-state energy scale.
- The oxidation_states module can be used to filter out compositions containing metals in unlikely oxidation states according to a data-driven model.
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:
- Certain structure types can be built using the builder module
- Lattice parameters can be estimated using ionic radii of the elements for various common crystal structure types using the lattice_parameters module.
- The lattice module and distorter module rely on the Atomic Simulation Environment and can be used to generate unique atomic substitutions on a given crystal structure.
- The structure prediction module can be used to predict the structure of hypothetical compositions using species similarity measures.
- The dopant prediction module can be used to facilitate high-throughput predictions of p-type and n-type dopants of multicomponent solids.
List of modules
- smact library containing:
- __init__.py Contains the core
ElementandSpeciesclasses. - data_loader.py Handles the loading of external data used to initialise the core
smact.Elementandsmact.Speciesclasses. - 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.
- __init__.py Contains the core
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)
Owner
- Name: Materials Design Group
- Login: WMD-group
- Kind: organization
- Location: London
- Website: https://wmd-group.github.io
- Repositories: 57
- Profile: https://github.com/WMD-group
Research group in computational chemistry & physics led by @aronwalsh at @ImperialCollegeLondon
JOSS Publication
SMACT: Semiconducting Materials by Analogy and Chemical Theory
Authors
Tags
materials design chemical heuristics high-throughput screeningGitHub 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
Top Committers
| Name | 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... | ||
Committer Domains (Top 20 + Academic)
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
Pull Request Labels
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
- Documentation: https://pkg.go.dev/github.com/WMD-group/SMACT#section-documentation
- License: mit
-
Latest release: v3.2.0+incompatible
published 5 months ago
Rankings
proxy.golang.org: github.com/wmd-group/smact
- Documentation: https://pkg.go.dev/github.com/wmd-group/smact#section-documentation
- License: mit
-
Latest release: v3.2.0+incompatible
published 5 months ago
Rankings
pypi.org: smact
Semiconducting Materials by Analogy and Chemical Theory
- Homepage: https://github.com/WMD-group/SMACT
- Documentation: https://smact.readthedocs.io/en/latest/
- License: mit
-
Latest release: 3.2.0
published 5 months ago
Rankings
Maintainers (3)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- codecov/codecov-action v3 composite
- pre-commit/action v3.0.0 composite
- actions/github-script v6 composite
- actions/checkout master composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- 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
- 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
- ase *
- numpy *
- pandas *
- pathos *
- pymatgen *
- scipy *
- spglib *
