Skip to content

Commit

Permalink
add leiden
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Apr 11, 2024
1 parent 3d29def commit 66a8fcb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions benchmarks/benchmarks/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,17 @@ def peakmem_diffmap(self, *_):
# def peakmem_embedding_density(self, *_):
# sc.tl.embedding_density(self.adata, groupby="batch")

# def time_louvain(self, *_):
# sc.tl.louvain(self.adata)
def time_leiden(self, *_):
sc.tl.leiden(self.adata)

# def peakmem_louvain(self, *_):
# sc.tl.louvain(self.adata)
def peakmem_leiden(self, *_):
sc.tl.leiden(self.adata)

# def time_paga(self, *_):
# sc.tl.paga(self.adata, groups='louvain')
# sc.tl.paga(self.adata, groups='leiden')

# def peakmem_paga(self, *_):
# sc.tl.paga(self.adata, groups='louvain')

# def time_leiden(self, *_):
# sc.tl.leiden(self.adata)

# def peakmem_leiden(self, *_):
# sc.tl.leiden(self.adata)
# sc.tl.paga(self.adata, groups='leiden')

# def time_draw_graph(self, *_):
# sc.tl.draw_graph(self.adata)
Expand Down

0 comments on commit 66a8fcb

Please sign in to comment.