Skip to content

Commit

Permalink
Fixed bug when use_cell_types == False but cell_type_key is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
russellkune committed Jan 23, 2023
1 parent 1c652a0 commit 25d99e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectra/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ def est_spectra(adata, gene_set_dictionary, L = None,use_highly_variable = True,
X = adata.X
vocab = adata.var_names

if cell_type_key is not None:
if use_cell_types:
labels = adata.obs[cell_type_key].values
for label in np.unique(labels):
if label not in gene_set_dictionary:
Expand Down

0 comments on commit 25d99e9

Please sign in to comment.