Skip to content

Commit

Permalink
Merge pull request #76 from klarman-cell-observatory/yiming
Browse files Browse the repository at this point in the history
Resolve issue on QC
  • Loading branch information
yihming committed Nov 4, 2021
2 parents 889d0d0 + 53ee8ea commit 88bd524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pegasusio/qc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def apply_qc_filters(unidata: UnimodalData, uns_white_list: str = None):
# remove categories that contain no elements
series = unidata.obs["assignment"].value_counts(sort = False)
unidata.obs["assignment"] = pd.Categorical(unidata.obs["assignment"], categories = series[series > 0].index.astype(str))
# del unidata.uns["__del_demux_type"]
del unidata.uns["__del_demux_type"]

unidata.obs.drop(columns=cols, inplace=True)
if len(unidata.obsm) > 0:
Expand Down

0 comments on commit 88bd524

Please sign in to comment.