signatomics 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- signatomics-0.1.0/LICENSE +21 -0
- signatomics-0.1.0/PKG-INFO +117 -0
- signatomics-0.1.0/README.md +87 -0
- signatomics-0.1.0/pyproject.toml +53 -0
- signatomics-0.1.0/setup.cfg +4 -0
- signatomics-0.1.0/src/signatomics/__init__.py +10 -0
- signatomics-0.1.0/src/signatomics/olink/__init__.py +56 -0
- signatomics-0.1.0/src/signatomics/olink/bridge.py +400 -0
- signatomics-0.1.0/src/signatomics/olink/data/example_plate1.csv +4417 -0
- signatomics-0.1.0/src/signatomics/olink/data/example_plate2.csv +3681 -0
- signatomics-0.1.0/src/signatomics/olink/example.py +140 -0
- signatomics-0.1.0/src/signatomics/olink/plots.py +643 -0
- signatomics-0.1.0/src/signatomics/olink/prepare.py +144 -0
- signatomics-0.1.0/src/signatomics/olink/qc.py +464 -0
- signatomics-0.1.0/src/signatomics/olink/reader.py +583 -0
- signatomics-0.1.0/src/signatomics/olink/samples.py +101 -0
- signatomics-0.1.0/src/signatomics/olink/wide.py +135 -0
- signatomics-0.1.0/src/signatomics/signature/__init__.py +21 -0
- signatomics-0.1.0/src/signatomics/signature/_engine.py +207 -0
- signatomics-0.1.0/src/signatomics/signature/checks.py +147 -0
- signatomics-0.1.0/src/signatomics/signature/find.py +310 -0
- signatomics-0.1.0/src/signatomics/signature/plots.py +122 -0
- signatomics-0.1.0/src/signatomics/stats/__init__.py +25 -0
- signatomics-0.1.0/src/signatomics/stats/_common.py +86 -0
- signatomics-0.1.0/src/signatomics/stats/adjust.py +159 -0
- signatomics-0.1.0/src/signatomics/stats/compare.py +360 -0
- signatomics-0.1.0/src/signatomics/stats/correlate.py +100 -0
- signatomics-0.1.0/src/signatomics/stats/plots.py +131 -0
- signatomics-0.1.0/src/signatomics.egg-info/PKG-INFO +117 -0
- signatomics-0.1.0/src/signatomics.egg-info/SOURCES.txt +40 -0
- signatomics-0.1.0/src/signatomics.egg-info/dependency_links.txt +1 -0
- signatomics-0.1.0/src/signatomics.egg-info/requires.txt +12 -0
- signatomics-0.1.0/src/signatomics.egg-info/top_level.txt +1 -0
- signatomics-0.1.0/tests/test_olink_bridge.py +201 -0
- signatomics-0.1.0/tests/test_olink_example_prepare.py +100 -0
- signatomics-0.1.0/tests/test_olink_plots.py +121 -0
- signatomics-0.1.0/tests/test_olink_reader.py +142 -0
- signatomics-0.1.0/tests/test_olink_reader_wide.py +174 -0
- signatomics-0.1.0/tests/test_olink_samples_qc.py +232 -0
- signatomics-0.1.0/tests/test_package.py +24 -0
- signatomics-0.1.0/tests/test_signature.py +135 -0
- signatomics-0.1.0/tests/test_stats.py +292 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Elena Stamatelou
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: signatomics
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python tools for Olink (PEA) proteomics data: read, quality control, bridging, statistics and biomarker signatures, with every step reported.
|
|
5
|
+
Author: Elena Stamatelou
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Documentation, https://signatomics.elenastamatelou.com
|
|
8
|
+
Project-URL: Source, https://github.com/ElenaStamatelou/signatomics
|
|
9
|
+
Project-URL: Issues, https://github.com/ElenaStamatelou/signatomics/issues
|
|
10
|
+
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
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: numpy
|
|
20
|
+
Requires-Dist: pandas
|
|
21
|
+
Requires-Dist: scipy
|
|
22
|
+
Requires-Dist: scikit-learn
|
|
23
|
+
Requires-Dist: plotly
|
|
24
|
+
Provides-Extra: olink
|
|
25
|
+
Requires-Dist: pyarrow; extra == "olink"
|
|
26
|
+
Requires-Dist: openpyxl; extra == "olink"
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest; extra == "dev"
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# signatomics
|
|
32
|
+
|
|
33
|
+
**Python tools for Olink proteomics data: read, quality control, bridging, statistics and biomarker
|
|
34
|
+
signatures, with every step reported.**
|
|
35
|
+
|
|
36
|
+
signatomics is a family of Python tools for finding biomarker signatures in omics data. The
|
|
37
|
+
first module, `signatomics.olink`, works with **Olink (PEA) proteomics** data. More modules will
|
|
38
|
+
build on it later.
|
|
39
|
+
|
|
40
|
+
📖 **Documentation:** <https://signatomics.elenastamatelou.com>
|
|
41
|
+
|
|
42
|
+
> **Status:** first release (version 0.1.0). The Olink module reads data, controls its quality,
|
|
43
|
+
> bridges plates and adds your sample metadata; `signatomics.stats` compares groups and correlates;
|
|
44
|
+
> `signatomics.signature` finds and checks a biomarker signature.
|
|
45
|
+
> Function names may still change while the version starts with 0.
|
|
46
|
+
> Bugs, questions and ideas: [open an issue](https://github.com/ElenaStamatelou/signatomics/issues).
|
|
47
|
+
|
|
48
|
+
## What it does today
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
import signatomics.olink as so
|
|
52
|
+
|
|
53
|
+
data = so.read_npx(so.example_file()) # a synthetic example NPX file; your own: so.read_npx("my_npx_file.csv")
|
|
54
|
+
so.qc_report(data) # look at quality: your data stays as it is
|
|
55
|
+
clean = so.prepare(so.example_file()) # read, quality control, bridging and sample metadata in one call
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Each step also exists on its own, with every choice visible: `read_npx`,
|
|
59
|
+
`qc_report` → `apply_qc`, `bridge_check` → `bridge_plates`, `add_sample_info`.
|
|
60
|
+
|
|
61
|
+
- **Reading:** NPX files in long format and older wide (NPX Manager) files; .csv, .txt, .xlsx and .parquet;
|
|
62
|
+
European decimal commas, "No Data" cells, TRUE/FALSE written in other languages.
|
|
63
|
+
- **Quality control:** a quality check and charts that leave your data as it is, then your choices
|
|
64
|
+
applied, with every removal listed.
|
|
65
|
+
- **Bridging:** per-protein plate correction, with the detection limits shifted along, and an
|
|
66
|
+
independent PCA check.
|
|
67
|
+
- **Sample metadata:** adds your sample metadata (demographics, clinical data, ...) and reports every ID
|
|
68
|
+
without a match.
|
|
69
|
+
- **Analysis table:** `to_wide` gives one row per sample and one column per assay, the last step of preprocessing.
|
|
70
|
+
- **Statistics:** `compare_groups` and `correlate` on every assay, with effect sizes, 95% intervals and
|
|
71
|
+
an FDR; adjusting for covariates; `plot_volcano` and `plot_volcano_pair` (unadjusted | adjusted).
|
|
72
|
+
- **Biomarker signature:** `find_signature` with nested cross-validation (binary, multiclass or a
|
|
73
|
+
number), then `protein_contributions`, `learning_curve` and `selection_curve`.
|
|
74
|
+
- **Charts:** interactive Plotly charts in one style, colour-blind safe; sample IDs hidden by default.
|
|
75
|
+
|
|
76
|
+
## Install
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pip install "signatomics[olink] @ git+https://github.com/ElenaStamatelou/signatomics"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Requires Python 3.10 or newer. See [Start in 5 minutes](https://signatomics.elenastamatelou.com/start/).
|
|
83
|
+
|
|
84
|
+
## The family
|
|
85
|
+
|
|
86
|
+
| Module | Data | Status |
|
|
87
|
+
|---|---|---|
|
|
88
|
+
| `signatomics.olink` | Olink (PEA) proteomics: Target 96/48, Explore, Explore HT, Reveal | in development |
|
|
89
|
+
| `signatomics.stats` | compare groups, correlate, adjust for covariates: every assay, effect sizes, FDR | in development |
|
|
90
|
+
| `signatomics.signature` | biomarker signature with nested cross-validation, and its checks | in development |
|
|
91
|
+
| core | one standard table, combining data types | planned |
|
|
92
|
+
| more modules | e.g. ELISA, microbiome | ideas |
|
|
93
|
+
|
|
94
|
+
## Repository layout
|
|
95
|
+
|
|
96
|
+
| Folder | What |
|
|
97
|
+
|---|---|
|
|
98
|
+
| `src/signatomics/` | the package |
|
|
99
|
+
| `tests/` | automatic tests (`pytest`) |
|
|
100
|
+
| `analyses/` | worked analyses of public data (Jupyter notebooks) |
|
|
101
|
+
| `website/` | the documentation website (MkDocs Material) |
|
|
102
|
+
| `docs/` | function reference pointer, notes on the example datasets |
|
|
103
|
+
|
|
104
|
+
Public datasets stay outside this repository; the only data inside are the small, synthetic example
|
|
105
|
+
files of the package. See [docs/datasets.md](docs/datasets.md).
|
|
106
|
+
|
|
107
|
+
## Licence
|
|
108
|
+
|
|
109
|
+
MIT (see [LICENSE](LICENSE)). The synthetic example data in the package and on the website is
|
|
110
|
+
free to use for any purpose (CC0).
|
|
111
|
+
|
|
112
|
+
## Author
|
|
113
|
+
|
|
114
|
+
[Elena Stamatelou](https://elenastamatelou.com)
|
|
115
|
+
|
|
116
|
+
*signatomics is an independent project. It is not affiliated with or endorsed by Olink or Thermo
|
|
117
|
+
Fisher Scientific. Olink is a trademark of Thermo Fisher Scientific.*
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# signatomics
|
|
2
|
+
|
|
3
|
+
**Python tools for Olink proteomics data: read, quality control, bridging, statistics and biomarker
|
|
4
|
+
signatures, with every step reported.**
|
|
5
|
+
|
|
6
|
+
signatomics is a family of Python tools for finding biomarker signatures in omics data. The
|
|
7
|
+
first module, `signatomics.olink`, works with **Olink (PEA) proteomics** data. More modules will
|
|
8
|
+
build on it later.
|
|
9
|
+
|
|
10
|
+
📖 **Documentation:** <https://signatomics.elenastamatelou.com>
|
|
11
|
+
|
|
12
|
+
> **Status:** first release (version 0.1.0). The Olink module reads data, controls its quality,
|
|
13
|
+
> bridges plates and adds your sample metadata; `signatomics.stats` compares groups and correlates;
|
|
14
|
+
> `signatomics.signature` finds and checks a biomarker signature.
|
|
15
|
+
> Function names may still change while the version starts with 0.
|
|
16
|
+
> Bugs, questions and ideas: [open an issue](https://github.com/ElenaStamatelou/signatomics/issues).
|
|
17
|
+
|
|
18
|
+
## What it does today
|
|
19
|
+
|
|
20
|
+
```python
|
|
21
|
+
import signatomics.olink as so
|
|
22
|
+
|
|
23
|
+
data = so.read_npx(so.example_file()) # a synthetic example NPX file; your own: so.read_npx("my_npx_file.csv")
|
|
24
|
+
so.qc_report(data) # look at quality: your data stays as it is
|
|
25
|
+
clean = so.prepare(so.example_file()) # read, quality control, bridging and sample metadata in one call
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Each step also exists on its own, with every choice visible: `read_npx`,
|
|
29
|
+
`qc_report` → `apply_qc`, `bridge_check` → `bridge_plates`, `add_sample_info`.
|
|
30
|
+
|
|
31
|
+
- **Reading:** NPX files in long format and older wide (NPX Manager) files; .csv, .txt, .xlsx and .parquet;
|
|
32
|
+
European decimal commas, "No Data" cells, TRUE/FALSE written in other languages.
|
|
33
|
+
- **Quality control:** a quality check and charts that leave your data as it is, then your choices
|
|
34
|
+
applied, with every removal listed.
|
|
35
|
+
- **Bridging:** per-protein plate correction, with the detection limits shifted along, and an
|
|
36
|
+
independent PCA check.
|
|
37
|
+
- **Sample metadata:** adds your sample metadata (demographics, clinical data, ...) and reports every ID
|
|
38
|
+
without a match.
|
|
39
|
+
- **Analysis table:** `to_wide` gives one row per sample and one column per assay, the last step of preprocessing.
|
|
40
|
+
- **Statistics:** `compare_groups` and `correlate` on every assay, with effect sizes, 95% intervals and
|
|
41
|
+
an FDR; adjusting for covariates; `plot_volcano` and `plot_volcano_pair` (unadjusted | adjusted).
|
|
42
|
+
- **Biomarker signature:** `find_signature` with nested cross-validation (binary, multiclass or a
|
|
43
|
+
number), then `protein_contributions`, `learning_curve` and `selection_curve`.
|
|
44
|
+
- **Charts:** interactive Plotly charts in one style, colour-blind safe; sample IDs hidden by default.
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install "signatomics[olink] @ git+https://github.com/ElenaStamatelou/signatomics"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Requires Python 3.10 or newer. See [Start in 5 minutes](https://signatomics.elenastamatelou.com/start/).
|
|
53
|
+
|
|
54
|
+
## The family
|
|
55
|
+
|
|
56
|
+
| Module | Data | Status |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| `signatomics.olink` | Olink (PEA) proteomics: Target 96/48, Explore, Explore HT, Reveal | in development |
|
|
59
|
+
| `signatomics.stats` | compare groups, correlate, adjust for covariates: every assay, effect sizes, FDR | in development |
|
|
60
|
+
| `signatomics.signature` | biomarker signature with nested cross-validation, and its checks | in development |
|
|
61
|
+
| core | one standard table, combining data types | planned |
|
|
62
|
+
| more modules | e.g. ELISA, microbiome | ideas |
|
|
63
|
+
|
|
64
|
+
## Repository layout
|
|
65
|
+
|
|
66
|
+
| Folder | What |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `src/signatomics/` | the package |
|
|
69
|
+
| `tests/` | automatic tests (`pytest`) |
|
|
70
|
+
| `analyses/` | worked analyses of public data (Jupyter notebooks) |
|
|
71
|
+
| `website/` | the documentation website (MkDocs Material) |
|
|
72
|
+
| `docs/` | function reference pointer, notes on the example datasets |
|
|
73
|
+
|
|
74
|
+
Public datasets stay outside this repository; the only data inside are the small, synthetic example
|
|
75
|
+
files of the package. See [docs/datasets.md](docs/datasets.md).
|
|
76
|
+
|
|
77
|
+
## Licence
|
|
78
|
+
|
|
79
|
+
MIT (see [LICENSE](LICENSE)). The synthetic example data in the package and on the website is
|
|
80
|
+
free to use for any purpose (CC0).
|
|
81
|
+
|
|
82
|
+
## Author
|
|
83
|
+
|
|
84
|
+
[Elena Stamatelou](https://elenastamatelou.com)
|
|
85
|
+
|
|
86
|
+
*signatomics is an independent project. It is not affiliated with or endorsed by Olink or Thermo
|
|
87
|
+
Fisher Scientific. Olink is a trademark of Thermo Fisher Scientific.*
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# The package's "ID card": its name, version, description and which other packages it needs.
|
|
2
|
+
# Python's installer (pip) and the Python package index read this file.
|
|
3
|
+
|
|
4
|
+
[build-system]
|
|
5
|
+
requires = ["setuptools>=77"]
|
|
6
|
+
build-backend = "setuptools.build_meta"
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "signatomics"
|
|
10
|
+
version = "0.1.0"
|
|
11
|
+
description = "Python tools for Olink (PEA) proteomics data: read, quality control, bridging, statistics and biomarker signatures, with every step reported."
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
license = "MIT"
|
|
14
|
+
license-files = ["LICENSE"]
|
|
15
|
+
requires-python = ">=3.10"
|
|
16
|
+
authors = [{ name = "Elena Stamatelou" }]
|
|
17
|
+
# Search words on the Python package index; the name is the family, these say what it does today
|
|
18
|
+
keywords = ["olink", "proteomics", "npx", "pea", "proximity extension assay", "olink target 96",
|
|
19
|
+
"olink explore", "biomarkers", "quality control", "bridging", "batch correction",
|
|
20
|
+
"biomarker signature", "machine learning", "differential abundance"]
|
|
21
|
+
classifiers = [
|
|
22
|
+
"Development Status :: 3 - Alpha",
|
|
23
|
+
"Intended Audience :: Science/Research",
|
|
24
|
+
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Operating System :: OS Independent",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"numpy",
|
|
30
|
+
"pandas",
|
|
31
|
+
"scipy", # statistics (signatomics.stats)
|
|
32
|
+
"scikit-learn", # biomarker signature (signatomics.signature)
|
|
33
|
+
"plotly", # every chart
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Documentation = "https://signatomics.elenastamatelou.com"
|
|
38
|
+
Source = "https://github.com/ElenaStamatelou/signatomics"
|
|
39
|
+
Issues = "https://github.com/ElenaStamatelou/signatomics/issues"
|
|
40
|
+
|
|
41
|
+
[project.optional-dependencies]
|
|
42
|
+
# Extensions: installed only when needed, e.g. pip install signatomics[olink]
|
|
43
|
+
olink = ["pyarrow", "openpyxl"] # parquet (Explore HT / Reveal) and Excel files
|
|
44
|
+
dev = ["pytest"] # for running the automatic tests
|
|
45
|
+
|
|
46
|
+
[tool.setuptools.packages.find]
|
|
47
|
+
where = ["src"]
|
|
48
|
+
|
|
49
|
+
[tool.setuptools.package-data]
|
|
50
|
+
"signatomics.olink" = ["data/*.csv"] # the example NPX file
|
|
51
|
+
|
|
52
|
+
[tool.pytest.ini_options]
|
|
53
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""signatomics — multi-omics biomarker discovery.
|
|
2
|
+
|
|
3
|
+
From raw omics files to a biomarker signature for a chosen outcome:
|
|
4
|
+
|
|
5
|
+
1. read and clean each data type with its own rules (extensions, e.g. ``signatomics.olink``)
|
|
6
|
+
2. bring everything into one standard table and combine data types
|
|
7
|
+
3. find a small, honest biomarker signature (the core)
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""Olink extension: read and clean Olink data (Target 96/48, Explore, Explore HT, Reveal).
|
|
2
|
+
|
|
3
|
+
One function per step; a step that changes data has a function that looks (changes nothing) and
|
|
4
|
+
one that acts (returns a new table). Tables found while looking are inside the look result.
|
|
5
|
+
|
|
6
|
+
1. Read ``read_npx`` read an export (csv/txt/tsv, Excel, parquet; long or older
|
|
7
|
+
wide layout)
|
|
8
|
+
2. Match samples ``add_sample_info`` attach a sample list (clinical data), report what did not
|
|
9
|
+
match
|
|
10
|
+
3. Check quality ``qc_report`` look: warnings, empty, repeats, bridging samples, detection
|
|
11
|
+
limit (per group), odd samples, group mixed up with plate
|
|
12
|
+
``apply_qc`` act: remove low-quality data, every removal reported
|
|
13
|
+
4. Bridge plates ``bridge_check`` look: the plate difference on the bridging samples, and the
|
|
14
|
+
shift per protein and plate (``.factors``)
|
|
15
|
+
``bridge_plates`` act: put every plate on the scale of the reference plate
|
|
16
|
+
5. Analysis table ``to_wide`` one row per sample, one column per assay, sample metadata
|
|
17
|
+
first: the input of ``signatomics.stats``
|
|
18
|
+
|
|
19
|
+
Charts (Plotly): step 3 ``plot_below_lod``, ``plot_npx_strip``, ``plot_group_by_plate``,
|
|
20
|
+
``plot_sample_qc``; step 4 ``plot_bridge_shift``, ``plot_bridge_bland_altman``, ``plot_bridge_scatter``,
|
|
21
|
+
``plot_bridge_pca``.
|
|
22
|
+
|
|
23
|
+
In one call: ``prepare`` runs steps 1-4 with the defaults and prints one report.
|
|
24
|
+
To try it all without a file of your own: ``example_file()`` (a synthetic NPX file),
|
|
25
|
+
``example_data()`` (the same data as a table) and ``example_samples()`` (its sample metadata).
|
|
26
|
+
|
|
27
|
+
What the look functions return: ``QCReport`` and ``BridgeCheck``.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
from .bridge import BridgeCheck, bridge_check, bridge_plates
|
|
31
|
+
from .wide import to_wide
|
|
32
|
+
from .example import example_data, example_file, example_samples
|
|
33
|
+
from .plots import (plot_below_lod, plot_bridge_bland_altman, plot_bridge_pca, plot_bridge_scatter,
|
|
34
|
+
plot_bridge_shift,
|
|
35
|
+
plot_group_by_plate, plot_npx_strip, plot_sample_qc)
|
|
36
|
+
from .prepare import prepare
|
|
37
|
+
from .qc import QCReport, apply_qc, qc_report
|
|
38
|
+
from .reader import read_npx
|
|
39
|
+
from .samples import add_sample_info
|
|
40
|
+
|
|
41
|
+
__all__ = [
|
|
42
|
+
# 1. read, 2. match samples
|
|
43
|
+
"read_npx", "add_sample_info",
|
|
44
|
+
# 3. check quality
|
|
45
|
+
"qc_report", "apply_qc",
|
|
46
|
+
"plot_below_lod", "plot_npx_strip", "plot_group_by_plate", "plot_sample_qc",
|
|
47
|
+
# 4. bridge plates
|
|
48
|
+
"bridge_check", "bridge_plates",
|
|
49
|
+
"plot_bridge_shift", "plot_bridge_bland_altman", "plot_bridge_scatter", "plot_bridge_pca",
|
|
50
|
+
# 5. analysis table
|
|
51
|
+
"to_wide",
|
|
52
|
+
# in one call, and data to try it on
|
|
53
|
+
"prepare", "example_file", "example_data", "example_samples",
|
|
54
|
+
# results of the look functions
|
|
55
|
+
"QCReport", "BridgeCheck",
|
|
56
|
+
]
|