Spaces:
Sleeping
Sleeping
Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +5 -4
dash_plotly_QC_scRNA.py
CHANGED
|
@@ -51,7 +51,7 @@ storage_options={'account_name': AZURE_STORAGE_ACCOUNT, 'account_key': AZURE_STO
|
|
| 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"})
|
|
@@ -66,11 +66,12 @@ tab0_content = html.Div([
|
|
| 66 |
Input(component_id='dpdn1', component_property='value')
|
| 67 |
)
|
| 68 |
def update_dataset(dataset_chosen):
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
return
|
| 73 |
|
|
|
|
| 74 |
min_value = df[col_features].min()
|
| 75 |
max_value = df[col_features].max()
|
| 76 |
|
|
|
|
| 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"})
|
|
|
|
| 66 |
Input(component_id='dpdn1', component_property='value')
|
| 67 |
)
|
| 68 |
def update_dataset(dataset_chosen):
|
| 69 |
+
if f"az://{path_parquet}" != f"az://data10xflex/{dataset_chosen}.parquet"
|
| 70 |
+
global filepath
|
| 71 |
+
filepath = f"az://data10xflex/{dataset_chosen}.parquet"
|
| 72 |
return
|
| 73 |
|
| 74 |
+
df = pl.read_parquet(filepath, storage_options=storage_options)
|
| 75 |
min_value = df[col_features].min()
|
| 76 |
max_value = df[col_features].max()
|
| 77 |
|