Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duypham2108 authored Dec 14, 2023
1 parent 637c1d1 commit 1e12664
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stlearn/app/source/forms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ def run_psts(request, adata, step_log):
element_values = list(step_log["psts_params"].values())

if element_values[4] == "Auto":
w = None
model = "mixed"
elif element_values[4] == "Spatial distance only":
w = 0
model = "spatial"
else:
w = 1
model = "gene_expression"

if not form.validate_on_submit():
flash_errors(form)
Expand Down Expand Up @@ -318,7 +318,7 @@ def run_psts(request, adata, step_log):
)
print(node_order)
st.spatial.trajectory.pseudotimespace_global(
adata, use_label="clusters", list_clusters=node_order, w=w
adata, use_label="clusters", list_clusters=node_order, model=model
)

st.pl.cluster_plot(
Expand Down

0 comments on commit 1e12664

Please sign in to comment.