Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Sep 4, 2024
1 parent e82fcfb commit ba2e2b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bengrn/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import Optional, Union
from .tools import GENIE3
import numpy as np
import bionty as bt
from anndata.utils import make_index_unique

from arboreto.algo import grnboost2
Expand Down Expand Up @@ -972,6 +971,14 @@ def load_genes(organisms: Union[str, list] = "NCBITaxon:9606"): # "NCBITaxon:10
Returns:
pd.DataFrame: A DataFrame containing gene information for the specified organisms, including columns for gene symbols, mitochondrial genes, ribosomal genes, hemoglobin genes, and organism.
"""
try:
import bionty as bt
except ImportError:
raise ImportError(
"bionty is not installed. Please install it with pip install bionty \
you will also need to populate its genes, have a look at jkobject/scdataloader's package \
and its populate_ontology function"
)
organismdf = []
if type(organisms) is str:
organisms = [organisms]
Expand Down

0 comments on commit ba2e2b7

Please sign in to comment.