-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat):
igraph
leiden implementation now included as an option in `…
…sc.tl.leiden` (#2815) * (feat): igraph as option for leiden * (feat): add test for similarity * (feat): migrate defaults to `igraph` * (chore): add test for `directed` + `igraph` * (chore): change expected images * (fix): weights condition bug * (fix): change `rank_genes_groups` tolerance and update test images * (feat): new violin plot based on redone cluster assignments * (chore): check parameters matching * (fix): handle import properly * (fix): handle `partition_type` with `use_igraph` * (chore): remove unnecessary test args * (chore): add test for old defaults * (chore): pre-commit? * (chore): pre-commit hooks run * (chore): make violin plot `expected` correct * (fix): change `tol` again for violin plots * (chore): revert tolerance change - separate issue incoming * (chore): release note * (chore): try new plots with random seed set * (test): try publishing artifacts * (fix): publish artifact * (fix): publish other images * (chore): umap * (fix): fix random seeding for `igraph` * (fix): import in function * (fix): remove umap from test * (fix): try different random? * (feat): try marker gene labeling + write results * (fix): publish artifacts * (fix): try writing out data after relabel * (fix): try stable dataset * (chore): add more writes * (fix): sort categories * (fix): require igraph * (chore): remove build artifact * (fix): spelling error * (fix): swap changed after re-ordering * (chore): `use_igraph` -> `use_leidenalg` * fmt * (refactor): `use_leidenalg` -> `backend` * (refactor): get `objective_function` from `clustering_args` * (fix): docstring links * (refactor): create rng for igraph * (refactor): less lines * (chore): add test for random state * (refactor): fix initial state settings for other `igraph` methods by using `random` again * (refactor): `FLAVORS` reuse in test * Update scanpy/tools/_leiden.py Co-authored-by: Philipp A. <[email protected]> * Update scanpy/_utils/__init__.py Co-authored-by: Philipp A. <[email protected]> * Update scanpy/_utils/__init__.py Co-authored-by: Philipp A. <[email protected]> * (fix): fix heatmap plot * (fix): change out images for new random seed method * Update scanpy/tools/_leiden.py Co-authored-by: Philipp A. <[email protected]> * (chore): switch back to `leidenalg` default * (chore): fix clustering tests and update message * (fix): plotting test * (fix): `test_leiden_basic` `directed` arg * (fix): fix iterations to defaults * (fix): correct category swapping * (fix): need to reorder categories as well * (fix): clean up simple tests * (fix): remove unnecessary cluster swap. * (fix): just use random state that gives same number of categories * (fix): use `np.random` instead of `random` module * (chore): remove unnecessary comment in test about state * (refactor): simplify conditions * (refactor): `elif` -> `else` when `flavor` already checked * (fix): move leiden import for test * (fix): revert unnecessary image changes * (chore): address comments --------- Co-authored-by: Philipp A <[email protected]>
- Loading branch information
1 parent
1ac74a7
commit 6ee18b9
Showing
12 changed files
with
276 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.68 KB
(88%)
scanpy/tests/notebooks/_images_pbmc3k/rank_genes_groups_1/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.94 KB
(88%)
scanpy/tests/notebooks/_images_pbmc3k/rank_genes_groups_2/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-813 Bytes
(88%)
scanpy/tests/notebooks/_images_pbmc3k/rank_genes_groups_3/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+430 Bytes
(100%)
scanpy/tests/notebooks/_images_pbmc3k/scatter_3/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.