Skip to content

Commit

Permalink
Hotfix/fiilter (#53)
Browse files Browse the repository at this point in the history
* Fix a bug where filter causes no effect

* Bump version
  • Loading branch information
nh3 authored Sep 2, 2019
1 parent f0e39c9 commit b013d5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scanpy_scripts/lib/_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def filter_anndata(
attr = getattr(adata.var, name)
k_gene = k_gene & attr.isin(values)

adata = adata[k_cell, :]
adata = adata[:, k_gene]
adata._inplace_subset_obs(k_cell)
adata._inplace_subset_var(k_gene)

return adata

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='scanpy-scripts',
version='0.2.4.post3',
version='0.2.4.post4',
author='nh3',
author_email='[email protected]',
description='Scripts for using scanpy from the command line',
Expand Down

0 comments on commit b013d5d

Please sign in to comment.