Metadata-Version: 2.5
Name: opengwasdb
Version: 0.19.0
Summary: Standalone storage and query engine for OpenGWAS-scale summary statistic stores
Project-URL: Homepage, https://github.com/opengwas/opengwasdb
Project-URL: Documentation, https://blog.opengwas.io/opengwasdb/
Project-URL: Repository, https://github.com/opengwas/opengwasdb
Project-URL: Issues, https://github.com/opengwas/opengwasdb/issues
Project-URL: Changelog, https://github.com/opengwas/opengwasdb/releases
Author: OpenGWASDB contributors
License-Expression: GPL-3.0-only
License-File: LICENSE
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.12
Requires-Dist: aiohttp>=3.10
Requires-Dist: fsspec>=2024.12
Requires-Dist: numcodecs>=0.17
Requires-Dist: numpy<2.5,>=1.26
Requires-Dist: pandas>=2.0
Requires-Dist: pyliftover>=0.4
Requires-Dist: pysam>=0.22
Requires-Dist: scikit-learn>=1.3
Requires-Dist: scipy>=1.11
Requires-Dist: threadpoolctl>=3.0
Requires-Dist: typer>=0.12
Requires-Dist: zarr<4,>=3.4
Provides-Extra: dev
Requires-Dist: hypothesis>=6.100; extra == 'dev'
Requires-Dist: lizard>=1.17; extra == 'dev'
Requires-Dist: lz4>=4; extra == 'dev'
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pgenlib>=0.90; extra == 'dev'
Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
Requires-Dist: pytest-xdist>=3.6; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: pyyaml>=6; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Provides-Extra: ld-build
Requires-Dist: pgenlib>=0.90; extra == 'ld-build'
Provides-Extra: ld-import
Requires-Dist: lz4>=4; extra == 'ld-import'
Description-Content-Type: text/markdown

# opengwasdb

Standalone storage and query engine for OpenGWAS-scale summary statistic stores.

The store contract:

- self-contained store releases;
- embedded SQLite for metadata and lookup indexes;
- Zarr for compressed association arrays;
- layout-independent build and query APIs;
- optional reference completion using an LD Reference Panel.

OpenGWASDB implements **Dense**, **Ragged**, and **Hybrid** layouts, with observed-only and reference completion; [docs/store-format-compatibility.md](./docs/store-format-compatibility.md) lists the `format_version`s each release reads and writes. Service and catalogue deployment are not part of this package.

For the broader OpenGWAS platform direction, see [docs/opengwas-roadmap.md](./docs/opengwas-roadmap.md).

## Repository status

Pre-release, working toward a release candidate (see
[Roadmap 1](https://github.com/opengwas/opengwasdb/issues/88)). Dense, Ragged
and Hybrid layouts build, query, validate and reference-complete; the store
format is not yet stable and existing Store Releases will need rebuilding
before the candidate — see [CHANGELOG.md](./CHANGELOG.md) for what changed and
what is known to be missing.

The design baseline lives in:

- [CONTEXT.md](./CONTEXT.md) — domain glossary; the authority on vocabulary
- [docs/spec/store-format.md](./docs/spec/store-format.md) — the store contract
- [docs/spec/ld-store.md](./docs/spec/ld-store.md) — the LD Store contract
- [docs/adr/](./docs/adr/) — decisions and their consequences
- [CONTRIBUTING.md](./CONTRIBUTING.md) — how work moves through the repository

Work lands through a pull request to `main`; **every merge is a tagged
version**, noted by its `changelog.d/` fragments.

## Getting started

`pip install opengwasdb` installs the library and CLI on Linux; see
[docs/install.md](./docs/install.md). [docs/getting-started.md](./docs/getting-started.md)
builds, validates and queries a tiny Store Release.

## Development

All Python dependencies and native tooling (bcftools) are managed by
[Pixi](https://pixi.sh) from `pyproject.toml`'s `[tool.pixi.*]` tables. A
fresh checkout needs only Pixi installed:

```bash
pixi run -e dev test        # pytest
pixi run -e dev lint        # ruff check .
pixi run -e dev typecheck   # mypy opengwasdb
```

For a script or REPL, use `pixi run -e dev python` rather than invoking a bare interpreter.

`pip install -e ".[dev]"` also works, without `bcftools`. The version comes
from the `v*` tags; clone with them.

## Licence

GPL-3.0-only. See [LICENSE](./LICENSE). Copyright © University of Bristol.
Contributions from outside the University of Bristol need a signed
[Contributor License Agreement](./CLA.md). Versions before this change were
released under the Sustainable Use License, version 1.0, and keep it.
