Update dash_plotly_QC_scRNA.py
Browse files- dash_plotly_QC_scRNA.py +9 -9
dash_plotly_QC_scRNA.py
CHANGED
|
@@ -26,14 +26,6 @@ mountpount=os.environ['AZURE_MOUNT_POINT'],
|
|
| 26 |
AZURE_STORAGE_ACCESS_KEY=os.getenv('AZURE_STORAGE_ACCESS_KEY')
|
| 27 |
AZURE_STORAGE_ACCOUNT=os.getenv('AZURE_STORAGE_ACCOUNT')
|
| 28 |
|
| 29 |
-
filepath = 'az://dataliu/Aniridia_SC_liu_unfiltered_umap_raw.parquet'
|
| 30 |
-
|
| 31 |
-
storage_options={'account_name': AZURE_STORAGE_ACCOUNT, 'account_key': AZURE_STORAGE_ACCESS_KEY,'anon': False}
|
| 32 |
-
#azfs = AzureBlobFileSystem(**storage_options )
|
| 33 |
-
|
| 34 |
-
df = pl.read_parquet(filepath,storage_options=storage_options)
|
| 35 |
-
#abfs = AzureBlobFileSystem(account_name=accountname,account_key=accountkey)
|
| 36 |
-
|
| 37 |
# Load in config file
|
| 38 |
config_path = "./data/config.yaml"
|
| 39 |
|
|
@@ -44,12 +36,20 @@ def read_config(filename):
|
|
| 44 |
return config
|
| 45 |
|
| 46 |
config = read_config(config_path)
|
| 47 |
-
|
| 48 |
conditions = config.get("conditions")
|
| 49 |
col_features = config.get("col_features")
|
| 50 |
col_counts = config.get("col_counts")
|
| 51 |
col_mt = config.get("col_mt")
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
#df = df.rename({"__index_level_0__": "Unnamed: 0"})
|
| 54 |
|
| 55 |
# Setup the app
|
|
|
|
| 26 |
AZURE_STORAGE_ACCESS_KEY=os.getenv('AZURE_STORAGE_ACCESS_KEY')
|
| 27 |
AZURE_STORAGE_ACCOUNT=os.getenv('AZURE_STORAGE_ACCOUNT')
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Load in config file
|
| 30 |
config_path = "./data/config.yaml"
|
| 31 |
|
|
|
|
| 36 |
return config
|
| 37 |
|
| 38 |
config = read_config(config_path)
|
| 39 |
+
path_parquet = config.get("path_parquet")
|
| 40 |
conditions = config.get("conditions")
|
| 41 |
col_features = config.get("col_features")
|
| 42 |
col_counts = config.get("col_counts")
|
| 43 |
col_mt = config.get("col_mt")
|
| 44 |
|
| 45 |
+
filepath = f('az://{path_parquet}')
|
| 46 |
+
|
| 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 |
+
#abfs = AzureBlobFileSystem(account_name=accountname,account_key=accountkey)
|
| 52 |
+
|
| 53 |
#df = df.rename({"__index_level_0__": "Unnamed: 0"})
|
| 54 |
|
| 55 |
# Setup the app
|