Metadata-Version: 2.4
Name: signatomics
Version: 0.1.0
Summary: Python tools for Olink (PEA) proteomics data: read, quality control, bridging, statistics and biomarker signatures, with every step reported.
Author: Elena Stamatelou
License-Expression: MIT
Project-URL: Documentation, https://signatomics.elenastamatelou.com
Project-URL: Source, https://github.com/ElenaStamatelou/signatomics
Project-URL: Issues, https://github.com/ElenaStamatelou/signatomics/issues
Keywords: olink,proteomics,npx,pea,proximity extension assay,olink target 96,olink explore,biomarkers,quality control,bridging,batch correction,biomarker signature,machine learning,differential abundance
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: scipy
Requires-Dist: scikit-learn
Requires-Dist: plotly
Provides-Extra: olink
Requires-Dist: pyarrow; extra == "olink"
Requires-Dist: openpyxl; extra == "olink"
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# signatomics

**Python tools for Olink proteomics data: read, quality control, bridging, statistics and biomarker
signatures, with every step reported.**

signatomics is a family of Python tools for finding biomarker signatures in omics data. The
first module, `signatomics.olink`, works with **Olink (PEA) proteomics** data. More modules will
build on it later.

📖 **Documentation:** <https://signatomics.elenastamatelou.com>

> **Status:** first release (version 0.1.0). The Olink module reads data, controls its quality,
> bridges plates and adds your sample metadata; `signatomics.stats` compares groups and correlates;
> `signatomics.signature` finds and checks a biomarker signature.
> Function names may still change while the version starts with 0.
> Bugs, questions and ideas: [open an issue](https://github.com/ElenaStamatelou/signatomics/issues).

## What it does today

```python
import signatomics.olink as so

data  = so.read_npx(so.example_file())    # a synthetic example NPX file; your own: so.read_npx("my_npx_file.csv")
so.qc_report(data)                        # look at quality: your data stays as it is
clean = so.prepare(so.example_file())     # read, quality control, bridging and sample metadata in one call
```

Each step also exists on its own, with every choice visible: `read_npx`,
`qc_report` → `apply_qc`, `bridge_check` → `bridge_plates`, `add_sample_info`.

- **Reading:** NPX files in long format and older wide (NPX Manager) files; .csv, .txt, .xlsx and .parquet;
  European decimal commas, "No Data" cells, TRUE/FALSE written in other languages.
- **Quality control:** a quality check and charts that leave your data as it is, then your choices
  applied, with every removal listed.
- **Bridging:** per-protein plate correction, with the detection limits shifted along, and an
  independent PCA check.
- **Sample metadata:** adds your sample metadata (demographics, clinical data, ...) and reports every ID
  without a match.
- **Analysis table:** `to_wide` gives one row per sample and one column per assay, the last step of preprocessing.
- **Statistics:** `compare_groups` and `correlate` on every assay, with effect sizes, 95% intervals and
  an FDR; adjusting for covariates; `plot_volcano` and `plot_volcano_pair` (unadjusted | adjusted).
- **Biomarker signature:** `find_signature` with nested cross-validation (binary, multiclass or a
  number), then `protein_contributions`, `learning_curve` and `selection_curve`.
- **Charts:** interactive Plotly charts in one style, colour-blind safe; sample IDs hidden by default.

## Install

```bash
pip install "signatomics[olink] @ git+https://github.com/ElenaStamatelou/signatomics"
```

Requires Python 3.10 or newer. See [Start in 5 minutes](https://signatomics.elenastamatelou.com/start/).

## The family

| Module | Data | Status |
|---|---|---|
| `signatomics.olink` | Olink (PEA) proteomics: Target 96/48, Explore, Explore HT, Reveal | in development |
| `signatomics.stats` | compare groups, correlate, adjust for covariates: every assay, effect sizes, FDR | in development |
| `signatomics.signature` | biomarker signature with nested cross-validation, and its checks | in development |
| core | one standard table, combining data types | planned |
| more modules | e.g. ELISA, microbiome | ideas |

## Repository layout

| Folder | What |
|---|---|
| `src/signatomics/` | the package |
| `tests/` | automatic tests (`pytest`) |
| `analyses/` | worked analyses of public data (Jupyter notebooks) |
| `website/` | the documentation website (MkDocs Material) |
| `docs/` | function reference pointer, notes on the example datasets |

Public datasets stay outside this repository; the only data inside are the small, synthetic example
files of the package. See [docs/datasets.md](docs/datasets.md).

## Licence

MIT (see [LICENSE](LICENSE)). The synthetic example data in the package and on the website is
free to use for any purpose (CC0).

## Author

[Elena Stamatelou](https://elenastamatelou.com)

*signatomics is an independent project. It is not affiliated with or endorsed by Olink or Thermo
Fisher Scientific. Olink is a trademark of Thermo Fisher Scientific.*
