Skip to content

Commit

Permalink
Re-update mouse database
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhu8 committed Oct 23, 2024
1 parent 3c01986 commit b9e3bc4
Show file tree
Hide file tree
Showing 3 changed files with 3,133 additions and 2,146 deletions.
3 changes: 2 additions & 1 deletion spateo/tools/CCI_effects_modeling/MuSIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ def define_sig_inputs(self, adata: Optional[anndata.AnnData] = None, recompute:
ligands = [
l
for l in ligands_test
if l.title()
if l.lower().capitalize()
not in [
"Lta4h",
"Fdx1",
Expand Down Expand Up @@ -1095,6 +1095,7 @@ def define_sig_inputs(self, adata: Optional[anndata.AnnData] = None, recompute:
"Cyp27b1",
"Sult1e1",
"Dio3",
"Ptgis",
]
]
l_complexes = [elem for elem in ligands if "_" in elem]
Expand Down
6 changes: 4 additions & 2 deletions spateo/tools/CCI_effects_modeling/SWR.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# To allow for running by function definition (for more flexible option)
def define_spateo_argparse(**kwargs):
"""Defines and returns MPI and argparse objects for model fitting and interpretation.
"""Defines and returns argparse objects for model fitting and interpretation.
Args:
kwargs: Keyword arguments for any of the argparse arguments defined below.
Expand Down Expand Up @@ -366,7 +366,7 @@ def define_spateo_argparse(**kwargs):
"cell when defining the independent variable array for secreted or ECM ligands. Will also be used to "
"define the number of neighbors to consider for lagged ligand expression.",
},
"-distr": {"default": "gaussian", "type": str},
"-distr": {"default": "poisson", "type": str},
"-fit_intercept": {"action": "store_true"},
"-tolerance": {"default": 1e-3, "type": float},
"-max_iter": {"default": 500, "type": int},
Expand Down Expand Up @@ -494,6 +494,8 @@ def define_spateo_argparse(**kwargs):

# Initialize parser:
parser = argparse.ArgumentParser(description="MuSIC arguments", allow_abbrev=False)
# Add dummy argument for running in notebook environment
parser.add_argument("-f")

# Use arg_dict to populate the parser:
for arg, arg_info in arg_dict.items():
Expand Down
Loading

0 comments on commit b9e3bc4

Please sign in to comment.