Arts-of-coding commited on
Commit
8df1b7d
·
verified ·
1 Parent(s): 6badc30

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +5 -5
dash_plotly_QC_scRNA.py CHANGED
@@ -47,15 +47,15 @@ filepath = f"az://{path_parquet}"
47
  storage_options={'account_name': AZURE_STORAGE_ACCOUNT, 'account_key': AZURE_STORAGE_ACCESS_KEY,'anon': False}
48
  #azfs = AzureBlobFileSystem(**storage_options )
49
 
 
 
 
 
50
  #df = pl.read_parquet(filepath,storage_options=storage_options)
51
  df = pl.DataFrame()
52
  #abfs = AzureBlobFileSystem(account_name=accountname,account_key=accountkey)
53
  #df = df.rename({"__index_level_0__": "Unnamed: 0"})
54
 
55
- # Setup the app
56
- external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
57
- app = dash.Dash(__name__, external_stylesheets=external_stylesheets) #, requests_pathname_prefix='/dashboard1/'
58
-
59
  tab0_content = html.Div([
60
  html.Label("Dataset chosen"),
61
  dcc.Dropdown(id='dpdn1', value="d1011/10xflexd1011_umap_clusres", multi=False,
@@ -69,7 +69,7 @@ def update_dataset(dataset_chosen):
69
  global df
70
  filepath = f"az://data10xflex/{dataset_chosen}.parquet"
71
  df = pl.read_parquet(filepath, storage_options=storage_options)
72
- return html.Pre(df.to_string())
73
 
74
  min_value = df[col_features].min()
75
  max_value = df[col_features].max()
 
47
  storage_options={'account_name': AZURE_STORAGE_ACCOUNT, 'account_key': AZURE_STORAGE_ACCESS_KEY,'anon': False}
48
  #azfs = AzureBlobFileSystem(**storage_options )
49
 
50
+ # Setup the app
51
+ external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
52
+ app = dash.Dash(__name__, external_stylesheets=external_stylesheets) #, requests_pathname_prefix='/dashboard1/'
53
+
54
  #df = pl.read_parquet(filepath,storage_options=storage_options)
55
  df = pl.DataFrame()
56
  #abfs = AzureBlobFileSystem(account_name=accountname,account_key=accountkey)
57
  #df = df.rename({"__index_level_0__": "Unnamed: 0"})
58
 
 
 
 
 
59
  tab0_content = html.Div([
60
  html.Label("Dataset chosen"),
61
  dcc.Dropdown(id='dpdn1', value="d1011/10xflexd1011_umap_clusres", multi=False,
 
69
  global df
70
  filepath = f"az://data10xflex/{dataset_chosen}.parquet"
71
  df = pl.read_parquet(filepath, storage_options=storage_options)
72
+ return df
73
 
74
  min_value = df[col_features].min()
75
  max_value = df[col_features].max()