This release is a pre-release and may not be stable for production use.
GenIce3
Generate ice-rule-compliant ice and clathrate hydrate structures for molecular simulation. This is the current GenIce.
Successor of GenIce 1 and GenIce2. Use this package for new work.
pip install genice3
genice3 1h > ice.gro
Python 3.11 or later. Output obeys the ice rules and a chosen net polarization (default zero); it is not energy-minimized. Relax with the intended force field before a production run.
Manual: genice-dev.github.io/GenIce3
For AI assistants: for-ai-assistants · llms.txt
Agent skill (try it): skills.sh/genice-dev/GenIce3 · npx skills add genice-dev/GenIce3
Version 3.0b8
New in GenIce3
- Command line
- Option syntax is unified; hierarchical options and YAML config files (
-Y/--config) replace many GenIce2-style flags. - Polarization control uses
pol_loop_1andpol_loop_2(replacingdepol_loop). - Package and entry points are
genice3(PyPI:genice3); plugin groups use thegenice3.*namespaces.
- Option syntax is unified; hierarchical options and YAML config files (
- API
- Python API redesigned around
GenIce3andDependencyEngine: specify what you need and dependent quantities recompute automatically. - Embed protonic defects (H₃O⁺, OH⁻) and Bjerrum topological defects from Python (see the API examples in the manual).
- Setter-style configuration and expanded notebooks/examples (
API.ipynb,examples/api/).
- Python API redesigned around
- Algorithm and core
- Ice-rule and depolarization logic delegated to genice-core (≥1.6.0); GenIce3 focuses on unit cells, guests, ions, and exporters.
- Reactive pipeline:
@reactiveproperties and explicit dependency tracking replace ad-hoc recalculation.
- Unit cells and structures
- Lattice plugins moved to
genice3.unitcell; many GenIce2 structures ported with identity comparison tests. - CIF-derived unit cells branch on whether hydrogen positions are supplied;
partial_orderremoved. - New or updated structures include auxiliary ices,
YKD,ice21(and aliases), and cylindrical prism ice (API).
- Lattice plugins moved to
- Clathrates, ions, and defects
- Cage assessment: GenIce2's
--assess_cagesremoved — use exportercage_survey(JSON). Default max cage ring count is 16 (override via exporter options). - Spot ions use
-A/-C(spot anion/cation; not the old cage-assessment flag). Group guests and spot-cation cage reporting extended; unit-cell ion suboptions (e.g.--group) in YAML.
- Cage assessment: GenIce2's
- Exporters and visualization
- Built-in and plugin exporters (GROMACS, CIF, LAMMPS, yaplot, plotly, py3Dmol, etc.); format functions and option parsing refined.
- Optional Web API (
genice3[web]/genice3-web) and stdio MCP (genice3[mcp]/genice3-mcp); sharedgenice3.servicelayer.
- Documentation and tooling
- Manual on GitHub Pages; plugin tables and citations generated from the repo (
make docs,make README.md). - For a narrative of the GenIce3 development period and compatibility notes, see RELEASE_NOTE.md in the repository.
- Manual on GitHub Pages; plugin tables and citations generated from the repo (
Example — cage survey (formerly --assess_cages):
genice3 CS2 -e cage_survey > cages.json
Demo
Try GenIce3 on Google Colaboratory.
Coding agents (Cursor, Claude Code, Codex, …): open skills.sh/genice-dev/GenIce3 or install in one step:
npx skills add genice-dev/GenIce3
Optional MCP (chat tool calls into GenIce3): pip install "genice3[mcp]", then add genice3-mcp to the client’s MCP config. Setup: MCP.
Requirements
- networkx >=2.0.dev20160901144005
- numpy >=2.0
- pairlist >=1.0.0
- cycless >=0.7
- graphstat >=0.3.3
- yaplotlib >=0.1.2
- openpyscad >=0.5.0
- pyyaml >=6.0
- jinja2 >=3.1.4
- cif2ice (>=0.4.1,<0.5.0)
- genice-core (>=1.6.0,<2.0.0)
Installation
GenIce3 is on PyPI. Install with pip:
pip install genice3
Uninstallation
pip uninstall genice3
References
See the manual → References for the full reference list (generated from citations.yaml).
Citation
If you use GenIce in your work, please cite as in CITATION.cff or:
M. Matsumoto, T. Yagasaki, and H. Tanaka, "GenIce: Hydrogen-Disordered Ice Generator", J. Comput. Chem. 39, 61-64 (2017). DOI: 10.1002/jcc.25077
M. Matsumoto, T. Yagasaki, and H. Tanaka, "GenIce-core: Efficient algorithm for generation of hydrogen-disordered ice structures.", J. Chem. Phys. 160, 094101 (2024). DOI:10.1063/5.0198056
How to contribute
GenIce is developed on GitHub (https://github.com/genice-dev/GenIce3). Feedback, bug fixes, and contributions are welcome.
License
MIT License. See LICENSE for details.
Metadata
Release files for genice3 3.0b8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genice3-3.0b8.tar.gz | 599.2 kB | Without provenance | Details for genice3-3.0b8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genice3-3.0b8-py3-none-any.whl | Python 3 | none | any | Details for genice3-3.0b8-py3-none-any.whl |
Total release size: 1.4 MB
Release files / genice3-3.0b8.tar.gz
| Download URL | genice3-3.0b8.tar.gz |
|---|---|
| Size | 599.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b5dc29761cf0efe492a31fea147b1d6f76905f34569f0cf175b8e3191daeea6
|
|
BLAKE2b-256 checksum How to use checksums |
3784075836823506883b10ffe3de174624880e69ca64e4f9c79e7ca3a4f5fd12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.13.15 Darwin/25.2.0
|
Release files / genice3-3.0b8-py3-none-any.whl
| Download URL | genice3-3.0b8-py3-none-any.whl |
|---|---|
| Size | 758.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fbea4ed8ffe94dbc83394b14e72a6176594e28038d58691c5bcad9c32491604
|
|
BLAKE2b-256 checksum How to use checksums |
0f70224934dd35f7f857b546fc5253edfd5a673e0c0a70b009efdd2b46599f3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.13.15 Darwin/25.2.0
|
Security for genice3 3.0b8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.