Spaces:
Running
Running
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +1 -1
dash_plotly_QC_scRNA.py
CHANGED
@@ -396,7 +396,7 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
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.Utf8))
|
399 |
-
dff_pre = dff.with_columns(pl.lit(None).cast(pl.Utf8)
|
400 |
|
401 |
# Cast Cdc45, Uhrf1, Mcm2, Slbp, Mcm5, Pola1, Gmnn, Cdc6, Rrm2, Atad2 columns to float type
|
402 |
for gene in ["Cdc45", "Uhrf1", "Mcm2", "Slbp", "Mcm5", "Pola1", "Gmnn", "Cdc6", "Rrm2", "Atad2"]:
|
|
|
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.Utf8))
|
399 |
+
dff_pre = dff.with_columns(pl.lit(None).cast(pl.Utf8), pl.col("*"))
|
400 |
|
401 |
# Cast Cdc45, Uhrf1, Mcm2, Slbp, Mcm5, Pola1, Gmnn, Cdc6, Rrm2, Atad2 columns to float type
|
402 |
for gene in ["Cdc45", "Uhrf1", "Mcm2", "Slbp", "Mcm5", "Pola1", "Gmnn", "Cdc6", "Rrm2", "Atad2"]:
|