Skip to content
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b37477c
Add cluster_decision_tree and cluster_resolution_finder with tests
joe-jhou2 Mar 27, 2025
88306f6
Fix formatting issue
joe-jhou2 Mar 27, 2025
4cd3134
igraph install
joe-jhou2 Mar 27, 2025
0b2f126
formatting fix
joe-jhou2 Mar 27, 2025
6126013
Restructure cluster_resolution_finder and cluster_decision_tree to fo…
joe-jhou2 Mar 28, 2025
12cf89d
Register mpl_image_compare marker in pyproject.toml for pytest-mpl
joe-jhou2 Mar 28, 2025
25569b2
Merge branch 'main' into feature-cluster-decision-tree
joe-jhou2 Mar 28, 2025
1aadcc4
comment out one test
joe-jhou2 Mar 28, 2025
69b16c7
suppress print statements during testing
joe-jhou2 Mar 28, 2025
70dea35
suppress print statements during testing
joe-jhou2 Mar 28, 2025
8e25dfc
Merge branch 'main' into feature-cluster-decision-tree
joe-jhou2 Apr 2, 2025
c74cd1a
Fix the check-milestone workflow
joe-jhou2 Apr 3, 2025
a91e9f1
Fix the check-milestone workflow
joe-jhou2 Apr 3, 2025
bc5dd9f
restore check-milestone workflow
joe-jhou2 Apr 3, 2025
f595f5d
Merge branch 'main' into feature-cluster-decision-tree
flying-sheep Apr 11, 2025
e422ad1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 11, 2025
5932717
WIP: save changes before pulling
joe-jhou2 Apr 14, 2025
d6d4e72
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 15, 2025
ce51530
fix ruff error
joe-jhou2 Apr 15, 2025
c084342
fix ruff error
joe-jhou2 Apr 15, 2025
9d6dd21
Merge branch 'main' into feature-cluster-decision-tree
joe-jhou2 Apr 15, 2025
6e19de7
refactror main function to class
joe-jhou2 Apr 17, 2025
3eb806a
Merge branch 'feature-cluster-decision-tree' of https://github.com/jo…
joe-jhou2 Apr 17, 2025
da8f6f4
Merge branch 'main' into feature-cluster-decision-tree
joe-jhou2 Apr 17, 2025
ac54dfd
refactror main function to class
joe-jhou2 Apr 17, 2025
0cffc68
refactror main function to class
joe-jhou2 Apr 17, 2025
44cc72f
Defer networkx import
flying-sheep Apr 22, 2025
34d9f1c
Merge branch 'main' into feature-cluster-decision-tree
joe-jhou2 Apr 22, 2025
e171c8c
Skip TC004 warning for now
joe-jhou2 Apr 22, 2025
a0ff151
Skip TC004 warning for now
joe-jhou2 Apr 22, 2025
202280e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 22, 2025
00e10c8
Skip TC004 warning for now
joe-jhou2 Apr 22, 2025
2d60321
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 22, 2025
01a1e87
modify seaborn import
joe-jhou2 Apr 22, 2025
20bf0a8
modify seaborn import
joe-jhou2 Apr 22, 2025
2644a42
Merge branch 'scverse:main' into feature-cluster-decision-tree
joe-jhou2 Apr 26, 2025
1f4c098
add verbose to find_cluster_resolution
joe-jhou2 Apr 26, 2025
e460214
Merge branch 'scverse:main' into feature-cluster-decision-tree
joe-jhou2 May 6, 2025
7ee7bac
Merge branch 'main' into feature-cluster-decision-tree
joe-jhou2 May 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scanpy/pyproject.toml

Lines 95 to 98 in bdcef41

test = [
"scanpy[test-min]",
# Optional but important dependencies
"scanpy[leiden]",

the leidenalg package is already part of the test extra, which means it will be installed in all test jobs except for the test-min one. This should stay that way.

please revert your changes to this workflow and instead add a marker to all tests that need leidenalg to run, using this helper:

from testing.scanpy._pytest.marks import needs

There are two ways to do this:

  1. if not all your test files’ tests need it, decorate the tests that do with @needs.leidenalg
  2. if all tests in the file you added need it, add pytestmark = [needs.leidenalg] to the top of your test file (below the imports)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add pytestmark = [needs.leidenalg] on the top for test file.

Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ jobs:

- name: Install dependencies
if: matrix.dependencies-version == null
run: uv pip install --system --compile "scanpy[dev,test-full] @ ."
run: uv pip install --system --compile "scanpy[dev,test-full,leiden] @ ."
- name: Install dependencies (no optional features)
if: matrix.dependencies-version == 'min-optional'
run: uv pip install --system --compile "scanpy[dev,test-min] @ ."
run: uv pip install --system --compile "scanpy[dev,test-min,leiden] @ ."
- name: Install dependencies (minimum versions)
if: matrix.dependencies-version == 'minimum'
run: |
uv pip install --system --compile tomli packaging
deps=$(python3 ci/scripts/min-deps.py pyproject.toml --extra dev test)
deps=$(python3 ci/scripts/min-deps.py pyproject.toml --extra dev test leiden)
uv pip install --system --compile $deps "scanpy @ ."
- name: Install dependencies (pre-release versions)
if: matrix.dependencies-version == 'pre-release'
run: uv pip install -v --system --compile --pre "scanpy[dev,test-full] @ ." "anndata[dev,test] @ git+https://github.com/scverse/anndata.git"
run: uv pip install -v --system --compile --pre "scanpy[dev,test-full,leiden] @ ." "anndata[dev,test] @ git+https://github.com/scverse/anndata.git"

- name: Run pytest
if: matrix.test-type == null
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ Thumbs.db
# asv benchmark files
/benchmarks/.asv
/benchmarks/data/
myenv/
test.py
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
"python.testing.pytestArgs": ["-vv", "--color=yes"],
"python.testing.pytestEnabled": true,
"python.terminal.activateEnvironment": true,
"git.ignoreLimitWarning": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what’s that for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this.

}
2 changes: 2 additions & 0 deletions src/scanpy/plotting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
tracksplot,
violin,
)
from ._cluster_tree import cluster_decision_tree
from ._dotplot import DotPlot, dotplot
from ._matrixplot import MatrixPlot, matrixplot
from ._preprocessing import filter_genes_dispersion, highly_variable_genes
Expand Down Expand Up @@ -105,4 +106,5 @@
"timeseries",
"timeseries_as_heatmap",
"timeseries_subplot",
"cluster_decision_tree",
]
Loading
Loading