Skip to content

Commit

Permalink
Fix bug on variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
yihming committed May 17, 2021
1 parent 11b58c9 commit d3c1a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pegasusio/qc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def calc_qc_filters(
if subset_string is None:
filters.append(unidata.obs["demux_type"] == "singlet")
else:
if "assignment" not in data.obs:
if "assignment" not in unidata.obs:
raise ValueError("No assignment field detected!")

subset = np.array(subset_string.split(","))
filters.append(np.isin(data.obs["assignment"], subset))
filters.append(np.isin(unidata.obs["assignment"], subset))

unidata.uns["__del_demux_type"] = True

Expand Down

0 comments on commit d3c1a52

Please sign in to comment.