Skip to content

Commit

Permalink
fix cleanup_layers
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerBergen committed Aug 21, 2018
1 parent 5cdd667 commit 8405f02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scvelo/preprocessing/fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def print_fraction_of_abundances(adata, cleanup_layers=True, copy=False):
print('abundance of ' + str(layers_keys) + ': ' + str(mean_abundances))

if cleanup_layers:
layers_keys = adata.layers.keys().copy()
for key in layers_keys: # remove layers that are not needed
for key in list(adata.layers.keys()): # remove layers that are not needed
if key not in ['spliced', 'unspliced']: del adata.layers[key]

return adata if copy else None

0 comments on commit 8405f02

Please sign in to comment.