pycea-lineage 0.0.1__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 (72) hide show
  1. pycea_lineage-0.0.1/.codecov.yaml +17 -0
  2. pycea_lineage-0.0.1/.cruft.json +43 -0
  3. pycea_lineage-0.0.1/.editorconfig +15 -0
  4. pycea_lineage-0.0.1/.github/ISSUE_TEMPLATE/bug_report.yml +94 -0
  5. pycea_lineage-0.0.1/.github/ISSUE_TEMPLATE/config.yml +5 -0
  6. pycea_lineage-0.0.1/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
  7. pycea_lineage-0.0.1/.github/workflows/build.yaml +33 -0
  8. pycea_lineage-0.0.1/.github/workflows/release.yaml +34 -0
  9. pycea_lineage-0.0.1/.github/workflows/test.yaml +59 -0
  10. pycea_lineage-0.0.1/.gitignore +41 -0
  11. pycea_lineage-0.0.1/.pre-commit-config.yaml +47 -0
  12. pycea_lineage-0.0.1/.readthedocs.yaml +18 -0
  13. pycea_lineage-0.0.1/CHANGELOG.md +15 -0
  14. pycea_lineage-0.0.1/LICENSE +29 -0
  15. pycea_lineage-0.0.1/PKG-INFO +136 -0
  16. pycea_lineage-0.0.1/README.md +58 -0
  17. pycea_lineage-0.0.1/biome.jsonc +16 -0
  18. pycea_lineage-0.0.1/docs/Makefile +20 -0
  19. pycea_lineage-0.0.1/docs/_static/.gitkeep +0 -0
  20. pycea_lineage-0.0.1/docs/_static/css/custom.css +4 -0
  21. pycea_lineage-0.0.1/docs/_static/img/pycea_logo.svg +58 -0
  22. pycea_lineage-0.0.1/docs/_templates/.gitkeep +0 -0
  23. pycea_lineage-0.0.1/docs/_templates/autosummary/class.rst +61 -0
  24. pycea_lineage-0.0.1/docs/api.md +74 -0
  25. pycea_lineage-0.0.1/docs/changelog.md +3 -0
  26. pycea_lineage-0.0.1/docs/conf.py +141 -0
  27. pycea_lineage-0.0.1/docs/contributing.md +214 -0
  28. pycea_lineage-0.0.1/docs/extensions/typed_returns.py +32 -0
  29. pycea_lineage-0.0.1/docs/index.md +16 -0
  30. pycea_lineage-0.0.1/docs/notebooks/getting-started.ipynb +598 -0
  31. pycea_lineage-0.0.1/docs/references.bib +65 -0
  32. pycea_lineage-0.0.1/docs/references.md +5 -0
  33. pycea_lineage-0.0.1/pyproject.toml +149 -0
  34. pycea_lineage-0.0.1/src/pycea/__init__.py +7 -0
  35. pycea_lineage-0.0.1/src/pycea/datasets/__init__.py +1 -0
  36. pycea_lineage-0.0.1/src/pycea/datasets/datasets.py +132 -0
  37. pycea_lineage-0.0.1/src/pycea/get/__init__.py +1 -0
  38. pycea_lineage-0.0.1/src/pycea/get/get_palette.py +120 -0
  39. pycea_lineage-0.0.1/src/pycea/pl/__init__.py +1 -0
  40. pycea_lineage-0.0.1/src/pycea/pl/_docs.py +41 -0
  41. pycea_lineage-0.0.1/src/pycea/pl/_utils.py +318 -0
  42. pycea_lineage-0.0.1/src/pycea/pl/plot_tree.py +605 -0
  43. pycea_lineage-0.0.1/src/pycea/pp/__init__.py +1 -0
  44. pycea_lineage-0.0.1/src/pycea/pp/setup_tree.py +86 -0
  45. pycea_lineage-0.0.1/src/pycea/tl/__init__.py +8 -0
  46. pycea_lineage-0.0.1/src/pycea/tl/_metrics.py +63 -0
  47. pycea_lineage-0.0.1/src/pycea/tl/_utils.py +112 -0
  48. pycea_lineage-0.0.1/src/pycea/tl/ancestral_states.py +340 -0
  49. pycea_lineage-0.0.1/src/pycea/tl/autocorr.py +147 -0
  50. pycea_lineage-0.0.1/src/pycea/tl/clades.py +153 -0
  51. pycea_lineage-0.0.1/src/pycea/tl/distance.py +307 -0
  52. pycea_lineage-0.0.1/src/pycea/tl/neighbor_distance.py +121 -0
  53. pycea_lineage-0.0.1/src/pycea/tl/sort.py +47 -0
  54. pycea_lineage-0.0.1/src/pycea/tl/tree_distance.py +251 -0
  55. pycea_lineage-0.0.1/src/pycea/tl/tree_neighbors.py +224 -0
  56. pycea_lineage-0.0.1/src/pycea/utils.py +214 -0
  57. pycea_lineage-0.0.1/tests/conftest.py +20 -0
  58. pycea_lineage-0.0.1/tests/data/tdata.h5ad +0 -0
  59. pycea_lineage-0.0.1/tests/plots/readme.md +1 -0
  60. pycea_lineage-0.0.1/tests/test_ancestral_states.py +119 -0
  61. pycea_lineage-0.0.1/tests/test_autocorr.py +58 -0
  62. pycea_lineage-0.0.1/tests/test_clades.py +102 -0
  63. pycea_lineage-0.0.1/tests/test_datasets.py +31 -0
  64. pycea_lineage-0.0.1/tests/test_distance.py +165 -0
  65. pycea_lineage-0.0.1/tests/test_neighbor_distance.py +68 -0
  66. pycea_lineage-0.0.1/tests/test_plot_tree.py +123 -0
  67. pycea_lineage-0.0.1/tests/test_plot_utils.py +193 -0
  68. pycea_lineage-0.0.1/tests/test_setup_tree.py +50 -0
  69. pycea_lineage-0.0.1/tests/test_sort.py +30 -0
  70. pycea_lineage-0.0.1/tests/test_tree_distance.py +121 -0
  71. pycea_lineage-0.0.1/tests/test_tree_neighbors.py +82 -0
  72. pycea_lineage-0.0.1/tests/test_utils.py +155 -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: 85
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": "94ef9fb6f9ad8cfe65a3d9575679c03c80c49cd1",
4
+ "checkout": "v0.5.0",
5
+ "context": {
6
+ "cookiecutter": {
7
+ "project_name": "pycea",
8
+ "package_name": "pycea",
9
+ "project_description": "Scverse lineage tracing toolkit",
10
+ "author_full_name": "William Colgan",
11
+ "author_email": "wcolgan@mit.edu",
12
+ "github_user": "colganwi",
13
+ "github_repo": "pycea",
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": "94ef9fb6f9ad8cfe65a3d9575679c03c80c49cd1"
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: Scverse Community Forum
4
+ url: https://discourse.scverse.org/
5
+ about: If you have questions about “How to do X”, please ask them here.
@@ -0,0 +1,11 @@
1
+ name: Feature request
2
+ description: Propose a new feature for pycea
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/pycea-lineage
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,59 @@
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
+ test:
22
+ runs-on: ${{ matrix.os }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ include:
28
+ - os: ubuntu-latest
29
+ python: "3.10"
30
+ - os: ubuntu-latest
31
+ python: "3.12"
32
+ - os: ubuntu-latest
33
+ python: "3.12"
34
+ pip-flags: "--pre"
35
+ name: PRE-RELEASE DEPENDENCIES
36
+
37
+ name: ${{ matrix.name }} Python ${{ matrix.python }}
38
+
39
+ env:
40
+ OS: ${{ matrix.os }}
41
+ PYTHON: ${{ matrix.python }}
42
+
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ with:
46
+ filter: blob:none
47
+ fetch-depth: 0
48
+ - name: Install uv
49
+ uses: astral-sh/setup-uv@v5
50
+ with:
51
+ cache-dependency-glob: pyproject.toml
52
+ - name: run tests using hatch
53
+ env:
54
+ MPLBACKEND: agg
55
+ PLATFORM: ${{ matrix.os }}
56
+ DISPLAY: :42
57
+ run: uvx hatch test --cover --python ${{ matrix.python }}
58
+ - name: Upload coverage
59
+ uses: codecov/codecov-action@v4
@@ -0,0 +1,41 @@
1
+ # Temp files
2
+ .DS_Store
3
+ *~
4
+ buck-out/
5
+ .ipynb_checkpoints/
6
+
7
+ # Compiled files
8
+ .venv/
9
+ __pycache__/
10
+ .mypy_cache/
11
+ .ruff_cache/
12
+
13
+ # Distribution / packaging
14
+ /build/
15
+ /dist/
16
+ /*.egg-info/
17
+
18
+ # Tests and coverage
19
+ /.pytest_cache/
20
+ /.cache/
21
+ /data/
22
+
23
+ # docs
24
+ /docs/generated/
25
+ /docs/_build/
26
+
27
+ # IDEs
28
+ /.idea/
29
+ /.vscode/
30
+
31
+ # Plots
32
+ /tests/plots/*.png
33
+
34
+ # Node modules
35
+ node_modules/
36
+
37
+ # Environment
38
+ environment.yml
39
+
40
+ # Datasets
41
+ /datasets/
@@ -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.2
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,18 @@
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: false
11
+ python:
12
+ install:
13
+ - method: pip
14
+ path: .
15
+ extra_requirements:
16
+ - doc
17
+ formats:
18
+ - pdf
@@ -0,0 +1,15 @@
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
+ ## [Unreleased]
12
+
13
+ ### Added
14
+
15
+ - Basic tool, preprocessing and plotting functions
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, William Colgan
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.
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.4
2
+ Name: pycea-lineage
3
+ Version: 0.0.1
4
+ Summary: Scverse lineage tracing toolkit
5
+ Project-URL: Documentation, https://pycea.readthedocs.io/
6
+ Project-URL: Homepage, https://github.com/YosefLab/pycea
7
+ Project-URL: Source, https://github.com/YosefLab/pycea
8
+ Author: William Colgan
9
+ Maintainer-email: William Colgan <wcolgan@mit.edu>
10
+ License: BSD 3-Clause License
11
+
12
+ Copyright (c) 2024, William Colgan
13
+ All rights reserved.
14
+
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are met:
17
+
18
+ 1. Redistributions of source code must retain the above copyright notice, this
19
+ list of conditions and the following disclaimer.
20
+
21
+ 2. Redistributions in binary form must reproduce the above copyright notice,
22
+ this list of conditions and the following disclaimer in the documentation
23
+ and/or other materials provided with the distribution.
24
+
25
+ 3. Neither the name of the copyright holder nor the names of its
26
+ contributors may be used to endorse or promote products derived from
27
+ this software without specific prior written permission.
28
+
29
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
32
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
33
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
36
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
37
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
+ License-File: LICENSE
40
+ Classifier: Programming Language :: Python :: 3 :: Only
41
+ Classifier: Programming Language :: Python :: 3.10
42
+ Classifier: Programming Language :: Python :: 3.11
43
+ Classifier: Programming Language :: Python :: 3.12
44
+ Classifier: Programming Language :: Python :: 3.13
45
+ Requires-Python: >=3.10
46
+ Requires-Dist: cycler
47
+ Requires-Dist: matplotlib
48
+ Requires-Dist: networkx
49
+ Requires-Dist: numpy
50
+ Requires-Dist: pandas
51
+ Requires-Dist: requests
52
+ Requires-Dist: scanpy>=1.10
53
+ Requires-Dist: scikit-learn
54
+ Requires-Dist: scipy
55
+ Requires-Dist: session-info
56
+ Requires-Dist: treedata>=0.2
57
+ Provides-Extra: dev
58
+ Requires-Dist: pre-commit; extra == 'dev'
59
+ Requires-Dist: twine>=4.0.2; extra == 'dev'
60
+ Provides-Extra: doc
61
+ Requires-Dist: docutils!=0.18.*,!=0.19.*,>=0.8; extra == 'doc'
62
+ Requires-Dist: ipykernel; extra == 'doc'
63
+ Requires-Dist: ipython; extra == 'doc'
64
+ Requires-Dist: myst-nb>=1.1; extra == 'doc'
65
+ Requires-Dist: pandas; extra == 'doc'
66
+ Requires-Dist: setuptools; extra == 'doc'
67
+ Requires-Dist: sphinx-autodoc-typehints; extra == 'doc'
68
+ Requires-Dist: sphinx-book-theme>=1; extra == 'doc'
69
+ Requires-Dist: sphinx-copybutton; extra == 'doc'
70
+ Requires-Dist: sphinx-tabs; extra == 'doc'
71
+ Requires-Dist: sphinx>=4; extra == 'doc'
72
+ Requires-Dist: sphinxcontrib-bibtex>=1; extra == 'doc'
73
+ Requires-Dist: sphinxext-opengraph; extra == 'doc'
74
+ Provides-Extra: test
75
+ Requires-Dist: coverage; extra == 'test'
76
+ Requires-Dist: pytest; extra == 'test'
77
+ Description-Content-Type: text/markdown
78
+
79
+ [![Tests][badge-tests]][link-tests]
80
+ [![Documentation][badge-docs]][link-docs]
81
+
82
+ [badge-tests]: https://img.shields.io/github/actions/workflow/status/YosefLab/pycea/test.yaml?branch=main
83
+ [link-tests]: https://github.com/YosefLab/pycea/actions/workflows/test.yml
84
+ [badge-docs]: https://img.shields.io/readthedocs/pycea
85
+
86
+ <img
87
+ src="https://raw.githubusercontent.com/YosefLab/pycea/main/docs/_static/img/pycea_logo.svg"
88
+ class="dark-light" align="right" width="350" alt="image"
89
+ />
90
+
91
+ # Pycea - lineage tracing analysis
92
+
93
+ Scverse lineage tracing analysis toolkit built to work with [TreeData][treedata].
94
+
95
+ To learn more about pycea, please refer to the [documentation][link-docs] or the [getting started guide][link-getting-started].
96
+
97
+ ## Installation
98
+
99
+ You need to have Python 3.10 or newer installed on your system. If you don't have
100
+ Python installed, we recommend installing [Mambaforge](https://github.com/conda-forge/miniforge#mambaforge).
101
+
102
+ There are several alternative options to install pycea:
103
+
104
+ <!--
105
+ 1) Install the latest release of `pycea` from `PyPI <https://pypi.org/project/pycea/>`_:
106
+
107
+ ```bash
108
+ pip install pycea
109
+ ```
110
+ -->
111
+
112
+ 1. Install the latest development version:
113
+
114
+ ```bash
115
+ pip install git+https://github.com/YosefLab/pycea.git@main
116
+ ```
117
+
118
+ ## Release notes
119
+
120
+ See the [changelog][changelog].
121
+
122
+ ## Contact
123
+
124
+ For questions and bug reports please use the [issue tracker][issue-tracker].
125
+
126
+ ## Citation
127
+
128
+ > t.b.a
129
+
130
+ [treedata]: https://treedata.readthedocs.io/
131
+ [scverse-discourse]: https://discourse.scverse.org/
132
+ [issue-tracker]: https://github.com/YosefLab/pycea/issues
133
+ [changelog]: https://pycea.readthedocs.io/latest/changelog.html
134
+ [link-docs]: https://pycea.readthedocs.io
135
+ [link-api]: https://pycea.readthedocs.io/latest/api.html
136
+ [link-getting-started]: https://pycea.readthedocs.io/en/latest/notebooks/getting-started.html
@@ -0,0 +1,58 @@
1
+ [![Tests][badge-tests]][link-tests]
2
+ [![Documentation][badge-docs]][link-docs]
3
+
4
+ [badge-tests]: https://img.shields.io/github/actions/workflow/status/YosefLab/pycea/test.yaml?branch=main
5
+ [link-tests]: https://github.com/YosefLab/pycea/actions/workflows/test.yml
6
+ [badge-docs]: https://img.shields.io/readthedocs/pycea
7
+
8
+ <img
9
+ src="https://raw.githubusercontent.com/YosefLab/pycea/main/docs/_static/img/pycea_logo.svg"
10
+ class="dark-light" align="right" width="350" alt="image"
11
+ />
12
+
13
+ # Pycea - lineage tracing analysis
14
+
15
+ Scverse lineage tracing analysis toolkit built to work with [TreeData][treedata].
16
+
17
+ To learn more about pycea, please refer to the [documentation][link-docs] or the [getting started guide][link-getting-started].
18
+
19
+ ## Installation
20
+
21
+ You need to have Python 3.10 or newer installed on your system. If you don't have
22
+ Python installed, we recommend installing [Mambaforge](https://github.com/conda-forge/miniforge#mambaforge).
23
+
24
+ There are several alternative options to install pycea:
25
+
26
+ <!--
27
+ 1) Install the latest release of `pycea` from `PyPI <https://pypi.org/project/pycea/>`_:
28
+
29
+ ```bash
30
+ pip install pycea
31
+ ```
32
+ -->
33
+
34
+ 1. Install the latest development version:
35
+
36
+ ```bash
37
+ pip install git+https://github.com/YosefLab/pycea.git@main
38
+ ```
39
+
40
+ ## Release notes
41
+
42
+ See the [changelog][changelog].
43
+
44
+ ## Contact
45
+
46
+ For questions and bug reports please use the [issue tracker][issue-tracker].
47
+
48
+ ## Citation
49
+
50
+ > t.b.a
51
+
52
+ [treedata]: https://treedata.readthedocs.io/
53
+ [scverse-discourse]: https://discourse.scverse.org/
54
+ [issue-tracker]: https://github.com/YosefLab/pycea/issues
55
+ [changelog]: https://pycea.readthedocs.io/latest/changelog.html
56
+ [link-docs]: https://pycea.readthedocs.io
57
+ [link-api]: https://pycea.readthedocs.io/latest/api.html
58
+ [link-getting-started]: https://pycea.readthedocs.io/en/latest/notebooks/getting-started.html
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3
+ "formatter": { "useEditorconfig": true },
4
+ "overrides": [
5
+ {
6
+ "include": ["./.vscode/*.json", "**/*.jsonc"],
7
+ "json": {
8
+ "formatter": { "trailingCommas": "all" },
9
+ "parser": {
10
+ "allowComments": true,
11
+ "allowTrailingCommas": true,
12
+ },
13
+ },
14
+ },
15
+ ],
16
+ }