Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
8820325
1
Parent(s):
12e815f
Update ASCARIS.py
Browse files- ASCARIS.py +3 -8
ASCARIS.py
CHANGED
@@ -16,15 +16,10 @@ from datasets import load_dataset
|
|
16 |
|
17 |
import os
|
18 |
import zipfile
|
19 |
-
load_dataset("HUBioDataLab/AlphafoldStructures")
|
20 |
-
dataset_folder = 'HUBioDataLab/AlphafoldStructures' # Replace with the actual path to your dataset folder
|
21 |
-
query = 'AF-A0A075B6Y9-F1-model_v4.cif.gz' # Replace with the name of the zip file you want to access
|
22 |
-
zip_file_path = os.path.join(dataset_folder, query)
|
23 |
-
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
24 |
-
zip_ref.extractall('HUBioDataLab/AlphafoldStructures') # Replace with the path where you want to extract the contents
|
25 |
|
26 |
-
|
27 |
-
|
|
|
28 |
|
29 |
def convert_df(df):
|
30 |
return df.to_csv(index=False).encode('utf-8')
|
|
|
16 |
|
17 |
import os
|
18 |
import zipfile
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
dataset = load_dataset("HUBioDataLab/AlphafoldStructures", data_files='AF-A0A075B6Y9-F1-model_v4.cif.gz')
|
21 |
+
c4_subset = load_dataset("HUBioDataLab/AlphafoldStructures")
|
22 |
+
st.write(c4_subset)
|
23 |
|
24 |
def convert_df(df):
|
25 |
return df.to_csv(index=False).encode('utf-8')
|