Skip to content

Commit

Permalink
around_target.py bug fix (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitkl authored Nov 8, 2023
1 parent 50a218e commit 3af08a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cell2location/cell_comm/around_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def compute_weighted_average_around_target(
source_names = genes_to_use_as_source
# if using gene symbols get var names:
if gene_symbols is not None:
genes_to_use_as_source = adata.var_names[adata.var[gene_symbols].isin(genes_to_use_as_source).values]
source_names = adata.var[gene_symbols][adata.var[gene_symbols].isin(genes_to_use_as_source).values]
genes_to_use_as_source = adata.var_names[adata.var[gene_symbols].isin(genes_to_use_as_source).values]

cell_abundance_key_ = cell_abundance_quantile_key + cell_abundance_key
cell_abundance_key = cell_abundance_quantile_key + "_" + cell_abundance_key
Expand Down

0 comments on commit 3af08a1

Please sign in to comment.