Skip to content

Commit

Permalink
update pandas reference in moments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichao25 committed Jan 31, 2024
1 parent a053564 commit 6402445
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dynamo/tools/moments.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def prepare_data_deterministic(
)
else:
tot_sfs = adata.obs.total_Size_Factor
sfs_x, sfs_y = tot_sfs[:, None], tot_sfs[:, None]
sfs_x, sfs_y = tot_sfs.values[:, None], tot_sfs.values[:, None]

m = [None] * len(layers)
v = [None] * len(layers)
Expand Down Expand Up @@ -424,7 +424,7 @@ def prepare_data_deterministic(
total_layers=None,
CM=pair_x_layer + group_pair_x_layer,
)
sfs_x, sfs_y = sfs_x[:, None], sfs_y[:, None]
sfs_x, sfs_y = sfs_x.values[:, None], sfs_y.values[:, None]

x_layer = normalize_mat_monocle(
x_layer[:, adata.var_names.isin(genes)],
Expand Down Expand Up @@ -477,7 +477,7 @@ def prepare_data_deterministic(
)
x_layer = normalize_mat_monocle(
x_layer[:, adata.var_names.isin(genes)],
szfactors=tot_sfs[:, None],
szfactors=tot_sfs.values[:, None],
relative_expr=True,
pseudo_expr=0,
norm_method=None,
Expand All @@ -486,7 +486,7 @@ def prepare_data_deterministic(
if return_ntr:
total_layer = normalize_mat_monocle(
total_layer[:, adata.var_names.isin(genes)],
szfactors=tot_sfs[:, None],
szfactors=tot_sfs.values[:, None],
relative_expr=True,
pseudo_expr=0,
norm_method=None,
Expand Down

0 comments on commit 6402445

Please sign in to comment.