# 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. The wheel installs one import name, `pydseams`; load a trajectory with `pydseams.read` or build a `Frame` from arrays or ASE.

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 `pydseams` import.
- [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.
- [Analyse NumPy coordinates](https://python.dseams.info/tutorials/dseams.html): CHILL+, q6 via `steinhardt(6)`, rings, and cages on NumPy arrays through `pydseams.Frame.from_arrays`.
- [Bulk ice](https://python.dseams.info/tutorials/bulk-ice.html): Compare cutoff CHILL+, mutual-4 CHILL+, and cages on mixed TIP4P and cubic ice.
- [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 figshare datasets and reference dumps the page fetches.

## 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.
- [Native array bindings](https://python.dseams.info/reference/dseams.html): The private `pydseams._native` adapters the engine tests use, and their symbol table.
- [Python package reference](https://python.dseams.info/lang/python.html): Autodoc of `pydseams`.
- [C-ABI Ice Ih census](https://python.dseams.info/lang/task-python.html): The ice Ih census in Python against `libseams_lang`.

## Explanation

- [The Python interface](https://python.dseams.info/explanation/yoda-surface.html): How readers, frames, and trajectory functions fit together.
- [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 and import `pydseams`, migrate older Python calls, develop against seams-core, and follow the release path.
- [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/09e497046a2c4f9012d97862d177a52272889c37/include/seams.h): The C API header from the seams-core revision in `subprojects/seams-core.wrap`, included by `pydseams._native`.
- [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.
