Skip to content

Commit

Permalink
Update _dendrogram.py
Browse files Browse the repository at this point in the history
allowed the function to use specified var_names
  • Loading branch information
Leo-GG authored Nov 24, 2023
1 parent bc349b9 commit ceae5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpy/tools/_dendrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def dendrogram(
rep_df.set_index(categorical, inplace=True)
categories = rep_df.index.categories
else:
gene_names = adata.raw.var_names if use_raw else adata.var_names
gene_names = var_names
from ..plotting._anndata import _prepare_dataframe

categories, rep_df = _prepare_dataframe(adata, gene_names, groupby, use_raw)
Expand Down

0 comments on commit ceae5f2

Please sign in to comment.