DOTools-py 0.0.2__tar.gz → 0.0.3__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.
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.codecov.yaml +8 -7
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.github/ISSUE_TEMPLATE/bug_report.yml +2 -3
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.github/ISSUE_TEMPLATE/feature_request.yml +1 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.gitignore +2 -0
- dotools_py-0.0.3/CHANGELOG.md +43 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/PKG-INFO +35 -9
- {dotools_py-0.0.2 → dotools_py-0.0.3}/README.md +23 -7
- dotools_py-0.0.3/docs/_static/figures/DoTools_Overview.png +0 -0
- dotools_py-0.0.3/docs/api/bm.md +18 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/get.md +10 -3
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/index.md +10 -8
- dotools_py-0.0.3/docs/api/io.md +29 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/pl.md +30 -5
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/pp.md +4 -7
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/settings.md +4 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/tl.md +4 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/utility.md +3 -10
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/conf.py +23 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/index.md +14 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/installation.md +21 -5
- dotools_py-0.0.3/docs/notebooks/Integration.ipynb +880 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/notebooks/example_10X.ipynb +4 -4
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/notebooks/example_visualisation.ipynb +6 -10
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/notebooks/index.md +1 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/references.bib +12 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/pyproject.toml +45 -33
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/__init__.py +2 -2
- {dotools_py-0.0.2/src/dotools_py/utility → dotools_py-0.0.3/src/dotools_py/_experimental/_deprecated}/_convertion.py +2 -0
- dotools_py-0.0.3/src/dotools_py/bm/__init__.py +5 -0
- dotools_py-0.0.3/src/dotools_py/bm/_helper.py +544 -0
- dotools_py-0.0.3/src/dotools_py/bm/_integration_metrics.py +471 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/dt/_markers.py +1 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/get/__init__.py +2 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/get/_generic.py +51 -9
- dotools_py-0.0.3/src/dotools_py/io/__init__.py +3 -0
- dotools_py-0.0.3/src/dotools_py/io/_dataframes.py +161 -0
- dotools_py-0.0.3/src/dotools_py/io/_objects.py +153 -0
- dotools_py-0.0.3/src/dotools_py/io/_rds.py +267 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_Classes.py +12 -8
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_StatsPlotter.py +3 -3
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/__init__.py +3 -3
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_dotplot.py +9 -9
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_downstream.py +3 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_embeddings.py +376 -13
- dotools_py-0.0.3/src/dotools_py/pl/_experimental.py +447 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_expression.py +25 -10
- dotools_py-0.0.3/src/dotools_py/pl/_heatmap.py +935 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_plot_utils.py +1 -2
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_visium.py +2 -2
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pp/__init__.py +1 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pp/_cellbender.py +1 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pp/_importer.py +417 -83
- dotools_py-0.0.3/src/dotools_py/settings/__init__.py +2 -0
- dotools_py-0.0.3/src/dotools_py/settings/_configure.py +405 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/tl/_Statistical.py +132 -147
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/tl/__init__.py +2 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/tl/_analysis.py +293 -50
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/tl/_get_stats.py +24 -12
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_ReadWrite_RDS.R +4 -3
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_run_MAST.R +4 -1
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/utility/__init__.py +1 -2
- dotools_py-0.0.3/src/dotools_py/utility/_general.py +331 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/utility/_plotting.py +38 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/utility/_spatial.py +17 -8
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/utils.py +90 -46
- dotools_py-0.0.3/tests/bm/test_bm.py +26 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/get/test_generic.py +1 -3
- dotools_py-0.0.3/tests/io/test_IO.py +64 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/plotting/test_plotting.py +46 -0
- dotools_py-0.0.3/tests/pp/test_complementary.py +33 -0
- dotools_py-0.0.3/tests/pp/test_importer.py +93 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/tools/test_analysis.py +30 -27
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/tools/test_statistic.py +68 -0
- dotools_py-0.0.3/tests/utility/test_anndata.py +11 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/utility/test_general.py +30 -2
- dotools_py-0.0.3/tests/utility/test_logger.py +25 -0
- dotools_py-0.0.2/.idea/.gitignore +0 -3
- dotools_py-0.0.2/.idea/DOTools_py.iml +0 -17
- dotools_py-0.0.2/.idea/dictionaries/project.xml +0 -8
- dotools_py-0.0.2/.idea/inspectionProfiles/Project_Default.xml +0 -18
- dotools_py-0.0.2/.idea/inspectionProfiles/profiles_settings.xml +0 -7
- dotools_py-0.0.2/.idea/misc.xml +0 -7
- dotools_py-0.0.2/.idea/modules.xml +0 -8
- dotools_py-0.0.2/.idea/rGraphicsSettings.xml +0 -9
- dotools_py-0.0.2/.idea/rSettings.xml +0 -7
- dotools_py-0.0.2/.idea/vcs.xml +0 -6
- dotools_py-0.0.2/CHANGELOG.md +0 -13
- dotools_py-0.0.2/docs/_static/figures/DoTools_Overview.png +0 -0
- dotools_py-0.0.2/src/dotools_py/pl/_experimental.py +0 -205
- dotools_py-0.0.2/src/dotools_py/pl/_heatmap.py +0 -475
- dotools_py-0.0.2/src/dotools_py/settings/__init__.py +0 -1
- dotools_py-0.0.2/src/dotools_py/settings/_configure.py +0 -185
- dotools_py-0.0.2/src/dotools_py/utility/_general.py +0 -136
- dotools_py-0.0.2/tests/pp/test_importer.py +0 -46
- dotools_py-0.0.2/tests/utility/test_logger.py +0 -14
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.cruft.json +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.editorconfig +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.github/workflows/build.yaml +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.github/workflows/release.yaml +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.github/workflows/test.yaml +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.pre-commit-config.yaml +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.readthedocs.yaml +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.vscode/extensions.json +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.vscode/launch.json +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/.vscode/settings.json +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/LICENSE +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/biome.jsonc +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/_static/.gitkeep +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/_static/css/custom.css +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/_static/figures/LogoDoTools.png +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/_templates/.gitkeep +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/_templates/autosummary/class.rst +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/dt.md +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/api/generated/MarkersCellsHeart.png +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/changelog.md +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/cite.md +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/extensions/typed_returns.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/figures/LogoDoTools.png +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/notebooks/Running_CellBender.ipynb +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/notebooks/dea.ipynb +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/docs/references.md +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/__init__.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/_deprecated/__init__.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/_deprecated/_expression.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/_deprecated/_language.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/_deprecated/_statistics.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/gr/__init__.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/_experimental/gr/_generic.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/dt/__init__.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/dt/_datasets.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/dt/example_reduced.h5ad +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/logger.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/pl/_Plotter.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/settings/_global_parameters.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/tl/_rankGenes.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_run_CCA.R +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_run_CellBender.sh +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_run_SCTransform.R +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_run_edgeR.R +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/util_scripts/_run_scDblFinder.R +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/utility/HomoSapiens_GeneMetadata.pickle.gz +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/src/dotools_py/utility/MusMusculus_GeneMetadata.pickle.gz +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/conftest.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/data/test_data.py +0 -0
- {dotools_py-0.0.2 → dotools_py-0.0.3}/tests/utility/test_plotting.py +0 -0
|
@@ -4,20 +4,21 @@ codecov:
|
|
|
4
4
|
|
|
5
5
|
coverage:
|
|
6
6
|
ignore:
|
|
7
|
-
- "src/dotools_py/
|
|
8
|
-
- "src/dotools_py/_experimental/_deprecated/
|
|
9
|
-
- "src/dotools_py/
|
|
10
|
-
- "src/dotools_py/_experimental/_deprecated/
|
|
7
|
+
- "src/dotools_py/_experimental/_deprecated/_language.py" # Deprecated
|
|
8
|
+
- "src/dotools_py/_experimental/_deprecated/_statistics.py" # Deprecated
|
|
9
|
+
- "src/dotools_py/_experimental/_deprecated/_convertion.py" # Deprecated
|
|
10
|
+
- "src/dotools_py/_experimental/_deprecated/_expression.py" # Deprecated
|
|
11
11
|
- "src/dotools_py/utility/_spatial.py" # No example currently
|
|
12
12
|
- "src/dotools_py/pl/_visium.py" # No example currently
|
|
13
|
-
- "src/dotools_py/
|
|
14
|
-
- "src/dotools_py/
|
|
13
|
+
- "src/dotools_py/io/_rds.py" # R code
|
|
14
|
+
- "src/dotools_py/pp/_cellbender.py" # Decrease time for github actions
|
|
15
|
+
- "src/dotools_py/bm/_helper.py" # R code
|
|
16
|
+
|
|
15
17
|
status:
|
|
16
18
|
project:
|
|
17
19
|
default:
|
|
18
20
|
# Require 50% coverage
|
|
19
21
|
target: 50
|
|
20
|
-
#patch: false
|
|
21
22
|
changes: false
|
|
22
23
|
|
|
23
24
|
comment:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: Bug report
|
|
2
2
|
description: Report something that is broken or incorrect
|
|
3
|
-
|
|
3
|
+
type: bug
|
|
4
4
|
body:
|
|
5
5
|
- type: markdown
|
|
6
6
|
attributes:
|
|
@@ -9,8 +9,7 @@ body:
|
|
|
9
9
|
detailing how to provide the necessary information for us to reproduce your bug. In brief:
|
|
10
10
|
* Please provide exact steps how to reproduce the bug in a clean Python environment.
|
|
11
11
|
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
|
|
12
|
-
*
|
|
13
|
-
available datasets or to share a subset of your data.
|
|
12
|
+
* Replicate problems on public datasets or share data subsets when full sharing isn't possible.
|
|
14
13
|
|
|
15
14
|
- type: textarea
|
|
16
15
|
id: report
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
|
|
12
|
+
## Version 0.0.3 {small}`2026-01-30`
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- Add `dotools_py.pl.heatmap_foldchange` to visualize log2foldchanges between groups across conditions.
|
|
17
|
+
- Add ``io`` module for reading/writing. `dotools_py.utility.read_rds` and `dotools_py.utility.save_rds` have been moved to this module.
|
|
18
|
+
- Make internal functions in ``dotools_py.pp`` and ``dotools_py.tl`` public.
|
|
19
|
+
- Add `dotools_py.get.layer_swap` to swap layers.
|
|
20
|
+
- Add `dotools_py.settings.set_kernel_logger` and :func:`dotools_py.settings.toggle_kernel_logger` to record the kernel history.
|
|
21
|
+
- Add ``dotools_py.bm`` module that contain metrics for the evaluation of quality control steps.
|
|
22
|
+
- Add `dotools_py.pl.density` to visualize density of features in embeddings.
|
|
23
|
+
- Add ``random_state`` parameters to the methods.
|
|
24
|
+
- Add `dotools_py.utlity.create_report`
|
|
25
|
+
- Add `dotools_py.tl.DGEAnalysis`, a class with DGE analysis methods.
|
|
26
|
+
- Add `dotools_py.pl.ridgeplot`
|
|
27
|
+
|
|
28
|
+
### Bug fixes
|
|
29
|
+
|
|
30
|
+
- Fix Bug in ``dotools_py.pl.barplot``, ``dotools_py.pl.boxplot`` and ``dotools_py.pl.violinplot`` where the legends
|
|
31
|
+
were not correctly display when `hue` was set but `hue_order` was not set.
|
|
32
|
+
- Embedding plots will be saved using a ``vector_friendly`` (scatter plots will use png backend even when exporting as PDF or SVG).
|
|
33
|
+
- Internal bug fixes in several other methods
|
|
34
|
+
- Harmony runs through the pytorch implementation.
|
|
35
|
+
|
|
36
|
+
## Version 0.0.2 {small}`2025-11-25`
|
|
37
|
+
|
|
38
|
+
Correction of bugs and update parameters naming for consistency across functions.
|
|
39
|
+
|
|
40
|
+
## Version 0.0.1 {small}`2025-10-23`
|
|
41
|
+
|
|
42
|
+
Pre-release of DoTools, a convenient and user-friendly package to streamline common workflows in single-cell RNA
|
|
43
|
+
sequencing data analysis using the scverse ecosystem.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DOTools_py
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Convenient functions to streamline sc/snRNAseq data analysis workflow
|
|
5
5
|
Project-URL: Documentation, https://DOTools_py.readthedocs.io/
|
|
6
6
|
Project-URL: Homepage, https://github.com/davidrm-bio/DOTools_py
|
|
@@ -38,10 +38,13 @@ Requires-Python: >=3.10
|
|
|
38
38
|
Requires-Dist: adjusttext
|
|
39
39
|
Requires-Dist: anndata>=0.9.2
|
|
40
40
|
Requires-Dist: bbknn
|
|
41
|
+
Requires-Dist: beartype
|
|
41
42
|
Requires-Dist: celltypist
|
|
42
43
|
Requires-Dist: doubletdetection>=4.3
|
|
43
44
|
Requires-Dist: fast-array-utils[accel,sparse]>=1.2.1; python_version >= '3.11'
|
|
44
|
-
Requires-Dist:
|
|
45
|
+
Requires-Dist: fastexcel
|
|
46
|
+
Requires-Dist: gseapy<1.1.11
|
|
47
|
+
Requires-Dist: harmony-pytorch
|
|
45
48
|
Requires-Dist: harmonypy
|
|
46
49
|
Requires-Dist: jupyter
|
|
47
50
|
Requires-Dist: numba
|
|
@@ -53,6 +56,7 @@ Requires-Dist: requests
|
|
|
53
56
|
Requires-Dist: scanorama
|
|
54
57
|
Requires-Dist: scanpro
|
|
55
58
|
Requires-Dist: scanpy
|
|
59
|
+
Requires-Dist: scib
|
|
56
60
|
Requires-Dist: scikit-image
|
|
57
61
|
Requires-Dist: scipy
|
|
58
62
|
Requires-Dist: scvi-tools>=1.3
|
|
@@ -63,6 +67,7 @@ Requires-Dist: pre-commit; extra == 'dev'
|
|
|
63
67
|
Requires-Dist: twine>=4.0.2; extra == 'dev'
|
|
64
68
|
Provides-Extra: doc
|
|
65
69
|
Requires-Dist: bbknn; extra == 'doc'
|
|
70
|
+
Requires-Dist: beartype; extra == 'doc'
|
|
66
71
|
Requires-Dist: celltypist; extra == 'doc'
|
|
67
72
|
Requires-Dist: docutils!=0.18.*,!=0.19.*,>=0.8; extra == 'doc'
|
|
68
73
|
Requires-Dist: doubletdetection; extra == 'doc'
|
|
@@ -76,10 +81,12 @@ Requires-Dist: pandas; extra == 'doc'
|
|
|
76
81
|
Requires-Dist: polars; extra == 'doc'
|
|
77
82
|
Requires-Dist: pydeseq2; extra == 'doc'
|
|
78
83
|
Requires-Dist: scanpydoc; extra == 'doc'
|
|
84
|
+
Requires-Dist: scib; extra == 'doc'
|
|
79
85
|
Requires-Dist: scipy; extra == 'doc'
|
|
80
86
|
Requires-Dist: scvi-tools; extra == 'doc'
|
|
81
87
|
Requires-Dist: seaborn; extra == 'doc'
|
|
82
88
|
Requires-Dist: setuptools; extra == 'doc'
|
|
89
|
+
Requires-Dist: spatialdata; extra == 'doc'
|
|
83
90
|
Requires-Dist: sphinx-autodoc-typehints; extra == 'doc'
|
|
84
91
|
Requires-Dist: sphinx-book-theme>=1; extra == 'doc'
|
|
85
92
|
Requires-Dist: sphinx-copybutton; extra == 'doc'
|
|
@@ -93,9 +100,11 @@ Provides-Extra: test
|
|
|
93
100
|
Requires-Dist: adjusttext; extra == 'test'
|
|
94
101
|
Requires-Dist: anndata; extra == 'test'
|
|
95
102
|
Requires-Dist: bbknn; extra == 'test'
|
|
103
|
+
Requires-Dist: beartype; extra == 'test'
|
|
96
104
|
Requires-Dist: celltypist; extra == 'test'
|
|
97
105
|
Requires-Dist: coverage; extra == 'test'
|
|
98
106
|
Requires-Dist: doubletdetection; extra == 'test'
|
|
107
|
+
Requires-Dist: fastexcel; extra == 'test'
|
|
99
108
|
Requires-Dist: gseapy; extra == 'test'
|
|
100
109
|
Requires-Dist: ipython; extra == 'test'
|
|
101
110
|
Requires-Dist: matplotlib; extra == 'test'
|
|
@@ -110,6 +119,7 @@ Requires-Dist: scipy; extra == 'test'
|
|
|
110
119
|
Requires-Dist: scvi-tools; extra == 'test'
|
|
111
120
|
Requires-Dist: seaborn; extra == 'test'
|
|
112
121
|
Requires-Dist: tqdm; extra == 'test'
|
|
122
|
+
Requires-Dist: zarr; extra == 'test'
|
|
113
123
|
Description-Content-Type: text/markdown
|
|
114
124
|
|
|
115
125
|
# DOTools_py
|
|
@@ -121,7 +131,7 @@ Description-Content-Type: text/markdown
|
|
|
121
131
|
[![Issues][badge-issues]][issue tracker]
|
|
122
132
|
[![Stars][badge-stars]](https://github.com/davidrm-bio/DOTools_py/stargazers)
|
|
123
133
|
[![PyPI][badge-pypi]][pypi]
|
|
124
|
-
[](https://pepy.tech/projects/dotools-py)
|
|
125
135
|
|
|
126
136
|
[badge-tests]: https://img.shields.io/github/actions/workflow/status/davidrm-bio/DOTools_py/test.yaml?branch=main
|
|
127
137
|
[badge-docs]: https://img.shields.io/readthedocs/DOTools_py/stable
|
|
@@ -132,7 +142,7 @@ Description-Content-Type: text/markdown
|
|
|
132
142
|
|
|
133
143
|
|
|
134
144
|
Convenient and user-friendly package to streamline common workflows in single-cell RNA sequencing data analysis using
|
|
135
|
-
the scverse ecosystem. It provides high-level wrappers and
|
|
145
|
+
the scverse ecosystem. It provides high-level wrappers and visualization functions to help efficiently preprocess,
|
|
136
146
|
analyze, and interpret single-cell data.
|
|
137
147
|
|
|
138
148
|
## Getting started
|
|
@@ -146,15 +156,16 @@ You need to have Python 3.10 or newer installed on your system. We recommend cre
|
|
|
146
156
|
a dedicated [conda](https://www.anaconda.com/docs/getting-started/miniconda/main) environment.
|
|
147
157
|
|
|
148
158
|
```bash
|
|
149
|
-
conda create -n
|
|
150
|
-
conda activate
|
|
159
|
+
conda create -n scrna_py11 python=3.11 -y
|
|
160
|
+
conda activate scrna_py11
|
|
151
161
|
```
|
|
152
162
|
|
|
153
163
|
There are several alternative options to install DOTools_py:
|
|
154
164
|
|
|
155
165
|
1. Install the latest release of `DOTools_py` from [PyPI](https://pypi.org/project/DOTools-py/):
|
|
156
166
|
```bash
|
|
157
|
-
pip install
|
|
167
|
+
pip install uv
|
|
168
|
+
uv pip install dotools-py
|
|
158
169
|
```
|
|
159
170
|
|
|
160
171
|
2. Install the latest development version:
|
|
@@ -165,11 +176,14 @@ pip install git+https://github.com/davidrm-bio/DOTools_py.git@main
|
|
|
165
176
|
Finally, to use this environment in jupyter notebook, add jupyter kernel for this environment:
|
|
166
177
|
|
|
167
178
|
```bash
|
|
168
|
-
python -m ipykernel install --user --name=
|
|
179
|
+
python -m ipykernel install --user --name=scrna_py11 --display-name=scrna_py11
|
|
169
180
|
```
|
|
170
181
|
|
|
171
182
|
## Requirements
|
|
172
183
|
|
|
184
|
+
This package has been tested on macOS, Linux and Windows System. For a standard dataset (e.g., 6 samples with 10k cells each)
|
|
185
|
+
we suggest 16GB of RAM and at least 5 CPUs.
|
|
186
|
+
|
|
173
187
|
Some methods are run through R and require additional dependencies
|
|
174
188
|
including: `Seurat`, `MAST`, `scDblFinder`, `zellkonverter`, `data.table` and `optparse`.
|
|
175
189
|
|
|
@@ -194,13 +208,25 @@ when importing the package. In this case run
|
|
|
194
208
|
pip install --no-cache polars-lts-cpu
|
|
195
209
|
```
|
|
196
210
|
|
|
211
|
+
## R version
|
|
212
|
+
|
|
197
213
|
We also have an R implementation of the [DOTools](https://github.com/MarianoRuzJurado/DOtools). This can be
|
|
198
|
-
installed
|
|
214
|
+
installed from Bioconductor:
|
|
199
215
|
|
|
200
216
|
```R
|
|
217
|
+
if (!requireNamespace("BiocManager", quietly=TRUE)) {
|
|
218
|
+
install.packages("BiocManager")
|
|
219
|
+
}
|
|
220
|
+
BiocManager::install("DOtools")
|
|
201
221
|
devtools::install_github("MarianoRuzJurado/DOtools")
|
|
202
222
|
```
|
|
203
223
|
|
|
224
|
+
The developmental version can be downloaded using `devtools`:
|
|
225
|
+
|
|
226
|
+
```R
|
|
227
|
+
devtools::install_github("MarianoRuzJurado/DOtools", ref="devel")
|
|
228
|
+
```
|
|
229
|
+
|
|
204
230
|
## Release notes
|
|
205
231
|
|
|
206
232
|
See the [changelog][].
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[![Issues][badge-issues]][issue tracker]
|
|
8
8
|
[![Stars][badge-stars]](https://github.com/davidrm-bio/DOTools_py/stargazers)
|
|
9
9
|
[![PyPI][badge-pypi]][pypi]
|
|
10
|
-
[](https://pepy.tech/projects/dotools-py)
|
|
11
11
|
|
|
12
12
|
[badge-tests]: https://img.shields.io/github/actions/workflow/status/davidrm-bio/DOTools_py/test.yaml?branch=main
|
|
13
13
|
[badge-docs]: https://img.shields.io/readthedocs/DOTools_py/stable
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
Convenient and user-friendly package to streamline common workflows in single-cell RNA sequencing data analysis using
|
|
21
|
-
the scverse ecosystem. It provides high-level wrappers and
|
|
21
|
+
the scverse ecosystem. It provides high-level wrappers and visualization functions to help efficiently preprocess,
|
|
22
22
|
analyze, and interpret single-cell data.
|
|
23
23
|
|
|
24
24
|
## Getting started
|
|
@@ -32,15 +32,16 @@ You need to have Python 3.10 or newer installed on your system. We recommend cre
|
|
|
32
32
|
a dedicated [conda](https://www.anaconda.com/docs/getting-started/miniconda/main) environment.
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
conda create -n
|
|
36
|
-
conda activate
|
|
35
|
+
conda create -n scrna_py11 python=3.11 -y
|
|
36
|
+
conda activate scrna_py11
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
There are several alternative options to install DOTools_py:
|
|
40
40
|
|
|
41
41
|
1. Install the latest release of `DOTools_py` from [PyPI](https://pypi.org/project/DOTools-py/):
|
|
42
42
|
```bash
|
|
43
|
-
pip install
|
|
43
|
+
pip install uv
|
|
44
|
+
uv pip install dotools-py
|
|
44
45
|
```
|
|
45
46
|
|
|
46
47
|
2. Install the latest development version:
|
|
@@ -51,11 +52,14 @@ pip install git+https://github.com/davidrm-bio/DOTools_py.git@main
|
|
|
51
52
|
Finally, to use this environment in jupyter notebook, add jupyter kernel for this environment:
|
|
52
53
|
|
|
53
54
|
```bash
|
|
54
|
-
python -m ipykernel install --user --name=
|
|
55
|
+
python -m ipykernel install --user --name=scrna_py11 --display-name=scrna_py11
|
|
55
56
|
```
|
|
56
57
|
|
|
57
58
|
## Requirements
|
|
58
59
|
|
|
60
|
+
This package has been tested on macOS, Linux and Windows System. For a standard dataset (e.g., 6 samples with 10k cells each)
|
|
61
|
+
we suggest 16GB of RAM and at least 5 CPUs.
|
|
62
|
+
|
|
59
63
|
Some methods are run through R and require additional dependencies
|
|
60
64
|
including: `Seurat`, `MAST`, `scDblFinder`, `zellkonverter`, `data.table` and `optparse`.
|
|
61
65
|
|
|
@@ -80,13 +84,25 @@ when importing the package. In this case run
|
|
|
80
84
|
pip install --no-cache polars-lts-cpu
|
|
81
85
|
```
|
|
82
86
|
|
|
87
|
+
## R version
|
|
88
|
+
|
|
83
89
|
We also have an R implementation of the [DOTools](https://github.com/MarianoRuzJurado/DOtools). This can be
|
|
84
|
-
installed
|
|
90
|
+
installed from Bioconductor:
|
|
85
91
|
|
|
86
92
|
```R
|
|
93
|
+
if (!requireNamespace("BiocManager", quietly=TRUE)) {
|
|
94
|
+
install.packages("BiocManager")
|
|
95
|
+
}
|
|
96
|
+
BiocManager::install("DOtools")
|
|
87
97
|
devtools::install_github("MarianoRuzJurado/DOtools")
|
|
88
98
|
```
|
|
89
99
|
|
|
100
|
+
The developmental version can be downloaded using `devtools`:
|
|
101
|
+
|
|
102
|
+
```R
|
|
103
|
+
devtools::install_github("MarianoRuzJurado/DOtools", ref="devel")
|
|
104
|
+
```
|
|
105
|
+
|
|
90
106
|
## Release notes
|
|
91
107
|
|
|
92
108
|
See the [changelog][].
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Benchmarking: `bm`
|
|
2
|
+
The benchmarking module contains functions to evaluate how well specific processing
|
|
3
|
+
steps worked, for example integration.
|
|
4
|
+
|
|
5
|
+
## Batch correction metrics
|
|
6
|
+
```{eval-rst}
|
|
7
|
+
.. module:: dotools_py.bm
|
|
8
|
+
.. currentmodule:: dotools_py
|
|
9
|
+
|
|
10
|
+
.. autosummary::
|
|
11
|
+
:toctree: generated
|
|
12
|
+
|
|
13
|
+
bm.eval_integration
|
|
14
|
+
bm.kbet
|
|
15
|
+
bm.silhouette_batch
|
|
16
|
+
bm.pcr_comparison
|
|
17
|
+
bm.graph_connectivity
|
|
18
|
+
```
|
|
@@ -12,10 +12,17 @@ AnnData object.
|
|
|
12
12
|
|
|
13
13
|
get.expr
|
|
14
14
|
get.mean_expr
|
|
15
|
-
get.subset
|
|
16
|
-
get.dge_results
|
|
17
15
|
get.log2fc
|
|
18
16
|
get.pcts_cells
|
|
19
|
-
get.
|
|
17
|
+
get.dge_results
|
|
20
18
|
```
|
|
21
19
|
|
|
20
|
+
## Object transformation
|
|
21
|
+
```{eval-rst}
|
|
22
|
+
.. autosummary::
|
|
23
|
+
:toctree: generated
|
|
24
|
+
|
|
25
|
+
get.subset
|
|
26
|
+
get.pseudobulk
|
|
27
|
+
get.layer_swap
|
|
28
|
+
```
|
|
@@ -5,19 +5,21 @@ Import dotools_py as:
|
|
|
5
5
|
import dotools_py as do
|
|
6
6
|
```
|
|
7
7
|
|
|
8
|
-
```{toctree}
|
|
9
|
-
:maxdepth: 1
|
|
10
|
-
|
|
11
|
-
settings
|
|
12
|
-
dt
|
|
13
|
-
get
|
|
14
|
-
```
|
|
15
|
-
|
|
16
8
|
```{toctree}
|
|
17
9
|
:maxdepth: 2
|
|
18
10
|
|
|
19
11
|
pp
|
|
20
12
|
tl
|
|
21
13
|
pl
|
|
14
|
+
get
|
|
15
|
+
io
|
|
22
16
|
utility
|
|
23
17
|
```
|
|
18
|
+
|
|
19
|
+
```{toctree}
|
|
20
|
+
:maxdepth: 1
|
|
21
|
+
|
|
22
|
+
dt
|
|
23
|
+
bm
|
|
24
|
+
settings
|
|
25
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Input/Output: `io`
|
|
2
|
+
The `io` module contains functions to read and save data.
|
|
3
|
+
|
|
4
|
+
## Objects
|
|
5
|
+
```{eval-rst}
|
|
6
|
+
.. module:: dotools_py.io
|
|
7
|
+
.. currentmodule:: dotools_py
|
|
8
|
+
|
|
9
|
+
.. autosummary::
|
|
10
|
+
:toctree: generated
|
|
11
|
+
|
|
12
|
+
io.read_h5ad
|
|
13
|
+
io.read_zarr
|
|
14
|
+
io.read_rds
|
|
15
|
+
io.save_rds
|
|
16
|
+
io.read_10x_mtx
|
|
17
|
+
io.read_10x_h5
|
|
18
|
+
io.read_mtx
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## DataFrames
|
|
22
|
+
```{eval-rst}
|
|
23
|
+
.. autosummary::
|
|
24
|
+
:toctree: generated
|
|
25
|
+
|
|
26
|
+
io.read_excel
|
|
27
|
+
io.read_csv
|
|
28
|
+
io.read_parquet
|
|
29
|
+
```
|
|
@@ -3,23 +3,48 @@
|
|
|
3
3
|
The plotting module {mod}`dotools_py.pl` contains a collection of
|
|
4
4
|
functions for enhance visualization of sc/snRNA-seq data.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## Categorical plots
|
|
7
7
|
```{eval-rst}
|
|
8
8
|
.. module:: dotools_py.pl
|
|
9
9
|
.. currentmodule:: dotools_py
|
|
10
10
|
|
|
11
|
+
.. autosummary::
|
|
12
|
+
:toctree: generated
|
|
13
|
+
|
|
14
|
+
pl.barplot
|
|
15
|
+
pl.violinplot
|
|
16
|
+
pl.boxplot
|
|
17
|
+
pl.lineplot
|
|
18
|
+
pl.ridgeplot
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Embeddings plots
|
|
22
|
+
```{eval-rst}
|
|
11
23
|
.. autosummary::
|
|
12
24
|
:toctree: generated
|
|
13
25
|
|
|
14
26
|
pl.embedding
|
|
15
27
|
pl.split_embeddding
|
|
16
28
|
pl.umap
|
|
29
|
+
pl.density
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Matrix plots
|
|
33
|
+
```{eval-rst}
|
|
34
|
+
.. autosummary::
|
|
35
|
+
:toctree: generated
|
|
36
|
+
|
|
17
37
|
pl.dotplot
|
|
18
38
|
pl.heatmap
|
|
19
|
-
pl.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
39
|
+
pl.heatmap_foldchange
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Statistical plots
|
|
44
|
+
```{eval-rst}
|
|
45
|
+
.. autosummary::
|
|
46
|
+
:toctree: generated
|
|
47
|
+
|
|
23
48
|
pl.cell_composition
|
|
24
49
|
pl.split_bar_gsea
|
|
25
50
|
pl.correlation
|
|
@@ -15,12 +15,9 @@ analysing sc/snRNA-seq with different implementations building on packages from
|
|
|
15
15
|
|
|
16
16
|
pp.run_cellbender
|
|
17
17
|
pp.importer_py
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.. autosummary::
|
|
23
|
-
:toctree: generated
|
|
18
|
+
pp.quality_control
|
|
19
|
+
pp.log_normalize
|
|
20
|
+
pp.sctransform_normalize
|
|
21
|
+
pp.find_doublets
|
|
24
22
|
|
|
25
|
-
pp.sctransform_normalise
|
|
26
23
|
```
|
|
@@ -13,6 +13,9 @@ analysis and statistical methods.
|
|
|
13
13
|
:toctree: generated
|
|
14
14
|
|
|
15
15
|
tl.integrate_data
|
|
16
|
+
tl.run_scvi
|
|
17
|
+
tl.run_scanvi
|
|
18
|
+
tl.run_harmony
|
|
16
19
|
tl.auto_annot
|
|
17
20
|
tl.reclustering
|
|
18
21
|
tl.full_recluster
|
|
@@ -25,6 +28,7 @@ analysis and statistical methods.
|
|
|
25
28
|
.. autosummary::
|
|
26
29
|
:toctree: generated
|
|
27
30
|
|
|
31
|
+
tl.DGEAnalysis
|
|
28
32
|
tl.rank_genes_groups
|
|
29
33
|
tl.rank_genes_condition
|
|
30
34
|
tl.rank_genes_pseudobulk
|
|
@@ -3,28 +3,21 @@ The utility module is collection of functions useful for
|
|
|
3
3
|
the analysis.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## General
|
|
7
7
|
```{eval-rst}
|
|
8
8
|
.. module:: dotools_py.utility
|
|
9
9
|
.. currentmodule:: dotools_py
|
|
10
10
|
|
|
11
|
-
.. autosummary::
|
|
12
|
-
:toctree: generated
|
|
13
|
-
|
|
14
|
-
utility.save_rds
|
|
15
|
-
utility.read_rds
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## General
|
|
19
|
-
```{eval-rst}
|
|
20
11
|
.. autosummary::
|
|
21
12
|
:toctree: generated
|
|
22
13
|
|
|
23
14
|
utility.free_memory
|
|
15
|
+
utility.create_report
|
|
24
16
|
utility.transfer_labels
|
|
25
17
|
utility.add_gene_metadata
|
|
26
18
|
```
|
|
27
19
|
|
|
20
|
+
|
|
28
21
|
## Plotting
|
|
29
22
|
```{eval-rst}
|
|
30
23
|
.. autosummary::
|
|
@@ -10,6 +10,11 @@ from datetime import datetime
|
|
|
10
10
|
from importlib.metadata import metadata
|
|
11
11
|
from pathlib import Path, PurePosixPath
|
|
12
12
|
import matplotlib
|
|
13
|
+
from functools import partial
|
|
14
|
+
from docutils import nodes
|
|
15
|
+
from typing import TYPE_CHECKING
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from sphinx.application import Sphinx
|
|
13
18
|
|
|
14
19
|
HERE = Path(__file__).parent
|
|
15
20
|
sys.path.insert(0, str(HERE / "extensions"))
|
|
@@ -114,11 +119,29 @@ intersphinx_mapping = {
|
|
|
114
119
|
"scvi-tools": ("https://docs.scvi-tools.org/en/stable/", None)
|
|
115
120
|
}
|
|
116
121
|
|
|
122
|
+
autodoc_mock_imports = ["spatialdata"]
|
|
123
|
+
|
|
117
124
|
# List of patterns, relative to source directory, that match files and
|
|
118
125
|
# directories to ignore when looking for source files.
|
|
119
126
|
# This pattern also affects html_static_path and html_extra_path.
|
|
120
127
|
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
|
|
121
128
|
|
|
129
|
+
def setup(app: Sphinx):
|
|
130
|
+
"""App setup hook."""
|
|
131
|
+
app.add_generic_role("small", partial(nodes.inline, classes=["small"]))
|
|
132
|
+
app.add_generic_role("smaller", partial(nodes.inline, classes=["smaller"]))
|
|
133
|
+
app.add_config_value(
|
|
134
|
+
"recommonmark_config",
|
|
135
|
+
{
|
|
136
|
+
"auto_toc_tree_section": "Contents",
|
|
137
|
+
"enable_auto_toc_tree": True,
|
|
138
|
+
"enable_math": True,
|
|
139
|
+
"enable_inline_math": False,
|
|
140
|
+
"enable_eval_rst": True,
|
|
141
|
+
},
|
|
142
|
+
True, # noqa: FBT003
|
|
143
|
+
)
|
|
144
|
+
|
|
122
145
|
|
|
123
146
|
# -- Options for HTML output -------------------------------------------------
|
|
124
147
|
|
|
@@ -4,7 +4,7 @@ DoTools is a convenient and user-friendly package to streamline common workflows
|
|
|
4
4
|
analysis using the scverse ecosystem. It provides high-level wrappers and visualisation functions to help efficiently
|
|
5
5
|
preprocess, analyze, and interpret single-cell data.
|
|
6
6
|
|
|
7
|
-

|
|
8
8
|
|
|
9
9
|
```{eval-rst}
|
|
10
10
|
.. card:: Installation :octicon:`plug;1em;`
|
|
@@ -60,5 +60,18 @@ R version <https://github.com/MarianoRuzJurado/DOtools>
|
|
|
60
60
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
## Logging and reproducibility
|
|
64
|
+
We offer a logging method to allow to track the commands that have been run and
|
|
65
|
+
the output of these commands. To activate it run at the beginning of the session:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
import dotools_py as do
|
|
69
|
+
|
|
70
|
+
do.settings.set_kernel_logger("History.log")
|
|
71
|
+
|
|
72
|
+
# Run at the end to add Session Information.
|
|
73
|
+
do.utility.create_report("History.log")
|
|
74
|
+
```
|
|
75
|
+
|
|
63
76
|
## Citation
|
|
64
77
|
> t.b.a
|