Skip to content

Commit

Permalink
Merge pull request #569 from Sichao25/debug
Browse files Browse the repository at this point in the history
Debug growth
  • Loading branch information
Xiaojieqiu authored Oct 9, 2023
2 parents 8817a2c + eb7208e commit 144d955
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dynamo/tools/growth.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def score_cells(
elif basis is not None and "X_" + basis not in adata.obsm.keys():
raise ValueError(f"Your adata doesn't have the {basis} you inputted in .obsm attribute of your adata.")

if genes is None and "use_for_pca" not in adata.obs.keys():
raise ValueError(f"Your adata doesn't have 'use_for_pca' column in .obs.")
if genes is None and "use_for_pca" not in adata.var.keys():
raise ValueError(f"Your adata doesn't have 'use_for_pca' column in .var.")

if genes is None:
genes = adata.var_names[adata.use_for_pca]
genes = adata.var_names[adata.var.use_for_pca]
else:
genes = (
list(adata.var_names.intersection(genes))
Expand Down Expand Up @@ -138,9 +138,9 @@ def score_cells(

def cell_growth_rate(
adata: AnnData,
group: Optional[str],
source: Optional[str],
target: Optional[str],
group: str,
source: str,
target: str,
L0: float = 0.3,
L: float = 1.2,
k: float = 1e-3,
Expand Down

0 comments on commit 144d955

Please sign in to comment.