Skip to content

Commit

Permalink
Directly use genome variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup committed Sep 24, 2020
1 parent 826874a commit 622895a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpy/readwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def read_10x_h5(
f"Could not find data corresponding to genome '{genome}' in '{filename}'. "
f'Available genomes are: {list(adata.var["genome"].unique())}.'
)
adata = adata[:, adata.var['genome'] == f"{genome}"]
adata = adata[:, adata.var['genome'] == genome]
if gex_only:
adata = adata[:, adata.var['feature_types'] == 'Gene Expression']
if adata.is_view:
Expand Down

0 comments on commit 622895a

Please sign in to comment.