# PydSEAMSlib

> PydSEAMSlib builds `pydseamslib`, the Python bindings of d-SEAMS: CHILL and CHILL+ ice labels, topological cages, primitive rings, Steinhardt order parameters, radial distributions and site analyses of molecular simulation frames. One wheel provides `pydseams` (the `Frame` package), `pydseamslib` (which re-exports it), and `dseams` (the 2.14 API over the libseams C API).

Install with `pip install pydseamslib`; extras are `[ase]`, `[mdanalysis]` and `[solvis]`. The wheel carries `libseams` and `libseams_lang` from seams-core; the package version is the seams-core release it builds. Each page link below is on https://python.dseams.info/. Contributor instructions are in the contributing guide at the repository root.

## Getting started

- [pydseams](https://python.dseams.info/index.html): Overview, install and the three import names.
- [Quickstart](https://python.dseams.info/quickstart.html): Read a dump and print CHILL+ and cage scores.
- [Install](https://python.dseams.info/howto/install.html): Wheels, source builds and the optional extras.

## Tutorials

- [Classify ice](https://python.dseams.info/tutorials/classify-ice.html): Load a mixed ice-water dump, print CHILL+, score cages.
- [dseams](https://python.dseams.info/tutorials/dseams.html): CHILL+, q4/q6 and rings on NumPy arrays through `import dseams`.
- [Bulk ice](https://python.dseams.info/tutorials/bulk-ice.html): CHILL+ and cages on the mixed TIP4P frame from the CLI and Python, and why they differ.
- [Ice and clathrate](https://python.dseams.info/tutorials/ice-and-clathrate.html): CHILL+ stars and signature cages on sI.
- [Primitive rings](https://python.dseams.info/tutorials/rings.html): Hydrogen-bond and cutoff ring census.
- [Order parameters](https://python.dseams.info/tutorials/order-parameters.html): Steinhardt q_l and the Lechner-Dellago average.
- [Confined water](https://python.dseams.info/tutorials/confined-water.html): In-plane RDF, monolayer rings and prisms.
- [Paper figures](https://python.dseams.info/tutorials/paper-figures.html): The 2020 JCIM figure calls on the in-tree dumps.

## How-to guides

- [Install](https://python.dseams.info/howto/install.html): Wheels, source builds and optional extras.
- [ASE](https://python.dseams.info/howto/ase.html): Build a Frame from ASE Atoms and write labels back.
- [solvis](https://python.dseams.info/howto/solvis.html): View a classified frame with solvis.
- [Features](https://python.dseams.info/howto/features.html): Per-frame feature vectors from `pydseams.features`.
- [Tools](https://python.dseams.info/howto/tools.html): MDAnalysis, OVITO, and notebooks.
- [FAQ](https://python.dseams.info/howto/faq.html): Package names, formats, and compatibility.
- [Troubleshooting](https://python.dseams.info/howto/troubleshooting.html): Import, reader and type-selection errors.

## Reference

- [Python surface](https://python.dseams.info/reference/python.html): `Frame`, `IceCounts`, `CageScore`, `read`, ASE and `pydseams.features`.
- [API](https://python.dseams.info/api.html): Autodoc of the `pydseams` helpers and the `yoda` name table.
- [dseams and the C API](https://python.dseams.info/reference/dseams.html): `import dseams`, the `seams` ctypes package and the symbol table.
- [dseams module reference](https://python.dseams.info/lang/python.html): Autodoc of `dseams` and the cubic ice verification.
- [C-ABI Ice Ih census](https://python.dseams.info/lang/task-python.html): The ice Ih census in Python against `libseams_lang`.

## Explanation

- [The yoda surface](https://python.dseams.info/explanation/yoda-surface.html): Why the compiled module and the Python helpers are split.
- [Frame](https://python.dseams.info/explanation/frame.html): What a Frame holds and which graph each analysis reads.
- [Citation](https://python.dseams.info/explanation/citation.html): How to cite d-SEAMS and this package.

## Repository

- [README](https://github.com/d-SEAMS/PydSEAMSlib/blob/main/README.md): Install, the import names, upgrading from 2.11, development against seams-core and the release order.
- [CHANGELOG](https://github.com/d-SEAMS/PydSEAMSlib/blob/main/CHANGELOG.md): Released changes; unreleased fragments are in `changelog.d/`.

## Engine

- [d-SEAMS/seams-core](https://github.com/d-SEAMS/seams-core): The C++ engine, the libseams C API, the language-front ABI and the CLI.
- [seams.h](https://github.com/d-SEAMS/seams-core/blob/v2.14.2/include/seams.h): The C API header `dseams` and the `seams` ctypes package wrap.
- [docs.dseams.info](https://docs.dseams.info): d-SEAMS documentation: analyses, C API reference and every language front.

## Other language bindings

- [Dseams.jl](https://github.com/d-SEAMS/Dseams.jl): Julia.
- [dseams-r](https://github.com/d-SEAMS/dseams-r): R.
- [dseams-rs](https://github.com/d-SEAMS/dseams-rs): Rust.
- [dseams-fortran](https://github.com/d-SEAMS/dseams-fortran): Fortran.
- [yodaStruct](https://github.com/d-SEAMS/yodaStruct): Lua and Fennel.
