Skip to content

Commit

Permalink
Fix normalize_total for dask
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Apr 12, 2023
1 parent 3e3427d commit 9a67bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpy/preprocessing/_normalization.py
Expand Up @@ -179,7 +179,7 @@ def normalize_total(
# at least one cell as more than max_fraction of counts per cell

gene_subset = (X > counts_per_cell[:, None] * max_fraction).sum(0)
gene_subset = np.ravel(gene_subset) == 0
gene_subset = np.asarray(np.ravel(gene_subset) == 0)

msg += (
' The following highly-expressed genes are not considered during '
Expand Down

0 comments on commit 9a67bdb

Please sign in to comment.