Spaces:
Sleeping
Sleeping
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +3 -1
dash_plotly_QC_scRNA.py
CHANGED
@@ -398,13 +398,15 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
398 |
#list_conds = ["batch"]
|
399 |
#list_conds = list_conds.append(condition3_chosen)
|
400 |
|
401 |
-
dff_pre = dff.select(["batch"]
|
402 |
|
403 |
# Melt wide format DataFrame into long format
|
404 |
dff_long = dff_pre.melt(id_vars="batch", variable_name="Gene", value_name="Expression")
|
405 |
|
406 |
# Calculate the mean expression levels for each gene in each region
|
407 |
expression_means = dff_long.group_by(["batch", "Gene"]).agg(pl.mean("Expression"))
|
|
|
|
|
408 |
|
409 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|
410 |
|
|
|
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")
|
405 |
|
406 |
# Calculate the mean expression levels for each gene in each region
|
407 |
expression_means = dff_long.group_by(["batch", "Gene"]).agg(pl.mean("Expression"))
|
408 |
+
|
409 |
+
expression_means = expression_means.select(condition3_chosen)
|
410 |
|
411 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|
412 |
|