diff --git a/pyproject.toml b/pyproject.toml index 4c39047..797fbaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scdataloader" -version = "1.0.3" +version = "1.0.5" description = "a dataloader for single cell data in lamindb" authors = ["jkobject"] license = "GPL3" diff --git a/scdataloader/utils.py b/scdataloader/utils.py index 2250c2e..74de4b2 100644 --- a/scdataloader/utils.py +++ b/scdataloader/utils.py @@ -372,7 +372,8 @@ def load_genes(organisms: Union[str, list] = "NCBITaxon:9606"): # "NCBITaxon:10 organismdf.append(genesdf) organismdf = pd.concat(organismdf) organismdf.drop( - columns=["source_id", "run_id", "created_by_id", "updated_at"], inplace=True + columns=["source_id", "run_id", "created_by_id", "updated_at", "stable_id"], + inplace=True, ) return organismdf @@ -528,6 +529,7 @@ def length_normalize(adata: AnnData, gene_lengths: list): adata.X = csr_matrix((adata.X.T / gene_lengths).T) return adata + def translate( val: Union[str, list, set, Counter, dict], t: str = "cell_type_ontology_term_id" ):