-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat): igraph
leiden implementation now included as an option in sc.tl.leiden
#2815
Merged
Merged
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
eba6a9a
(feat): igraph as option for leiden
ilan-gold 519cad3
(feat): add test for similarity
ilan-gold 25b6705
(feat): migrate defaults to `igraph`
ilan-gold 00f5904
(chore): add test for `directed` + `igraph`
ilan-gold 7f46900
(chore): change expected images
ilan-gold e306ac3
(fix): weights condition bug
ilan-gold 642235d
Merge branch 'master' into igraph_leiden
ilan-gold 5439d9d
(fix): change `rank_genes_groups` tolerance and update test images
ilan-gold 2449148
Merge branch 'igraph_leiden' of github.com:ilan-gold/scanpy into igra…
ilan-gold 2fe2b9a
(feat): new violin plot based on redone cluster assignments
ilan-gold a14b13e
(chore): check parameters matching
ilan-gold 8f3b169
(fix): handle import properly
ilan-gold b89eaa0
(fix): handle `partition_type` with `use_igraph`
ilan-gold f67225d
(chore): remove unnecessary test args
ilan-gold 202787c
(chore): add test for old defaults
ilan-gold d738092
(chore): pre-commit?
ilan-gold 2d8ab25
(chore): pre-commit hooks run
ilan-gold ece40bf
(chore): make violin plot `expected` correct
ilan-gold b24d1c4
(fix): change `tol` again for violin plots
ilan-gold a4aebfd
Merge branch 'master' into igraph_leiden
ilan-gold 4fcbcc6
(chore): revert tolerance change - separate issue incoming
ilan-gold 7a75fdf
Merge branch 'igraph_leiden' of github.com:ilan-gold/scanpy into igra…
ilan-gold a79e00c
Merge branch 'master' into igraph_leiden
ilan-gold fd748f4
(chore): release note
ilan-gold be32bc2
(chore): try new plots with random seed set
ilan-gold 07ffc84
(test): try publishing artifacts
ilan-gold fbd2173
(fix): publish artifact
ilan-gold 214eaa4
Merge branch 'master' into igraph_leiden
ilan-gold 345fcf4
(fix): publish other images
ilan-gold 1f35a00
(chore): umap
ilan-gold ac75b6b
(fix): fix random seeding for `igraph`
ilan-gold 488ea75
(fix): import in function
ilan-gold 3db3bb5
(fix): remove umap from test
ilan-gold 540a204
(fix): try different random?
ilan-gold d3afd43
(feat): try marker gene labeling + write results
ilan-gold 0dbfe7b
(fix): publish artifacts
ilan-gold 26e6540
(fix): try writing out data after relabel
ilan-gold 0bcb2b7
(fix): try stable dataset
ilan-gold d583619
(chore): add more writes
ilan-gold cf8449c
(fix): sort categories
ilan-gold 6a306e8
(fix): require igraph
ilan-gold 3cdd337
(chore): remove build artifact
ilan-gold 60c53eb
(fix): spelling error
ilan-gold bf02b53
(fix): swap changed after re-ordering
ilan-gold 8833246
(chore): `use_igraph` -> `use_leidenalg`
ilan-gold 015a2ac
fmt
flying-sheep 3cf18f7
(refactor): `use_leidenalg` -> `backend`
ilan-gold e903794
(refactor): get `objective_function` from `clustering_args`
ilan-gold 3dc2d95
(fix): docstring links
ilan-gold 0ba3a04
Merge branch 'master' into igraph_leiden
ilan-gold bd8382d
(refactor): create rng for igraph
ilan-gold 6958e7d
(refactor): less lines
ilan-gold 4f736df
(chore): add test for random state
ilan-gold eb070d6
(refactor): fix initial state settings for other `igraph` methods by …
ilan-gold 4b8c823
(refactor): `FLAVORS` reuse in test
ilan-gold 66cc1e2
Update scanpy/tools/_leiden.py
ilan-gold f2fc12b
Merge branch 'master' into igraph_leiden
ilan-gold 5c49c56
Update scanpy/_utils/__init__.py
ilan-gold 04cd7f9
Update scanpy/_utils/__init__.py
ilan-gold 16d822c
(fix): fix heatmap plot
ilan-gold bca86ff
(fix): change out images for new random seed method
ilan-gold dd540dc
Merge branch 'igraph_leiden' of github.com:ilan-gold/scanpy into igra…
ilan-gold b9b5b19
Merge branch 'master' into igraph_leiden
ilan-gold 3482560
Merge branch 'master' into igraph_leiden
ilan-gold b3bb3d2
Merge branch 'master' into igraph_leiden
ilan-gold ebe1c16
Update scanpy/tools/_leiden.py
ilan-gold 0736afc
Merge branch 'master' into igraph_leiden
ilan-gold de7af6a
(chore): switch back to `leidenalg` default
ilan-gold 99aa47c
(chore): fix clustering tests and update message
ilan-gold 726c59e
(fix): plotting test
ilan-gold f2da795
(fix): `test_leiden_basic` `directed` arg
ilan-gold 13ae6b6
(fix): fix iterations to defaults
ilan-gold cc31a2e
(fix): correct category swapping
ilan-gold 935d34f
(fix): need to reorder categories as well
ilan-gold 662f918
Merge branch 'master' into igraph_leiden
ilan-gold 5df37d2
(fix): clean up simple tests
ilan-gold 51f0a02
Merge branch 'igraph_leiden' of github.com:ilan-gold/scanpy into igra…
ilan-gold 9f6b535
(fix): remove unnecessary cluster swap.
ilan-gold 102d128
(fix): just use random state that gives same number of categories
ilan-gold 84dd615
(fix): use `np.random` instead of `random` module
ilan-gold d6b1dff
(chore): remove unnecessary comment in test about state
ilan-gold f2db271
Merge branch 'master' into igraph_leiden
ilan-gold 5e09532
(refactor): simplify conditions
ilan-gold 579f005
(refactor): `elif` -> `else` when `flavor` already checked
ilan-gold 1cefa19
(fix): move leiden import for test
ilan-gold 6247d76
(fix): revert unnecessary image changes
ilan-gold 2549f61
(chore): address comments
ilan-gold File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason not to do this