From 711fcc8d9f746852ec7c008ab4fc1cdc93776a35 Mon Sep 17 00:00:00 2001 From: Anita Caron Date: Wed, 8 May 2024 17:43:00 +0200 Subject: [PATCH] Drop empty values in seed_dict (#71) * drop empty values in seed_dict * update to version 0.1.14 --- pandasaurus_cxg/anndata_enricher.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandasaurus_cxg/anndata_enricher.py b/pandasaurus_cxg/anndata_enricher.py index 2e1b15b..d949e43 100644 --- a/pandasaurus_cxg/anndata_enricher.py +++ b/pandasaurus_cxg/anndata_enricher.py @@ -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 ) diff --git a/pyproject.toml b/pyproject.toml index 4346322..3b16acb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "http://www.apache.org/licenses/LICENSE-2.0"