Skip to content

Commit

Permalink
Update _check_genes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vjmarteau authored Aug 24, 2023
1 parent 9d67194 commit dae3859
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/atlas_protocol_scripts/pp/_check_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np
import pandas as pd
from anndata import AnnData
from anndata import AnnData, concat
from scipy.sparse import csc_matrix


Expand Down Expand Up @@ -49,6 +49,8 @@ def aggregate_duplicate_gene_ids(adata: AnnData, gene_names: list[str]) -> AnnDa
gene_names
list of gene names to collapse by summing their expression values.
"""
import anndata

gene_names = [g for g in gene_names if g not in ["", "nan", np.nan]]
if not gene_names:
return adata
Expand Down

0 comments on commit dae3859

Please sign in to comment.