Spaces:
Sleeping
Sleeping
Commit
·
857efb5
1
Parent(s):
dc66b2b
Update ASCARIS.py
Browse files- ASCARIS.py +9 -1
ASCARIS.py
CHANGED
|
@@ -13,13 +13,21 @@ import base64
|
|
| 13 |
showWarningOnDirectExecution = False
|
| 14 |
|
| 15 |
from datasets import load_dataset
|
| 16 |
-
|
| 17 |
# Replace 'dataset_name' with the name of the dataset you want to use
|
| 18 |
|
| 19 |
dataset = load_dataset('HUBioDataLab/AlphafoldStructures')
|
| 20 |
|
| 21 |
|
| 22 |
file_path = 'AF-A0A075B6Y9-F1-model_v4.cif.gz'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Access the file content
|
| 25 |
st.write(file_path)
|
|
|
|
| 13 |
showWarningOnDirectExecution = False
|
| 14 |
|
| 15 |
from datasets import load_dataset
|
| 16 |
+
"""
|
| 17 |
# Replace 'dataset_name' with the name of the dataset you want to use
|
| 18 |
|
| 19 |
dataset = load_dataset('HUBioDataLab/AlphafoldStructures')
|
| 20 |
|
| 21 |
|
| 22 |
file_path = 'AF-A0A075B6Y9-F1-model_v4.cif.gz'
|
| 23 |
+
"""
|
| 24 |
+
import os
|
| 25 |
+
import zipfile
|
| 26 |
+
dataset_folder = 'HUBioDataLab/AlphafoldStructures' # Replace with the actual path to your dataset folder
|
| 27 |
+
query = 'AF-A0A075B6Y9-F1-model_v4.cif.gz' # Replace with the name of the zip file you want to access
|
| 28 |
+
zip_file_path = os.path.join(dataset_folder, query)
|
| 29 |
+
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
| 30 |
+
zip_ref.extractall('HUBioDataLab/AlphafoldStructures') # Replace with the path where you want to extract the contents
|
| 31 |
|
| 32 |
# Access the file content
|
| 33 |
st.write(file_path)
|