DOTools-py 0.0.2__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.
Files changed (123) hide show
  1. dotools_py-0.0.2/.codecov.yaml +26 -0
  2. dotools_py-0.0.2/.cruft.json +43 -0
  3. dotools_py-0.0.2/.editorconfig +15 -0
  4. dotools_py-0.0.2/.github/ISSUE_TEMPLATE/bug_report.yml +94 -0
  5. dotools_py-0.0.2/.github/ISSUE_TEMPLATE/config.yml +5 -0
  6. dotools_py-0.0.2/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
  7. dotools_py-0.0.2/.github/workflows/build.yaml +33 -0
  8. dotools_py-0.0.2/.github/workflows/release.yaml +34 -0
  9. dotools_py-0.0.2/.github/workflows/test.yaml +101 -0
  10. dotools_py-0.0.2/.gitignore +20 -0
  11. dotools_py-0.0.2/.idea/.gitignore +3 -0
  12. dotools_py-0.0.2/.idea/DOTools_py.iml +17 -0
  13. dotools_py-0.0.2/.idea/dictionaries/project.xml +8 -0
  14. dotools_py-0.0.2/.idea/inspectionProfiles/Project_Default.xml +18 -0
  15. dotools_py-0.0.2/.idea/inspectionProfiles/profiles_settings.xml +7 -0
  16. dotools_py-0.0.2/.idea/misc.xml +7 -0
  17. dotools_py-0.0.2/.idea/modules.xml +8 -0
  18. dotools_py-0.0.2/.idea/rGraphicsSettings.xml +9 -0
  19. dotools_py-0.0.2/.idea/rSettings.xml +7 -0
  20. dotools_py-0.0.2/.idea/vcs.xml +6 -0
  21. dotools_py-0.0.2/.pre-commit-config.yaml +47 -0
  22. dotools_py-0.0.2/.readthedocs.yaml +19 -0
  23. dotools_py-0.0.2/.vscode/extensions.json +18 -0
  24. dotools_py-0.0.2/.vscode/launch.json +33 -0
  25. dotools_py-0.0.2/.vscode/settings.json +18 -0
  26. dotools_py-0.0.2/CHANGELOG.md +13 -0
  27. dotools_py-0.0.2/LICENSE +21 -0
  28. dotools_py-0.0.2/PKG-INFO +225 -0
  29. dotools_py-0.0.2/README.md +111 -0
  30. dotools_py-0.0.2/biome.jsonc +16 -0
  31. dotools_py-0.0.2/docs/_static/.gitkeep +0 -0
  32. dotools_py-0.0.2/docs/_static/css/custom.css +19 -0
  33. dotools_py-0.0.2/docs/_static/figures/DoTools_Overview.png +0 -0
  34. dotools_py-0.0.2/docs/_static/figures/LogoDoTools.png +0 -0
  35. dotools_py-0.0.2/docs/_templates/.gitkeep +0 -0
  36. dotools_py-0.0.2/docs/_templates/autosummary/class.rst +61 -0
  37. dotools_py-0.0.2/docs/api/dt.md +24 -0
  38. dotools_py-0.0.2/docs/api/generated/MarkersCellsHeart.png +0 -0
  39. dotools_py-0.0.2/docs/api/get.md +21 -0
  40. dotools_py-0.0.2/docs/api/index.md +23 -0
  41. dotools_py-0.0.2/docs/api/pl.md +49 -0
  42. dotools_py-0.0.2/docs/api/pp.md +26 -0
  43. dotools_py-0.0.2/docs/api/settings.md +14 -0
  44. dotools_py-0.0.2/docs/api/tl.md +36 -0
  45. dotools_py-0.0.2/docs/api/utility.md +46 -0
  46. dotools_py-0.0.2/docs/changelog.md +3 -0
  47. dotools_py-0.0.2/docs/cite.md +10 -0
  48. dotools_py-0.0.2/docs/conf.py +166 -0
  49. dotools_py-0.0.2/docs/extensions/typed_returns.py +32 -0
  50. dotools_py-0.0.2/docs/figures/LogoDoTools.png +0 -0
  51. dotools_py-0.0.2/docs/index.md +64 -0
  52. dotools_py-0.0.2/docs/installation.md +60 -0
  53. dotools_py-0.0.2/docs/notebooks/Running_CellBender.ipynb +772 -0
  54. dotools_py-0.0.2/docs/notebooks/dea.ipynb +1482 -0
  55. dotools_py-0.0.2/docs/notebooks/example_10X.ipynb +2300 -0
  56. dotools_py-0.0.2/docs/notebooks/example_visualisation.ipynb +738 -0
  57. dotools_py-0.0.2/docs/notebooks/index.md +24 -0
  58. dotools_py-0.0.2/docs/references.bib +314 -0
  59. dotools_py-0.0.2/docs/references.md +5 -0
  60. dotools_py-0.0.2/pyproject.toml +209 -0
  61. dotools_py-0.0.2/src/dotools_py/__init__.py +33 -0
  62. dotools_py-0.0.2/src/dotools_py/_experimental/__init__.py +0 -0
  63. dotools_py-0.0.2/src/dotools_py/_experimental/_deprecated/__init__.py +0 -0
  64. dotools_py-0.0.2/src/dotools_py/_experimental/_deprecated/_expression.py +761 -0
  65. dotools_py-0.0.2/src/dotools_py/_experimental/_deprecated/_language.py +398 -0
  66. dotools_py-0.0.2/src/dotools_py/_experimental/_deprecated/_statistics.py +403 -0
  67. dotools_py-0.0.2/src/dotools_py/_experimental/gr/__init__.py +0 -0
  68. dotools_py-0.0.2/src/dotools_py/_experimental/gr/_generic.py +382 -0
  69. dotools_py-0.0.2/src/dotools_py/dt/__init__.py +2 -0
  70. dotools_py-0.0.2/src/dotools_py/dt/_datasets.py +112 -0
  71. dotools_py-0.0.2/src/dotools_py/dt/_markers.py +150 -0
  72. dotools_py-0.0.2/src/dotools_py/dt/example_reduced.h5ad +0 -0
  73. dotools_py-0.0.2/src/dotools_py/get/__init__.py +7 -0
  74. dotools_py-0.0.2/src/dotools_py/get/_generic.py +626 -0
  75. dotools_py-0.0.2/src/dotools_py/logger.py +87 -0
  76. dotools_py-0.0.2/src/dotools_py/pl/_Classes.py +358 -0
  77. dotools_py-0.0.2/src/dotools_py/pl/_Plotter.py +567 -0
  78. dotools_py-0.0.2/src/dotools_py/pl/_StatsPlotter.py +716 -0
  79. dotools_py-0.0.2/src/dotools_py/pl/__init__.py +8 -0
  80. dotools_py-0.0.2/src/dotools_py/pl/_dotplot.py +2062 -0
  81. dotools_py-0.0.2/src/dotools_py/pl/_downstream.py +868 -0
  82. dotools_py-0.0.2/src/dotools_py/pl/_embeddings.py +481 -0
  83. dotools_py-0.0.2/src/dotools_py/pl/_experimental.py +205 -0
  84. dotools_py-0.0.2/src/dotools_py/pl/_expression.py +581 -0
  85. dotools_py-0.0.2/src/dotools_py/pl/_heatmap.py +475 -0
  86. dotools_py-0.0.2/src/dotools_py/pl/_plot_utils.py +103 -0
  87. dotools_py-0.0.2/src/dotools_py/pl/_visium.py +194 -0
  88. dotools_py-0.0.2/src/dotools_py/pp/__init__.py +2 -0
  89. dotools_py-0.0.2/src/dotools_py/pp/_cellbender.py +179 -0
  90. dotools_py-0.0.2/src/dotools_py/pp/_importer.py +583 -0
  91. dotools_py-0.0.2/src/dotools_py/settings/__init__.py +1 -0
  92. dotools_py-0.0.2/src/dotools_py/settings/_configure.py +185 -0
  93. dotools_py-0.0.2/src/dotools_py/settings/_global_parameters.py +16 -0
  94. dotools_py-0.0.2/src/dotools_py/tl/_Statistical.py +812 -0
  95. dotools_py-0.0.2/src/dotools_py/tl/__init__.py +10 -0
  96. dotools_py-0.0.2/src/dotools_py/tl/_analysis.py +772 -0
  97. dotools_py-0.0.2/src/dotools_py/tl/_get_stats.py +776 -0
  98. dotools_py-0.0.2/src/dotools_py/tl/_rankGenes.py +1112 -0
  99. dotools_py-0.0.2/src/dotools_py/util_scripts/_ReadWrite_RDS.R +285 -0
  100. dotools_py-0.0.2/src/dotools_py/util_scripts/_run_CCA.R +91 -0
  101. dotools_py-0.0.2/src/dotools_py/util_scripts/_run_CellBender.sh +186 -0
  102. dotools_py-0.0.2/src/dotools_py/util_scripts/_run_MAST.R +118 -0
  103. dotools_py-0.0.2/src/dotools_py/util_scripts/_run_SCTransform.R +60 -0
  104. dotools_py-0.0.2/src/dotools_py/util_scripts/_run_edgeR.R +104 -0
  105. dotools_py-0.0.2/src/dotools_py/util_scripts/_run_scDblFinder.R +63 -0
  106. dotools_py-0.0.2/src/dotools_py/utility/HomoSapiens_GeneMetadata.pickle.gz +0 -0
  107. dotools_py-0.0.2/src/dotools_py/utility/MusMusculus_GeneMetadata.pickle.gz +0 -0
  108. dotools_py-0.0.2/src/dotools_py/utility/__init__.py +4 -0
  109. dotools_py-0.0.2/src/dotools_py/utility/_convertion.py +262 -0
  110. dotools_py-0.0.2/src/dotools_py/utility/_general.py +136 -0
  111. dotools_py-0.0.2/src/dotools_py/utility/_plotting.py +101 -0
  112. dotools_py-0.0.2/src/dotools_py/utility/_spatial.py +64 -0
  113. dotools_py-0.0.2/src/dotools_py/utils.py +404 -0
  114. dotools_py-0.0.2/tests/conftest.py +12 -0
  115. dotools_py-0.0.2/tests/data/test_data.py +62 -0
  116. dotools_py-0.0.2/tests/get/test_generic.py +135 -0
  117. dotools_py-0.0.2/tests/plotting/test_plotting.py +234 -0
  118. dotools_py-0.0.2/tests/pp/test_importer.py +46 -0
  119. dotools_py-0.0.2/tests/tools/test_analysis.py +92 -0
  120. dotools_py-0.0.2/tests/tools/test_statistic.py +89 -0
  121. dotools_py-0.0.2/tests/utility/test_general.py +44 -0
  122. dotools_py-0.0.2/tests/utility/test_logger.py +14 -0
  123. dotools_py-0.0.2/tests/utility/test_plotting.py +44 -0
@@ -0,0 +1,26 @@
1
+ # Based on pydata/xarray
2
+ codecov:
3
+ require_ci_to_pass: no
4
+
5
+ coverage:
6
+ ignore:
7
+ - "src/dotools_py/tl/_statistics.py"
8
+ - "src/dotools_py/_experimental/_deprecated/_language.py"
9
+ - "src/dotools_py/utility/_convertion.py" # R code
10
+ - "src/dotools_py/_experimental/_deprecated/_statistics.py" # R code
11
+ - "src/dotools_py/utility/_spatial.py" # No example currently
12
+ - "src/dotools_py/pl/_visium.py" # No example currently
13
+ - "src/dotools_py/_experimental/_deprecated/_expression.py"
14
+ - "src/dotools_py/tl/_Statistical.py"
15
+ status:
16
+ project:
17
+ default:
18
+ # Require 50% coverage
19
+ target: 50
20
+ #patch: false
21
+ changes: false
22
+
23
+ comment:
24
+ layout: diff, flags, files
25
+ behavior: once
26
+ require_base: false
@@ -0,0 +1,43 @@
1
+ {
2
+ "template": "https://github.com/scverse/cookiecutter-scverse",
3
+ "commit": "001285e45d2a513d51a7b6551a9af271cb7c456b",
4
+ "checkout": null,
5
+ "context": {
6
+ "cookiecutter": {
7
+ "project_name": "DOTools_py",
8
+ "package_name": "dotools_py",
9
+ "project_description": "Functions for sc/snRNAseq Analysis and Visualisation",
10
+ "author_full_name": "David Rodriguez Morales",
11
+ "author_email": "rodriguezmorales@med.uni-frankfurt.de",
12
+ "github_user": "davidrm-bio",
13
+ "github_repo": "DOTools_py",
14
+ "license": "MIT 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": "001285e45d2a513d51a7b6551a9af271cb7c456b"
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,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name:
4
+ url:
5
+ about:
@@ -0,0 +1,11 @@
1
+ name: Feature request
2
+ description: Propose a new feature for DOTools_py
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/dotools_py
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,101 @@
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 reports to Codecov
85
+ uses: codecov/codecov-action@v4
86
+ with:
87
+ token: ${{ secrets.CODECOV_TOKEN }}
88
+
89
+ # Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
90
+ # protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
91
+ check:
92
+ name: Tests pass in all hatch environments
93
+ if: always()
94
+ needs:
95
+ - get-environments
96
+ - test
97
+ runs-on: ubuntu-latest
98
+ steps:
99
+ - uses: re-actors/alls-green@release/v1
100
+ with:
101
+ jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,20 @@
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/
@@ -0,0 +1,3 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
6
+ <sourceFolder url="file://$MODULE_DIR$/src/dotools_py" isTestSource="false" />
7
+ </content>
8
+ <orderEntry type="jdk" jdkName="scrna_py10" jdkType="Python SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ </component>
11
+ <component name="PackageRequirementsSettings">
12
+ <option name="requirementsPath" value="" />
13
+ </component>
14
+ <component name="TestRunnerService">
15
+ <option name="PROJECT_TEST_RUNNER" value="py.test" />
16
+ </component>
17
+ </module>
@@ -0,0 +1,8 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="project">
3
+ <words>
4
+ <w>figsize</w>
5
+ <w>gridspec</w>
6
+ </words>
7
+ </dictionary>
8
+ </component>
@@ -0,0 +1,18 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="PyTypeCheckerInspection" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ <inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
6
+ <option name="ignoredIdentifiers">
7
+ <list>
8
+ <option value="dict.*" />
9
+ </list>
10
+ </option>
11
+ </inspection_tool>
12
+ <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
13
+ <option name="processCode" value="true" />
14
+ <option name="processLiterals" value="true" />
15
+ <option name="processComments" value="true" />
16
+ </inspection_tool>
17
+ </profile>
18
+ </component>
@@ -0,0 +1,7 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="PROJECT_PROFILE" value="Default" />
4
+ <option name="USE_PROJECT_PROFILE" value="false" />
5
+ <version value="1.0" />
6
+ </settings>
7
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="do_env" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="scrna_py10" project-jdk-type="Python SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/DOTools_py.iml" filepath="$PROJECT_DIR$/.idea/DOTools_py.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RGraphicsSettings">
4
+ <option name="height" value="224" />
5
+ <option name="resolution" value="75" />
6
+ <option name="version" value="2" />
7
+ <option name="width" value="562" />
8
+ </component>
9
+ </project>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RSettings">
4
+ <option name="interpreterPath" value="/usr/local/bin/R" />
5
+ <option name="loadWorkspace" value="true" />
6
+ </component>
7
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -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.9
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,19 @@
1
+ # https://docs.readthedocs.io/en/stable/config-file/v2.html
2
+ version: 2
3
+ submodules:
4
+ include: all
5
+ build:
6
+ os: ubuntu-20.04
7
+ tools:
8
+ python: "3.11"
9
+ sphinx:
10
+ configuration: docs/conf.py
11
+ fail_on_warning: true # do not change or you will be fired
12
+ python:
13
+ install:
14
+ - method: pip
15
+ path: .
16
+ extra_requirements:
17
+ - doc
18
+ - full
19
+ - dev
@@ -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,13 @@
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
+ ## 1.0.0
12
+
13
+ - Initial release of the package.