Arts-of-coding commited on
Commit
d1685ff
1 Parent(s): 901b6e3

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +7 -16
dash_plotly_QC_scRNA.py CHANGED
@@ -20,24 +20,15 @@ config_fig = {
20
  'scale': 1,
21
  }
22
  }
 
 
 
 
23
 
24
- config_path = "./azure/data/config.yaml"
 
 
25
 
26
- # Add the read-in data from the yaml file
27
- def read_config(filename):
28
- with open(filename, 'r') as yaml_file:
29
- config = yaml.safe_load(yaml_file)
30
- return config
31
-
32
- config = read_config(config_path)
33
- path_parquet = config.get("path_parquet")
34
- conditions = config.get("conditions")
35
- col_features = config.get("col_features")
36
- col_counts = config.get("col_counts")
37
- col_mt = config.get("col_mt")
38
-
39
- # Import the data from one .parquet file
40
- df = pl.read_parquet(path_parquet)
41
  #df = df.rename({"__index_level_0__": "Unnamed: 0"})
42
 
43
  # Setup the app
 
20
  'scale': 1,
21
  }
22
  }
23
+ from adlfs import AzureBlobFileSystem
24
+ mountpount=os.environ['AZURE_MOUNT_POINT'],
25
+ accountkey=os.environ['AZURE_STORAGE_ACCESS_KEY'],
26
+ accountname=os.environ['AZURE_STORAGE_ACCOUNT'],
27
 
28
+ storage_options={'account_name': ACCOUNT_NAME, 'anon': False}
29
+ df = pl.read_parquet(path="liu/filename.parquet",storage_options=storage_options)
30
+ #abfs = AzureBlobFileSystem(account_name=accountname,account_key=accountkey)
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  #df = df.rename({"__index_level_0__": "Unnamed: 0"})
33
 
34
  # Setup the app