Metadata-Version: 2.5
Name: tadamz-report
Version: 0.1.0a1
Summary: Shared plotting and report generation for tadaMZ analysis results.
Project-URL: Homepage, https://gitlab.com/j.hemmann/tadamz-report
Project-URL: Issues, https://gitlab.com/j.hemmann/tadamz-report/-/issues
Author-email: Jethro Hemmann <jethro.hemmann@leibniz-hki.de>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: matplotlib>=3.8
Requires-Dist: numpy>=2
Requires-Dist: pandas>=2.2
Requires-Dist: seaborn>=0.13
Requires-Dist: tadamz>=1.0.0a23
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == 'dev'
Requires-Dist: emzed>=3.0.9; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Provides-Extra: test
Requires-Dist: emzed>=3.0.9; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# tadaMZ report

Create plots and PDF reports from tadaMZ LC–MS(/MS) analysis results in scripts
and notebooks.

- **Global reports:** an overview of signal intensity and peak quality across samples.
- **Compound-wise reports:** abundance, retention time, and peak width for individual compounds.
- **Calibration reports:** fitted calibration curves and sample response distributions.

## Generate reports

Pass the final result table from your tadaMZ workflow to `generate_report`:

```python
from pathlib import Path
from tadamz_report.generate_report import generate_report

Path("reports").mkdir(exist_ok=True)
global_figures, compound_figures, calibration_figures = generate_report(
    result_table,
    pdf_folder="reports",
    config=config,
)
```

The reports are saved in the `reports` folder. The optional `config` argument
accepts your workflow configuration and selects the response values shown in
calibration sample distributions.

The function also returns Matplotlib figures for customization or saving
individually. Omit `pdf_folder` to generate figures without writing PDF reports.

## Publishing releases

GitLab CI runs tests on Python 3.11 and 3.14, then builds and validates the wheel
and source distribution. Pipelines run for merge requests, the default branch,
tags, and manual runs. Only tag pipelines publish to PyPI, after tests and package
validation succeed. The tag must exactly match the version in `pyproject.toml`
(for example, `0.1.0a1`, without a `v` prefix).

To release, update the version in `pyproject.toml` and the changelog, commit the
changes, and push a matching tag:

```sh
git tag 0.1.0a1
git push origin 0.1.0a1
```

Use the new version in both commands for subsequent releases. Check that the
tag pipeline's `publish:pypi` job succeeds before considering the release complete.

## License

Licensed under the [MIT License](LICENSE).
