Skip to content
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

Make louvain an optional dependency #361

Merged
merged 5 commits into from
Jan 9, 2023
Merged

Make louvain an optional dependency #361

merged 5 commits into from
Jan 9, 2023

Conversation

mumichae
Copy link
Collaborator

@mumichae mumichae commented Jan 6, 2023

Addresses and closes #360

@mumichae mumichae marked this pull request as ready for review January 6, 2023 18:12
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #361 (4953222) into main (a3efdf7) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #361   +/-   ##
=======================================
  Coverage   53.13%   53.13%           
=======================================
  Files          22       22           
  Lines        1848     1848           
=======================================
  Hits          982      982           
  Misses        866      866           
Flag Coverage Δ
unittests 53.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
scib/metrics/clustering.py 88.11% <ø> (ø)

@mumichae mumichae requested a review from LuckyMD January 6, 2023 23:49
Copy link
Collaborator

@LuckyMD LuckyMD left a comment

Choose a reason for hiding this comment

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

Just one minor change in order of parameters. Otherwise, is leiden already the default?

plot=False,
inplace=True,
res_max, score_max, _ = scib.cl.cluster_optimal_resolution(
adata, label_key="celltype", cluster_key="cluster", return_all=True
Copy link
Collaborator

Choose a reason for hiding this comment

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

order of parameters is different from order in conftest.py could you make this consistent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, leiden is the default for the cluster_optimal_resolution function.

@mumichae mumichae merged commit 82444ef into main Jan 9, 2023
@mumichae mumichae deleted the louvain_deprecated branch January 9, 2023 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

louvain deprecation
2 participants