Arts-of-coding commited on
Commit
aa84740
·
verified ·
1 Parent(s): 3d2f629

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +2 -3
dash_plotly_QC_scRNA.py CHANGED
@@ -380,10 +380,9 @@ def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chos
380
  expression_means = expression_means.sort(col_chosen, descending=True)
381
 
382
  #expression_means = expression_means.select(["batch", "Gene", "Expression"] + condition3_chosen)
383
- labels = dff[col_chosen].to_list()
384
- labels = sorted(labels)
385
 
386
- fig_pie = px.pie(category_counts, values="normalized_count", names=col_chosen, labels=col_chosen, hole=.3, title=pie_title,template="seaborn", category_orders=labels)
387
 
388
  #labels = category_counts[col_chosen].to_list()
389
  #values = category_counts["normalized_count"].to_list()
 
380
  expression_means = expression_means.sort(col_chosen, descending=True)
381
 
382
  #expression_means = expression_means.select(["batch", "Gene", "Expression"] + condition3_chosen)
383
+ category_counts = category_counts.sort(col_chosen)
 
384
 
385
+ fig_pie = px.pie(category_counts, values="normalized_count", names=col_chosen, labels=col_chosen, hole=.3, title=pie_title, template="seaborn")
386
 
387
  #labels = category_counts[col_chosen].to_list()
388
  #values = category_counts["normalized_count"].to_list()