Arts-of-coding commited on
Commit
c85b5fd
·
verified ·
1 Parent(s): 8794be4

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +2 -1
dash_plotly_QC_scRNA.py CHANGED
@@ -299,8 +299,9 @@ def update_slider_values(min_1, max_1, min_2, max_2, min_3, max_3):
299
  )
300
 
301
  def update_graph_and_pie_chart(s_chosen, g2m_chosen, condition1_chosen, condition2_chosen, condition3_chosen, range_value_1, range_value_2, range_value_3): #batch_chosen,
 
302
  dff = df.filter(
303
- (pl.col(condition1_chosen)) & #.cast(str).is_in(batch_chosen)
304
  (pl.col(col_features) >= range_value_1[0]) &
305
  (pl.col(col_features) <= range_value_1[1]) &
306
  (pl.col(col_counts) >= range_value_2[0]) &
 
299
  )
300
 
301
  def update_graph_and_pie_chart(s_chosen, g2m_chosen, condition1_chosen, condition2_chosen, condition3_chosen, range_value_1, range_value_2, range_value_3): #batch_chosen,
302
+ batch_chosen = df[condition1_chosen].unique().to_list()
303
  dff = df.filter(
304
+ (pl.col(condition1_chosen).cast(str).is_in(batch_chosen)) &
305
  (pl.col(col_features) >= range_value_1[0]) &
306
  (pl.col(col_features) <= range_value_1[1]) &
307
  (pl.col(col_counts) >= range_value_2[0]) &