Metadata-Version: 2.4
Name: reader-workbench
Version: 1.0.2
Summary: Validated, traceable analysis workflows for experimental instrument data
Author: Eric J. South
License-Expression: MIT
Project-URL: Documentation, https://github.com/e-south/reader/tree/main/docs
Project-URL: Issues, https://github.com/e-south/reader/issues
Project-URL: Repository, https://github.com/e-south/reader
Keywords: data-analysis,data-pipelines,scientific-computing,workbench
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26
Requires-Dist: matplotlib>=3.8
Requires-Dist: pandas>=2.1
Requires-Dist: pydantic>=2.6
Requires-Dist: pyyaml>=6.0.2
Requires-Dist: typer>=0.16.0
Requires-Dist: click>=8.3.3
Requires-Dist: rich>=13.7
Requires-Dist: pyarrow>=23.0.1
Requires-Dist: openpyxl>=3.1
Requires-Dist: seaborn>=0.13
Requires-Dist: pillow>=13.0.0
Requires-Dist: polars>=1.36.1
Requires-Dist: flowio>=1.4.0
Requires-Dist: filelock<5,>=4.2.4
Dynamic: license-file

# ![Reader data workbench](https://raw.githubusercontent.com/e-south/reader/4b321dce7d12ec12884b4ca70e75e59cad2b5d35/assets/reader-banner.png)

[![Checks on main](https://github.com/e-south/reader/actions/workflows/checks.yaml/badge.svg?branch=main)](https://github.com/e-south/reader/actions/workflows/checks.yaml?query=branch%3Amain)
[![Coverage on main](https://codecov.io/gh/e-south/reader/branch/main/graph/badge.svg)](https://app.codecov.io/gh/e-south/reader/tree/main)
[![PyPI](https://img.shields.io/pypi/v/reader-workbench.svg)](https://pypi.org/project/reader-workbench/)
[![Supported Python](https://img.shields.io/pypi/pyversions/reader-workbench.svg)](https://docs.python.org/3.12/)
[![MIT license](https://img.shields.io/badge/license-MIT-3D8068.svg)](https://github.com/e-south/reader/blob/main/LICENSE)

Reader turns plate-reader workbooks and flow-cytometry files into tables you
can plot, export, or open in a notebook. Each experiment keeps its raw files
and sample metadata in `inputs/`. Its `config.yaml` selects a protocol and
declares how to process the measurements. Reader writes results to `outputs/`
and records which inputs and settings produced them.

## Try the CLI

Install the `reader-workbench` package with [uv](https://docs.astral.sh/uv/).
The CLI is `reader` and the Python module is `reader_workbench`.

```bash
uv tool install reader-workbench --python 3.12
reader demo
reader protocols
```

`demo` prints a command tour. To try a protocol, run these commands in an
empty working directory. They create a single-reporter experiment and check
its configuration before you supply measurements.

```bash
reader init ./experiments/first_plate --protocol plate_reader/single_reporter_screen
reader validate ./experiments/first_plate/config.yaml --no-files
```

To produce your first records, follow [Run a sample plate](https://github.com/e-south/reader/blob/main/docs/guides/demo.md).
The example supplies two small workbooks, runs the pipeline, and verifies
the saved measurements against the inputs.

## Use Reader with your data

- [Getting started](https://github.com/e-south/reader/blob/main/docs/guides/getting_started.md) explains what goes in the experiment directory and what each preflight check covers.
- [Common tasks](https://github.com/e-south/reader/blob/main/docs/guides/common_routes.md) covers finding experiments, running a pipeline, generating outputs, and scripting the CLI.
- [Python API](https://github.com/e-south/reader/blob/main/docs/core/python_api.md) shows how to open an experiment and read a verified dataframe by record ID.
- [Documentation index](https://github.com/e-south/reader/blob/main/docs/README.md) links to protocol guides, provenance, and maintainer references.

## Develop from a checkout

```bash
git clone https://github.com/e-south/reader.git
cd reader
uv sync --locked --group dev
uv run reader demo
```

Use `uv run reader` in the checkout to test local changes. See the
[repository change gate](https://github.com/e-south/reader/blob/main/docs/repo-change-gate.md)
for the checks to run before submitting a change.
