Spaces:
Running
Running
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +4 -2
dash_plotly_QC_scRNA.py
CHANGED
@@ -397,8 +397,10 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
397 |
# Specify batch column as string type and gene columns as float type
|
398 |
#list_conds = ["batch"]
|
399 |
#list_conds = list_conds.append(condition3_chosen)
|
|
|
|
|
400 |
|
401 |
-
dff_pre = dff.select(["batch","Cdc45","Mcm2","Mcm5"])
|
402 |
|
403 |
# Melt wide format DataFrame into long format
|
404 |
dff_long = dff_pre.melt(id_vars="batch", variable_name="Gene", value_name="Expression")
|
@@ -470,4 +472,4 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
470 |
# Now create your regular FASTAPI application
|
471 |
|
472 |
if __name__ == '__main__':
|
473 |
-
app.run_server(debug=
|
|
|
397 |
# Specify batch column as string type and gene columns as float type
|
398 |
#list_conds = ["batch"]
|
399 |
#list_conds = list_conds.append(condition3_chosen)
|
400 |
+
list_conds = condition3_chosen += ["batch"]
|
401 |
+
dff_pre = dff.select(list_conds)
|
402 |
|
403 |
+
#dff_pre = dff.select(["batch","Cdc45","Mcm2","Mcm5"])
|
404 |
|
405 |
# Melt wide format DataFrame into long format
|
406 |
dff_long = dff_pre.melt(id_vars="batch", variable_name="Gene", value_name="Expression")
|
|
|
472 |
# Now create your regular FASTAPI application
|
473 |
|
474 |
if __name__ == '__main__':
|
475 |
+
app.run_server(debug=True, use_reloader=False, host='0.0.0.0', port=5000) #
|