Skip to content

Commit

Permalink
Update _nmi_ari.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgayoso authored Aug 21, 2024
1 parent 9770db0 commit f0db9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scib_metrics/metrics/_nmi_ari.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _compute_clustering_leiden(connectivity_graph: spmatrix, resolution: float)
# to have both sets of edges as is done in scanpy. See test for more details.
g = igraph.Graph.Weighted_Adjacency(connectivity_graph, mode="directed")
g.to_undirected(mode="each")
clustering = g.community_leiden(objective_function="modularity", weights="weight", resolution_parameter=resolution)
clustering = g.community_leiden(objective_function="modularity", weights="weight", resolution=resolution)
clusters = clustering.membership
return np.asarray(clusters)

Expand Down

0 comments on commit f0db9f7

Please sign in to comment.