Arts-of-coding commited on
Commit
35c40eb
·
verified ·
1 Parent(s): da969cb

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +1 -1
dash_plotly_QC_scRNA.py CHANGED
@@ -336,7 +336,7 @@ def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chos
336
  category_counts = category_counts.with_columns(((pl.col("count") / total_count * 100).round(decimals=2)).alias("normalized_count"))
337
 
338
  # Sort the dataframe
339
- category_counts = category_counts.sort(col_chosen)
340
 
341
  # Display the result
342
  total_cells = total_count # Calculate total number of cells
 
336
  category_counts = category_counts.with_columns(((pl.col("count") / total_count * 100).round(decimals=2)).alias("normalized_count"))
337
 
338
  # Sort the dataframe
339
+ category_counts = category_counts.sort(col_chosen, descending=True)
340
 
341
  # Display the result
342
  total_cells = total_count # Calculate total number of cells