Spaces:
Sleeping
Sleeping
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +1 -1
dash_plotly_QC_scRNA.py
CHANGED
@@ -387,7 +387,7 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
387 |
category_sums = dff.group_by(condition1_chosen).agg(pl.col(condition1_chosen).sum().alias("sum"))
|
388 |
total_count = len(dff)
|
389 |
category_means = category_sums.select((pl.col("sum") / total_count).round(round_precision).alias("mean"))
|
390 |
-
values_mean =
|
391 |
|
392 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|
393 |
|
|
|
387 |
category_sums = dff.group_by(condition1_chosen).agg(pl.col(condition1_chosen).sum().alias("sum"))
|
388 |
total_count = len(dff)
|
389 |
category_means = category_sums.select((pl.col("sum") / total_count).round(round_precision).alias("mean"))
|
390 |
+
values_mean = category_means["mean"].to_list()
|
391 |
|
392 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|
393 |
|