Spaces:
Sleeping
Sleeping
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +1 -0
dash_plotly_QC_scRNA.py
CHANGED
@@ -395,6 +395,7 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
395 |
|
396 |
# Melt wide format DataFrame into long format
|
397 |
dff_pre = dff.with_columns(["batch","Cdc45","Uhrf1","Mcm2","Slbp","Mcm5","Pola1","Gmnn","Cdc6","Rrm2","Atad2"])
|
|
|
398 |
dff_long = dff_pre.melt(id_vars="batch", variable_name="Gene", value_name="Expression")
|
399 |
|
400 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|
|
|
395 |
|
396 |
# Melt wide format DataFrame into long format
|
397 |
dff_pre = dff.with_columns(["batch","Cdc45","Uhrf1","Mcm2","Slbp","Mcm5","Pola1","Gmnn","Cdc6","Rrm2","Atad2"])
|
398 |
+
dff_pre = dff_pre.with_columns(dff_pre['batch'].cast(pl.String))
|
399 |
dff_long = dff_pre.melt(id_vars="batch", variable_name="Gene", value_name="Expression")
|
400 |
|
401 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|