Spaces:
Running
Running
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +1 -0
dash_plotly_QC_scRNA.py
CHANGED
@@ -398,6 +398,7 @@ def update_graph_and_pie_chart(batch_chosen, s_chosen, g2m_chosen, condition1_ch
|
|
398 |
category_sums = dff.group_by(i).agg(pl.col(i).sum().alias("sum"))
|
399 |
total_count = len(dff)
|
400 |
category_means = category_sums.select((pl.col("sum") / total_count).round(round_precision).alias(i))
|
|
|
401 |
values_mean = category_means[i].to_list()
|
402 |
|
403 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|
|
|
398 |
category_sums = dff.group_by(i).agg(pl.col(i).sum().alias("sum"))
|
399 |
total_count = len(dff)
|
400 |
category_means = category_sums.select((pl.col("sum") / total_count).round(round_precision).alias(i))
|
401 |
+
print(category_means)
|
402 |
values_mean = category_means[i].to_list()
|
403 |
|
404 |
fig_pie = px.pie(names=labels, values=values, title=pie_title,template="seaborn")
|