Skip to content

Commit

Permalink
Bad keyword for normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
szabogtamas authored and grst committed Mar 28, 2020
1 parent 965600e commit 36ba481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scirpy/_tools/_vdj_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def vdj_usage(
"""

if fraction is None:
fraction = _normalize_counts(adata.obs, fraction=False)
fraction = _normalize_counts(adata.obs, normalize=False)
else:
if isinstance(fraction, (bool, str)):
fraction = _normalize_counts(adata.obs, fraction=fraction)
fraction = _normalize_counts(adata.obs, normalize=fraction)

observations = adata.obs.loc[:, target_cols]
observations[size_column] = fraction
Expand Down

0 comments on commit 36ba481

Please sign in to comment.