Skip to content

Commit

Permalink
Refactored seed_dict assignment logic (#77)
Browse files Browse the repository at this point in the history
* Updated version to 0.1.19

* Refactored seed_dict assignment logic

* Update test cases
  • Loading branch information
ubyndr authored Jul 2, 2024
1 parent 848ca96 commit 43c40eb
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 101 deletions.
2 changes: 1 addition & 1 deletion pandasaurus_cxg/anndata_enricher.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
self.anndata = anndata
self.seed_dict = dict(
self.anndata.obs.drop_duplicates(subset=[cell_type_field, "cell_type"])
.dropna()[[cell_type_field, "cell_type"]]
.dropna(subset=[cell_type_field, "cell_type"])[[cell_type_field, "cell_type"]]
.values
)
# "unknown" patch
Expand Down
Loading

0 comments on commit 43c40eb

Please sign in to comment.