decoupler 1.9.2__tar.gz → 2.0.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.
- decoupler-2.0.0/.codecov.yaml +17 -0
- decoupler-2.0.0/.cruft.json +43 -0
- decoupler-2.0.0/.editorconfig +15 -0
- decoupler-2.0.0/.github/ISSUE_TEMPLATE/bug_report.yml +94 -0
- decoupler-2.0.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
- decoupler-2.0.0/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
- decoupler-2.0.0/.github/workflows/build.yaml +33 -0
- decoupler-2.0.0/.github/workflows/release.yaml +34 -0
- decoupler-2.0.0/.github/workflows/test.yaml +99 -0
- decoupler-2.0.0/.gitignore +23 -0
- decoupler-2.0.0/.pre-commit-config.yaml +47 -0
- decoupler-2.0.0/.readthedocs.yaml +16 -0
- decoupler-2.0.0/.vscode/extensions.json +18 -0
- decoupler-2.0.0/.vscode/launch.json +33 -0
- decoupler-2.0.0/.vscode/settings.json +18 -0
- decoupler-2.0.0/CHANGELOG.md +76 -0
- decoupler-2.0.0/LICENSE +29 -0
- decoupler-2.0.0/PKG-INFO +177 -0
- decoupler-2.0.0/README.md +96 -0
- decoupler-2.0.0/biome.jsonc +16 -0
- decoupler-2.0.0/docs/_static/css/custom.css +14 -0
- decoupler-2.0.0/docs/_static/images/logo.png +0 -0
- decoupler-2.0.0/docs/_static/images/mlm.png +0 -0
- decoupler-2.0.0/docs/_static/images/ora.png +0 -0
- decoupler-2.0.0/docs/_static/images/ulm.png +0 -0
- decoupler-2.0.0/docs/_templates/.gitkeep +0 -0
- decoupler-2.0.0/docs/_templates/autosummary/class.rst +61 -0
- decoupler-2.0.0/docs/api.md +188 -0
- decoupler-2.0.0/docs/changelog.md +3 -0
- decoupler-2.0.0/docs/conf.py +134 -0
- decoupler-2.0.0/docs/extensions/typed_returns.py +32 -0
- decoupler-2.0.0/docs/index.md +13 -0
- decoupler-2.0.0/docs/notebooks/bench/index.md +4 -0
- decoupler-2.0.0/docs/notebooks/bench/rna.ipynb +2241 -0
- decoupler-2.0.0/docs/notebooks/bulk/index.md +4 -0
- decoupler-2.0.0/docs/notebooks/bulk/rna.ipynb +2325 -0
- decoupler-2.0.0/docs/notebooks/example.ipynb +1139 -0
- decoupler-2.0.0/docs/notebooks/index.md +9 -0
- decoupler-2.0.0/docs/notebooks/omnipath/index.md +5 -0
- decoupler-2.0.0/docs/notebooks/omnipath/licenses.ipynb +699 -0
- decoupler-2.0.0/docs/notebooks/omnipath/orthologs.ipynb +937 -0
- decoupler-2.0.0/docs/notebooks/scell/index.md +6 -0
- decoupler-2.0.0/docs/notebooks/scell/rna_psbk.ipynb +2525 -0
- decoupler-2.0.0/docs/notebooks/scell/rna_pstime.ipynb +2591 -0
- decoupler-2.0.0/docs/notebooks/scell/rna_sc.ipynb +3411 -0
- decoupler-2.0.0/docs/notebooks/spatial/index.md +4 -0
- decoupler-2.0.0/docs/notebooks/spatial/rna_visium.ipynb +2144 -0
- decoupler-2.0.0/docs/references.bib +474 -0
- decoupler-2.0.0/docs/references.md +5 -0
- decoupler-2.0.0/pyproject.toml +149 -0
- decoupler-2.0.0/src/decoupler/_Method.py +95 -0
- decoupler-2.0.0/src/decoupler/_Plotter.py +50 -0
- decoupler-2.0.0/src/decoupler/__init__.py +7 -0
- decoupler-2.0.0/src/decoupler/_datatype.py +12 -0
- decoupler-2.0.0/src/decoupler/_docs.py +250 -0
- decoupler-2.0.0/src/decoupler/_download.py +33 -0
- decoupler-2.0.0/src/decoupler/_log.py +31 -0
- decoupler-2.0.0/src/decoupler/bm/__init__.py +3 -0
- decoupler-2.0.0/src/decoupler/bm/_pp.py +112 -0
- decoupler-2.0.0/src/decoupler/bm/_run.py +360 -0
- decoupler-2.0.0/src/decoupler/bm/metric/__init__.py +10 -0
- decoupler-2.0.0/src/decoupler/bm/metric/_auc.py +107 -0
- decoupler-2.0.0/src/decoupler/bm/metric/_fscore.py +32 -0
- decoupler-2.0.0/src/decoupler/bm/metric/_hmean.py +75 -0
- decoupler-2.0.0/src/decoupler/bm/metric/_qrank.py +26 -0
- decoupler-2.0.0/src/decoupler/bm/pl/__init__.py +5 -0
- decoupler-2.0.0/src/decoupler/bm/pl/_auc.py +72 -0
- decoupler-2.0.0/src/decoupler/bm/pl/_bar.py +63 -0
- decoupler-2.0.0/src/decoupler/bm/pl/_format.py +38 -0
- decoupler-2.0.0/src/decoupler/bm/pl/_fscore.py +53 -0
- decoupler-2.0.0/src/decoupler/bm/pl/_qrank.py +74 -0
- decoupler-2.0.0/src/decoupler/bm/pl/_summary.py +138 -0
- decoupler-2.0.0/src/decoupler/ds/__init__.py +5 -0
- decoupler-2.0.0/src/decoupler/ds/_bulk.py +95 -0
- decoupler-2.0.0/src/decoupler/ds/_scell.py +169 -0
- decoupler-2.0.0/src/decoupler/ds/_spatial.py +104 -0
- decoupler-2.0.0/src/decoupler/ds/_toy.py +147 -0
- decoupler-2.0.0/src/decoupler/ds/_utils.py +33 -0
- decoupler-2.0.0/src/decoupler/mt/__init__.py +19 -0
- decoupler-2.0.0/src/decoupler/mt/_aucell.py +119 -0
- decoupler-2.0.0/src/decoupler/mt/_consensus.py +106 -0
- decoupler-2.0.0/src/decoupler/mt/_decouple.py +68 -0
- decoupler-2.0.0/src/decoupler/mt/_gsea.py +276 -0
- decoupler-2.0.0/src/decoupler/mt/_gsva.py +412 -0
- decoupler-2.0.0/src/decoupler/mt/_mdt.py +74 -0
- decoupler-2.0.0/src/decoupler/mt/_methods.py +26 -0
- decoupler-2.0.0/src/decoupler/mt/_mlm.py +114 -0
- decoupler-2.0.0/src/decoupler/mt/_ora.py +246 -0
- decoupler-2.0.0/src/decoupler/mt/_run.py +94 -0
- decoupler-2.0.0/src/decoupler/mt/_udt.py +79 -0
- decoupler-2.0.0/src/decoupler/mt/_ulm.py +120 -0
- decoupler-2.0.0/src/decoupler/mt/_viper.py +242 -0
- decoupler-2.0.0/src/decoupler/mt/_waggr.py +200 -0
- decoupler-2.0.0/src/decoupler/mt/_zscore.py +59 -0
- decoupler-2.0.0/src/decoupler/op/__init__.py +6 -0
- decoupler-2.0.0/src/decoupler/op/_collectri.py +57 -0
- decoupler-2.0.0/src/decoupler/op/_dorothea.py +103 -0
- decoupler-2.0.0/src/decoupler/op/_dtype.py +19 -0
- decoupler-2.0.0/src/decoupler/op/_hallmark.py +44 -0
- decoupler-2.0.0/src/decoupler/op/_progeny.py +76 -0
- decoupler-2.0.0/src/decoupler/op/_resource.py +89 -0
- decoupler-2.0.0/src/decoupler/op/_translate.py +180 -0
- decoupler-2.0.0/src/decoupler/pl/__init__.py +13 -0
- decoupler-2.0.0/src/decoupler/pl/_barplot.py +111 -0
- decoupler-2.0.0/src/decoupler/pl/_dotplot.py +117 -0
- decoupler-2.0.0/src/decoupler/pl/_filter_by_expr.py +74 -0
- decoupler-2.0.0/src/decoupler/pl/_filter_by_prop.py +54 -0
- decoupler-2.0.0/src/decoupler/pl/_filter_samples.py +85 -0
- decoupler-2.0.0/src/decoupler/pl/_leading_edge.py +122 -0
- decoupler-2.0.0/src/decoupler/pl/_network.py +308 -0
- decoupler-2.0.0/src/decoupler/pl/_obsbar.py +61 -0
- decoupler-2.0.0/src/decoupler/pl/_obsm.py +180 -0
- decoupler-2.0.0/src/decoupler/pl/_order.py +89 -0
- decoupler-2.0.0/src/decoupler/pl/_order_targets.py +173 -0
- decoupler-2.0.0/src/decoupler/pl/_source_targets.py +111 -0
- decoupler-2.0.0/src/decoupler/pl/_volcano.py +122 -0
- decoupler-2.0.0/src/decoupler/pp/__init__.py +4 -0
- decoupler-2.0.0/src/decoupler/pp/anndata.py +737 -0
- decoupler-2.0.0/src/decoupler/pp/data.py +133 -0
- decoupler-2.0.0/src/decoupler/pp/net.py +334 -0
- decoupler-2.0.0/src/decoupler/tl/__init__.py +3 -0
- decoupler-2.0.0/src/decoupler/tl/_rankby_group.py +115 -0
- decoupler-2.0.0/src/decoupler/tl/_rankby_obsm.py +101 -0
- decoupler-2.0.0/src/decoupler/tl/_rankby_order.py +62 -0
- decoupler-2.0.0/tests/conftest.py +101 -0
- decoupler-2.0.0/tests/ds/test_bulk.py +25 -0
- decoupler-2.0.0/tests/ds/test_scell.py +61 -0
- decoupler-2.0.0/tests/ds/test_spatial.py +18 -0
- decoupler-2.0.0/tests/ds/test_toy.py +101 -0
- decoupler-2.0.0/tests/ds/test_utils.py +18 -0
- decoupler-2.0.0/tests/mt/test_aucell.py +60 -0
- decoupler-2.0.0/tests/mt/test_consensus.py +17 -0
- decoupler-2.0.0/tests/mt/test_decouple.py +26 -0
- decoupler-2.0.0/tests/mt/test_gsea.py +54 -0
- decoupler-2.0.0/tests/mt/test_gsva.py +164 -0
- decoupler-2.0.0/tests/mt/test_mdt.py +24 -0
- decoupler-2.0.0/tests/mt/test_methods.py +11 -0
- decoupler-2.0.0/tests/mt/test_mlm.py +25 -0
- decoupler-2.0.0/tests/mt/test_ora.py +75 -0
- decoupler-2.0.0/tests/mt/test_run.py +59 -0
- decoupler-2.0.0/tests/mt/test_udt.py +24 -0
- decoupler-2.0.0/tests/mt/test_ulm.py +56 -0
- decoupler-2.0.0/tests/mt/test_viper.py +81 -0
- decoupler-2.0.0/tests/mt/test_waggr.py +26 -0
- decoupler-2.0.0/tests/mt/test_zscore.py +18 -0
- decoupler-2.0.0/tests/op/test_collectri.py +22 -0
- decoupler-2.0.0/tests/op/test_dorothea.py +24 -0
- decoupler-2.0.0/tests/op/test_dtype.py +25 -0
- decoupler-2.0.0/tests/op/test_hallmark.py +13 -0
- decoupler-2.0.0/tests/op/test_progeny.py +29 -0
- decoupler-2.0.0/tests/op/test_resource.py +22 -0
- decoupler-2.0.0/tests/op/test_translate.py +59 -0
- decoupler-2.0.0/tests/pl/test_barplot.py +37 -0
- decoupler-2.0.0/tests/pl/test_dotplot.py +32 -0
- decoupler-2.0.0/tests/pl/test_filter_by_expr.py +12 -0
- decoupler-2.0.0/tests/pl/test_filter_by_prop.py +12 -0
- decoupler-2.0.0/tests/pl/test_filter_samples.py +23 -0
- decoupler-2.0.0/tests/pl/test_leading_edge.py +32 -0
- decoupler-2.0.0/tests/pl/test_network.py +77 -0
- decoupler-2.0.0/tests/pl/test_obsbar.py +25 -0
- decoupler-2.0.0/tests/pl/test_obsm.py +67 -0
- decoupler-2.0.0/tests/pl/test_order.py +26 -0
- decoupler-2.0.0/tests/pl/test_order_targets.py +38 -0
- decoupler-2.0.0/tests/pl/test_source_targets.py +14 -0
- decoupler-2.0.0/tests/pl/test_volcano.py +29 -0
- decoupler-2.0.0/tests/pp/test_anndata.py +237 -0
- decoupler-2.0.0/tests/pp/test_data.py +28 -0
- decoupler-2.0.0/tests/pp/test_net.py +222 -0
- decoupler-2.0.0/tests/test_download.py +30 -0
- decoupler-2.0.0/tests/test_version.py +7 -0
- decoupler-2.0.0/tests/tl/test_rankby_group.py +36 -0
- decoupler-2.0.0/tests/tl/test_rankby_obsm.py +28 -0
- decoupler-2.0.0/tests/tl/test_rankby_order.py +31 -0
- decoupler-1.9.2/LICENSE +0 -674
- decoupler-1.9.2/PKG-INFO +0 -95
- decoupler-1.9.2/README.md +0 -55
- decoupler-1.9.2/decoupler/__init__.py +0 -39
- decoupler-1.9.2/decoupler/benchmark.py +0 -252
- decoupler-1.9.2/decoupler/consensus.py +0 -106
- decoupler-1.9.2/decoupler/decouple.py +0 -237
- decoupler-1.9.2/decoupler/method_aucell.py +0 -149
- decoupler-1.9.2/decoupler/method_gsea.py +0 -368
- decoupler-1.9.2/decoupler/method_gsva.py +0 -324
- decoupler-1.9.2/decoupler/method_mdt.py +0 -119
- decoupler-1.9.2/decoupler/method_mlm.py +0 -133
- decoupler-1.9.2/decoupler/method_ora.py +0 -313
- decoupler-1.9.2/decoupler/method_udt.py +0 -116
- decoupler-1.9.2/decoupler/method_ulm.py +0 -126
- decoupler-1.9.2/decoupler/method_viper.py +0 -311
- decoupler-1.9.2/decoupler/method_wmean.py +0 -179
- decoupler-1.9.2/decoupler/method_wsum.py +0 -175
- decoupler-1.9.2/decoupler/method_zscore.py +0 -89
- decoupler-1.9.2/decoupler/metrics.py +0 -291
- decoupler-1.9.2/decoupler/omnip.py +0 -440
- decoupler-1.9.2/decoupler/plotting.py +0 -1909
- decoupler-1.9.2/decoupler/pre.py +0 -310
- decoupler-1.9.2/decoupler/tests/test_aucell.py +0 -39
- decoupler-1.9.2/decoupler/tests/test_benchmark.py +0 -89
- decoupler-1.9.2/decoupler/tests/test_consensus.py +0 -31
- decoupler-1.9.2/decoupler/tests/test_decouple.py +0 -64
- decoupler-1.9.2/decoupler/tests/test_gsea.py +0 -49
- decoupler-1.9.2/decoupler/tests/test_gsva.py +0 -96
- decoupler-1.9.2/decoupler/tests/test_mdt.py +0 -52
- decoupler-1.9.2/decoupler/tests/test_metrics.py +0 -122
- decoupler-1.9.2/decoupler/tests/test_mlm.py +0 -33
- decoupler-1.9.2/decoupler/tests/test_omnip.py +0 -62
- decoupler-1.9.2/decoupler/tests/test_ora.py +0 -61
- decoupler-1.9.2/decoupler/tests/test_plotting.py +0 -495
- decoupler-1.9.2/decoupler/tests/test_pre.py +0 -141
- decoupler-1.9.2/decoupler/tests/test_udt.py +0 -53
- decoupler-1.9.2/decoupler/tests/test_ulm.py +0 -84
- decoupler-1.9.2/decoupler/tests/test_utils.py +0 -162
- decoupler-1.9.2/decoupler/tests/test_utilsanndata.py +0 -585
- decoupler-1.9.2/decoupler/tests/test_utilsbenchmark.py +0 -421
- decoupler-1.9.2/decoupler/tests/test_viper.py +0 -43
- decoupler-1.9.2/decoupler/tests/test_wmean.py +0 -33
- decoupler-1.9.2/decoupler/tests/test_wsum.py +0 -33
- decoupler-1.9.2/decoupler/tests/test_zscore.py +0 -52
- decoupler-1.9.2/decoupler/utils.py +0 -561
- decoupler-1.9.2/decoupler/utils_anndata.py +0 -1120
- decoupler-1.9.2/decoupler/utils_benchmark.py +0 -397
- decoupler-1.9.2/pyproject.toml +0 -105
- /decoupler-1.9.2/decoupler/tests/__init__.py → /decoupler-2.0.0/docs/_static/.gitkeep +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Based on pydata/xarray
|
|
2
|
+
codecov:
|
|
3
|
+
require_ci_to_pass: no
|
|
4
|
+
|
|
5
|
+
coverage:
|
|
6
|
+
status:
|
|
7
|
+
project:
|
|
8
|
+
default:
|
|
9
|
+
# Require 1% coverage, i.e., always succeed
|
|
10
|
+
target: 1
|
|
11
|
+
patch: false
|
|
12
|
+
changes: false
|
|
13
|
+
|
|
14
|
+
comment:
|
|
15
|
+
layout: diff, flags, files
|
|
16
|
+
behavior: once
|
|
17
|
+
require_base: no
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "https://github.com/scverse/cookiecutter-scverse",
|
|
3
|
+
"commit": "5842d5cb8510e1d4a037a8f772630d51ec86de96",
|
|
4
|
+
"checkout": null,
|
|
5
|
+
"context": {
|
|
6
|
+
"cookiecutter": {
|
|
7
|
+
"project_name": "decoupler",
|
|
8
|
+
"package_name": "decoupler",
|
|
9
|
+
"project_description": "Python package to perform enrichment analysis from omics data.",
|
|
10
|
+
"author_full_name": "Pau Badia i Mompel",
|
|
11
|
+
"author_email": "pau.badia@uni-heidelberg.de",
|
|
12
|
+
"github_user": "PauBadiaM",
|
|
13
|
+
"github_repo": "decoupler",
|
|
14
|
+
"license": "BSD 3-Clause License",
|
|
15
|
+
"ide_integration": true,
|
|
16
|
+
"_copy_without_render": [
|
|
17
|
+
".github/workflows/build.yaml",
|
|
18
|
+
".github/workflows/test.yaml",
|
|
19
|
+
"docs/_templates/autosummary/**.rst"
|
|
20
|
+
],
|
|
21
|
+
"_exclude_on_template_update": [
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.md",
|
|
25
|
+
"docs/api.md",
|
|
26
|
+
"docs/index.md",
|
|
27
|
+
"docs/notebooks/example.ipynb",
|
|
28
|
+
"docs/references.bib",
|
|
29
|
+
"docs/references.md",
|
|
30
|
+
"src/**",
|
|
31
|
+
"tests/**"
|
|
32
|
+
],
|
|
33
|
+
"_render_devdocs": false,
|
|
34
|
+
"_jinja2_env_vars": {
|
|
35
|
+
"lstrip_blocks": true,
|
|
36
|
+
"trim_blocks": true
|
|
37
|
+
},
|
|
38
|
+
"_template": "https://github.com/scverse/cookiecutter-scverse",
|
|
39
|
+
"_commit": "5842d5cb8510e1d4a037a8f772630d51ec86de96"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"directory": null
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
charset = utf-8
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
|
|
11
|
+
[{*.{yml,yaml,toml},.cruft.json}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
[Makefile]
|
|
15
|
+
indent_style = tab
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report something that is broken or incorrect
|
|
3
|
+
labels: bug
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
|
|
9
|
+
detailing how to provide the necessary information for us to reproduce your bug. In brief:
|
|
10
|
+
* Please provide exact steps how to reproduce the bug in a clean Python environment.
|
|
11
|
+
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
|
|
12
|
+
* Sometimes it is not possible to share the data, but usually it is possible to replicate problems on publicly
|
|
13
|
+
available datasets or to share a subset of your data.
|
|
14
|
+
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: report
|
|
17
|
+
attributes:
|
|
18
|
+
label: Report
|
|
19
|
+
description: A clear and concise description of what the bug is.
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: versions
|
|
25
|
+
attributes:
|
|
26
|
+
label: Versions
|
|
27
|
+
description: |
|
|
28
|
+
Which version of packages.
|
|
29
|
+
|
|
30
|
+
Please install `session-info2`, run the following command in a notebook,
|
|
31
|
+
click the “Copy as Markdown” button, then paste the results into the text box below.
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
In[1]: import session_info2; session_info2.session_info(dependencies=True)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Alternatively, run this in a console:
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
>>> import session_info2; print(session_info2.session_info(dependencies=True)._repr_mimebundle_()["text/markdown"])
|
|
41
|
+
```
|
|
42
|
+
render: python
|
|
43
|
+
placeholder: |
|
|
44
|
+
anndata 0.11.3
|
|
45
|
+
---- ----
|
|
46
|
+
charset-normalizer 3.4.1
|
|
47
|
+
coverage 7.7.0
|
|
48
|
+
psutil 7.0.0
|
|
49
|
+
dask 2024.7.1
|
|
50
|
+
jaraco.context 5.3.0
|
|
51
|
+
numcodecs 0.15.1
|
|
52
|
+
jaraco.functools 4.0.1
|
|
53
|
+
Jinja2 3.1.6
|
|
54
|
+
sphinxcontrib-jsmath 1.0.1
|
|
55
|
+
sphinxcontrib-htmlhelp 2.1.0
|
|
56
|
+
toolz 1.0.0
|
|
57
|
+
session-info2 0.1.2
|
|
58
|
+
PyYAML 6.0.2
|
|
59
|
+
llvmlite 0.44.0
|
|
60
|
+
scipy 1.15.2
|
|
61
|
+
pandas 2.2.3
|
|
62
|
+
sphinxcontrib-devhelp 2.0.0
|
|
63
|
+
h5py 3.13.0
|
|
64
|
+
tblib 3.0.0
|
|
65
|
+
setuptools-scm 8.2.0
|
|
66
|
+
more-itertools 10.3.0
|
|
67
|
+
msgpack 1.1.0
|
|
68
|
+
sparse 0.15.5
|
|
69
|
+
wrapt 1.17.2
|
|
70
|
+
jaraco.collections 5.1.0
|
|
71
|
+
numba 0.61.0
|
|
72
|
+
pyarrow 19.0.1
|
|
73
|
+
pytz 2025.1
|
|
74
|
+
MarkupSafe 3.0.2
|
|
75
|
+
crc32c 2.7.1
|
|
76
|
+
sphinxcontrib-qthelp 2.0.0
|
|
77
|
+
sphinxcontrib-serializinghtml 2.0.0
|
|
78
|
+
zarr 2.18.4
|
|
79
|
+
asciitree 0.3.3
|
|
80
|
+
six 1.17.0
|
|
81
|
+
sphinxcontrib-applehelp 2.0.0
|
|
82
|
+
numpy 2.1.3
|
|
83
|
+
cloudpickle 3.1.1
|
|
84
|
+
sphinxcontrib-bibtex 2.6.3
|
|
85
|
+
natsort 8.4.0
|
|
86
|
+
jaraco.text 3.12.1
|
|
87
|
+
setuptools 76.1.0
|
|
88
|
+
Deprecated 1.2.18
|
|
89
|
+
packaging 24.2
|
|
90
|
+
python-dateutil 2.9.0.post0
|
|
91
|
+
---- ----
|
|
92
|
+
Python 3.13.2 | packaged by conda-forge | (main, Feb 17 2025, 14:10:22) [GCC 13.3.0]
|
|
93
|
+
OS Linux-6.11.0-109019-tuxedo-x86_64-with-glibc2.39
|
|
94
|
+
Updated 2025-03-18 15:47
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a new feature for decoupler
|
|
3
|
+
labels: enhancement
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: Description of feature
|
|
9
|
+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Check Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
defaults:
|
|
14
|
+
run:
|
|
15
|
+
# to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
|
|
16
|
+
shell: bash -euo pipefail {0}
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
package:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
filter: blob:none
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
- name: Install uv
|
|
27
|
+
uses: astral-sh/setup-uv@v5
|
|
28
|
+
with:
|
|
29
|
+
cache-dependency-glob: pyproject.toml
|
|
30
|
+
- name: Build package
|
|
31
|
+
run: uv build
|
|
32
|
+
- name: Check package
|
|
33
|
+
run: uvx twine check --strict dist/*.whl
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
defaults:
|
|
8
|
+
run:
|
|
9
|
+
# to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
|
|
10
|
+
shell: bash -euo pipefail {0}
|
|
11
|
+
|
|
12
|
+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
|
|
13
|
+
jobs:
|
|
14
|
+
release:
|
|
15
|
+
name: Upload release to PyPI
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
environment:
|
|
18
|
+
name: pypi
|
|
19
|
+
url: https://pypi.org/p/decoupler
|
|
20
|
+
permissions:
|
|
21
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
filter: blob:none
|
|
26
|
+
fetch-depth: 0
|
|
27
|
+
- name: Install uv
|
|
28
|
+
uses: astral-sh/setup-uv@v5
|
|
29
|
+
with:
|
|
30
|
+
cache-dependency-glob: pyproject.toml
|
|
31
|
+
- name: Build package
|
|
32
|
+
run: uv build
|
|
33
|
+
- name: Publish package distributions to PyPI
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "0 5 1,15 * *"
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
defaults:
|
|
16
|
+
run:
|
|
17
|
+
# to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u).
|
|
18
|
+
shell: bash -euo pipefail {0}
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
# Get the test environment from hatch as defined in pyproject.toml.
|
|
22
|
+
# This ensures that the pyproject.toml is the single point of truth for test definitions and the same tests are
|
|
23
|
+
# run locally and on continuous integration.
|
|
24
|
+
# Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for
|
|
25
|
+
# more details.
|
|
26
|
+
get-environments:
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
outputs:
|
|
29
|
+
envs: ${{ steps.get-envs.outputs.envs }}
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v4
|
|
32
|
+
with:
|
|
33
|
+
filter: blob:none
|
|
34
|
+
fetch-depth: 0
|
|
35
|
+
- name: Install uv
|
|
36
|
+
uses: astral-sh/setup-uv@v5
|
|
37
|
+
- name: Get test environments
|
|
38
|
+
id: get-envs
|
|
39
|
+
run: |
|
|
40
|
+
ENVS_JSON=$(uvx hatch env show --json | jq -c 'to_entries
|
|
41
|
+
| map(
|
|
42
|
+
select(.key | startswith("hatch-test"))
|
|
43
|
+
| {
|
|
44
|
+
name: .key,
|
|
45
|
+
label: (if (.key | contains("pre")) then .key + " (PRE-RELEASE DEPENDENCIES)" else .key end),
|
|
46
|
+
python: .value.python
|
|
47
|
+
}
|
|
48
|
+
)')
|
|
49
|
+
echo "envs=${ENVS_JSON}" | tee $GITHUB_OUTPUT
|
|
50
|
+
|
|
51
|
+
# Run tests through hatch. Spawns a separate runner for each environment defined in the hatch matrix obtained above.
|
|
52
|
+
test:
|
|
53
|
+
needs: get-environments
|
|
54
|
+
|
|
55
|
+
strategy:
|
|
56
|
+
fail-fast: false
|
|
57
|
+
matrix:
|
|
58
|
+
os: [ubuntu-latest]
|
|
59
|
+
env: ${{ fromJSON(needs.get-environments.outputs.envs) }}
|
|
60
|
+
|
|
61
|
+
name: ${{ matrix.env.label }}
|
|
62
|
+
runs-on: ${{ matrix.os }}
|
|
63
|
+
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
with:
|
|
67
|
+
filter: blob:none
|
|
68
|
+
fetch-depth: 0
|
|
69
|
+
- name: Install uv
|
|
70
|
+
uses: astral-sh/setup-uv@v5
|
|
71
|
+
with:
|
|
72
|
+
python-version: ${{ matrix.env.python }}
|
|
73
|
+
cache-dependency-glob: pyproject.toml
|
|
74
|
+
- name: create hatch environment
|
|
75
|
+
run: uvx hatch env create ${{ matrix.env.name }}
|
|
76
|
+
- name: run tests using hatch
|
|
77
|
+
env:
|
|
78
|
+
MPLBACKEND: agg
|
|
79
|
+
PLATFORM: ${{ matrix.os }}
|
|
80
|
+
DISPLAY: :42
|
|
81
|
+
run: uvx hatch run ${{ matrix.env.name }}:run-cov
|
|
82
|
+
- name: generate coverage report
|
|
83
|
+
run: uvx hatch run ${{ matrix.env.name }}:coverage xml
|
|
84
|
+
- name: Upload coverage
|
|
85
|
+
uses: codecov/codecov-action@v4
|
|
86
|
+
|
|
87
|
+
# Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
|
|
88
|
+
# protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
|
|
89
|
+
check:
|
|
90
|
+
name: Tests pass in all hatch environments
|
|
91
|
+
if: always()
|
|
92
|
+
needs:
|
|
93
|
+
- get-environments
|
|
94
|
+
- test
|
|
95
|
+
runs-on: ubuntu-latest
|
|
96
|
+
steps:
|
|
97
|
+
- uses: re-actors/alls-green@release/v1
|
|
98
|
+
with:
|
|
99
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Temp files
|
|
2
|
+
.DS_Store
|
|
3
|
+
*~
|
|
4
|
+
buck-out/
|
|
5
|
+
|
|
6
|
+
# Compiled files
|
|
7
|
+
.venv/
|
|
8
|
+
__pycache__/
|
|
9
|
+
.*cache/
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
/dist/
|
|
13
|
+
|
|
14
|
+
# Tests and coverage
|
|
15
|
+
/data/
|
|
16
|
+
/node_modules/
|
|
17
|
+
|
|
18
|
+
# docs
|
|
19
|
+
/docs/generated/
|
|
20
|
+
/docs/_build/
|
|
21
|
+
|
|
22
|
+
# jupyter
|
|
23
|
+
.ipynb_checkpoints/
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
fail_fast: false
|
|
2
|
+
default_language_version:
|
|
3
|
+
python: python3
|
|
4
|
+
default_stages:
|
|
5
|
+
- pre-commit
|
|
6
|
+
- pre-push
|
|
7
|
+
minimum_pre_commit_version: 2.16.0
|
|
8
|
+
repos:
|
|
9
|
+
- repo: https://github.com/biomejs/pre-commit
|
|
10
|
+
rev: v1.9.4
|
|
11
|
+
hooks:
|
|
12
|
+
- id: biome-format
|
|
13
|
+
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
|
|
14
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
15
|
+
rev: v2.5.1
|
|
16
|
+
hooks:
|
|
17
|
+
- id: pyproject-fmt
|
|
18
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
19
|
+
rev: v0.11.5
|
|
20
|
+
hooks:
|
|
21
|
+
- id: ruff
|
|
22
|
+
types_or: [python, pyi, jupyter]
|
|
23
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
24
|
+
- id: ruff-format
|
|
25
|
+
types_or: [python, pyi, jupyter]
|
|
26
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
27
|
+
rev: v5.0.0
|
|
28
|
+
hooks:
|
|
29
|
+
- id: detect-private-key
|
|
30
|
+
- id: check-ast
|
|
31
|
+
- id: end-of-file-fixer
|
|
32
|
+
- id: mixed-line-ending
|
|
33
|
+
args: [--fix=lf]
|
|
34
|
+
- id: trailing-whitespace
|
|
35
|
+
- id: check-case-conflict
|
|
36
|
+
# Check that there are no merge conflicts (could be generated by template sync)
|
|
37
|
+
- id: check-merge-conflict
|
|
38
|
+
args: [--assume-in-merge]
|
|
39
|
+
- repo: local
|
|
40
|
+
hooks:
|
|
41
|
+
- id: forbid-to-commit
|
|
42
|
+
name: Don't commit rej files
|
|
43
|
+
entry: |
|
|
44
|
+
Cannot commit .rej files. These indicate merge conflicts that arise during automated template updates.
|
|
45
|
+
Fix the merge conflicts manually and remove the .rej files.
|
|
46
|
+
language: fail
|
|
47
|
+
files: '.*\.rej$'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# https://docs.readthedocs.io/en/stable/config-file/v2.html
|
|
2
|
+
version: 2
|
|
3
|
+
build:
|
|
4
|
+
os: ubuntu-20.04
|
|
5
|
+
tools:
|
|
6
|
+
python: "3.10"
|
|
7
|
+
sphinx:
|
|
8
|
+
configuration: docs/conf.py
|
|
9
|
+
# disable this for more lenient docs builds
|
|
10
|
+
fail_on_warning: true
|
|
11
|
+
python:
|
|
12
|
+
install:
|
|
13
|
+
- method: pip
|
|
14
|
+
path: .
|
|
15
|
+
extra_requirements:
|
|
16
|
+
- doc
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recommendations": [
|
|
3
|
+
// GitHub integration
|
|
4
|
+
"github.vscode-github-actions",
|
|
5
|
+
"github.vscode-pull-request-github",
|
|
6
|
+
// Language support
|
|
7
|
+
"ms-python.python",
|
|
8
|
+
"ms-python.vscode-pylance",
|
|
9
|
+
"ms-toolsai.jupyter",
|
|
10
|
+
"tamasfe.even-better-toml",
|
|
11
|
+
// Dependency management
|
|
12
|
+
"ninoseki.vscode-mogami",
|
|
13
|
+
// Linting and formatting
|
|
14
|
+
"editorconfig.editorconfig",
|
|
15
|
+
"charliermarsh.ruff",
|
|
16
|
+
"biomejs.biome",
|
|
17
|
+
],
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Python: Build Documentation",
|
|
9
|
+
"type": "debugpy",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"module": "sphinx",
|
|
12
|
+
"args": ["-M", "html", ".", "_build"],
|
|
13
|
+
"cwd": "${workspaceFolder}/docs",
|
|
14
|
+
"console": "internalConsole",
|
|
15
|
+
"justMyCode": false,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Python: Debug Test",
|
|
19
|
+
"type": "debugpy",
|
|
20
|
+
"request": "launch",
|
|
21
|
+
"program": "${file}",
|
|
22
|
+
"purpose": ["debug-test"],
|
|
23
|
+
"console": "internalConsole",
|
|
24
|
+
"justMyCode": false,
|
|
25
|
+
"env": {
|
|
26
|
+
"PYTEST_ADDOPTS": "--color=yes",
|
|
27
|
+
},
|
|
28
|
+
"presentation": {
|
|
29
|
+
"hidden": true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[python][json][jsonc]": {
|
|
3
|
+
"editor.formatOnSave": true,
|
|
4
|
+
},
|
|
5
|
+
"[python]": {
|
|
6
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
7
|
+
"editor.codeActionsOnSave": {
|
|
8
|
+
"source.fixAll": "always",
|
|
9
|
+
"source.organizeImports": "always",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
"[json][jsonc]": {
|
|
13
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
14
|
+
},
|
|
15
|
+
"python.analysis.typeCheckingMode": "basic",
|
|
16
|
+
"python.testing.pytestEnabled": true,
|
|
17
|
+
"python.testing.pytestArgs": ["-vv", "--color=yes"],
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog][],
|
|
6
|
+
and this project adheres to [Semantic Versioning][].
|
|
7
|
+
|
|
8
|
+
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
|
|
9
|
+
[semantic versioning]: https://semver.org/spec/v2.0.0.html
|
|
10
|
+
|
|
11
|
+
## 2.0.0
|
|
12
|
+
|
|
13
|
+
Major update to accomodate the scverse :cite:`scverse` template.
|
|
14
|
+
|
|
15
|
+
All functions have been rewritten to follow the new API, errors when running previous versions (`1.X.X`) are expected if `decoupler >= 2.0.0` is installed.
|
|
16
|
+
|
|
17
|
+
### Changes
|
|
18
|
+
|
|
19
|
+
- Methods are now in the `mt` module and are built from shared class `Method`
|
|
20
|
+
- Use `decoupler.mt.<method_name>` to call a method
|
|
21
|
+
- `min_n` argument has been renamed `tmin`
|
|
22
|
+
- New argument `bsize` allows to run a method with batches in case excessive memory usage is an issue
|
|
23
|
+
- :math:`p_{values}` of the enrichment scores are now corrected by Benjamini-Hochberg
|
|
24
|
+
- `mdt` and `udt` are now based on `xgboost` instead of `sklearn` for better scalability. `udt` statistic is now the coefficient of determination :math:`R^2` instead of the importance of a single decision tree.
|
|
25
|
+
- `ora` now returns the odds ratio of the contingency table as a statistic, and computes a two-sided Fisher exact test instead of a one-sided one
|
|
26
|
+
- `viper` now correctly estimates shadow regulons when network weights are values other than -1 or +1
|
|
27
|
+
- `wsum` and `wmean` are deprecated, instead now the method `waggr` allows to run both methods and any custom function. This makes it easier to quickly test new enrichment methods without having to deal with `decoupler`'s implementation
|
|
28
|
+
- Databases from Omnipath can now be accessed through the new `op` module
|
|
29
|
+
- Use `decoupler.op.<resource_name>` to access a database
|
|
30
|
+
- Removed the `omnipath` package as a dependancy
|
|
31
|
+
- Fixed `collectri` to the publication version instead of the OmniPath one
|
|
32
|
+
- Made `progeny` only return significant genes by default instead of the top N genes per pathway
|
|
33
|
+
- Plots are now in a new `pl` module
|
|
34
|
+
- Use `decoupler.pl.<plot_name>` to call a plot
|
|
35
|
+
- They use a common class `Plotter` to make it easier to share arguments between them
|
|
36
|
+
- `plot_violins` has been deprecated
|
|
37
|
+
- Names that have changed
|
|
38
|
+
- `plot_psbulk_samples` to `filter_samples`
|
|
39
|
+
- `plot_running_score` to `leading_edge`
|
|
40
|
+
- `plot_associations` to `obsm`
|
|
41
|
+
- `plot_targets` to `source_targets`
|
|
42
|
+
- Preprocessing functions are now in the new `pp` module
|
|
43
|
+
- Renamed `check_corr` to `net_corr`, now also returns adjusted :math:`p_{values}`
|
|
44
|
+
- Renamed `get_acts` to `get_obsm`
|
|
45
|
+
- Renamed `get_pseudobulk` to `pseudobulk`. Now it does not automatically remove low quality samples, this is now done with the function `filter_samples`
|
|
46
|
+
- Deprecated `get_contrast`, `get_top_targets` and `format_contrast_results`. `PyDESeq2` should be used instead
|
|
47
|
+
- Moved `rank_sources_groups` to the new `tl` module as `rankby_group`
|
|
48
|
+
- Moved `get_metadata_associations` to the new `tl` module as `rankby_obsm`
|
|
49
|
+
- Moved the benchmarking pipeline inside a new `bm` module, with its metrics and plotting functions in further submodules (`bm.metric` and `bm.pl`)
|
|
50
|
+
|
|
51
|
+
### Added
|
|
52
|
+
|
|
53
|
+
- `ds` module with functions to download several datasets at different resolutions
|
|
54
|
+
- Bulk: `hsctgfb` and `knocktf`
|
|
55
|
+
- Single-cell: `pbmc3k`, `covid5k` and `erygast1k`
|
|
56
|
+
- Spatial: `msvisium`
|
|
57
|
+
- Toy data: `toy` and `toy_bench`
|
|
58
|
+
- Utils: `ensmbl_to_symbol`
|
|
59
|
+
- New database functions in the `op` module
|
|
60
|
+
- Added `hallmark` as a custom resource
|
|
61
|
+
- New plotting funcitons in the `pl` module
|
|
62
|
+
- Added `obsbar` to plot size of metadata columns in `anndata.AnnData.obs`
|
|
63
|
+
- Added `order` to plot sources or features along a continous process such as a trajectory
|
|
64
|
+
- Added `order_targets` to plot the targets of a given source along a continous process
|
|
65
|
+
-
|
|
66
|
+
- New preprocessing functions in the `pp` module
|
|
67
|
+
- Added two functions to format networks, `adjmat` to return an adjacency matrix, and `idxmax` to return a list of sets
|
|
68
|
+
- Added `filter_samples` to filter pseudobulk profiles after running `pseudobulk`
|
|
69
|
+
- Added `knn` to calculate K-Nearest Neighbors similarities based on spatial distances
|
|
70
|
+
- Added `bin_order` to bin features across a continous process
|
|
71
|
+
- `tl` module with functions to perform statistical tests
|
|
72
|
+
- Added `rankby_order` to test for non-linear associations of features with a continous process
|
|
73
|
+
- New benchmarking metrics and plotting related functions in the `bm` module
|
|
74
|
+
- Added two more metrics, `F-score` and `qrank`
|
|
75
|
+
- Added shared plots for metrics, `bm.pl.auc`, `bm.pl.fscore` and `bm.pl.qrank`
|
|
76
|
+
- Added a summary plot across metrics `bm.pl.summary`
|
decoupler-2.0.0/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Pau Badia i Mompel
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|