Skip to content

Commit

Permalink
debug kinetic_heatmap genes input type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichao25 committed Dec 12, 2023
1 parent ea79042 commit 9a28f44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dynamo/plot/time_series.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# include pseudotime and predict cell trajectory
from typing import Any, Dict, List, Optional, Tuple, Union

import pandas as pd

try:
from typing import Literal
except ImportError:
Expand Down Expand Up @@ -200,7 +202,7 @@ def kinetic_curves(
@docstrings.with_indent(4)
def kinetic_heatmap(
adata: AnnData,
genes: List[str],
genes: Union[List[str], pd.Index],
mode: str = "vector_field",
basis: Optional[str] = None,
layer: str = "X",
Expand Down
2 changes: 2 additions & 0 deletions dynamo/prediction/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ def arclength_sampling_n(X, num, t=None):
# fate related
def fetch_exprs(adata, basis, layer, genes, time, mode, project_back_to_high_dim, traj_ind):
import pandas as pd
if type(genes) != list:
genes = list(genes)

prefix = "LAP_" if mode.lower() == "lap" else "fate_"
if basis is not None:
Expand Down

0 comments on commit 9a28f44

Please sign in to comment.