Skip to content

Commit

Permalink
Drop empty values in seed_dict (#71)
Browse files Browse the repository at this point in the history
* drop empty values in seed_dict

* update to version 0.1.14
  • Loading branch information
Anita Caron authored May 8, 2024
1 parent e774404 commit 711fcc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandasaurus_cxg/anndata_enricher.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(
# TODO Do we need to keep whole anndata? Would it be enough to keep the obs only?
self.anndata = anndata
self.seed_dict = dict(
self.anndata.obs.drop_duplicates(subset=[cell_type_field, "cell_type"])[
self.anndata.obs.drop_duplicates(subset=[cell_type_field, "cell_type"]).dropna()[
[cell_type_field, "cell_type"]
].values
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pandasaurus-cxg"
version = "0.1.13"
version = "0.1.14"
description = "Ontology enrichment tool for CxG standard AnnData files."
authors = ["Ugur Bayindir <[email protected]>"]
license = "http://www.apache.org/licenses/LICENSE-2.0"
Expand Down

0 comments on commit 711fcc8

Please sign in to comment.