Metadata-Version: 2.5
Name: tadamz-report
Version: 0.1.0a2
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.

## License

Licensed under the [MIT License](LICENSE).
