File size: 481 Bytes
af8d6bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
from datasets import load_dataset

def main():
    data_dirs = [
        "./bindingdb_filtered",
        "./CATS",
        "./HSP9",
        "./leakypdb",
        "./Mpro",
    ]

    for data_dir in data_dirs:
        print(data_dir)
        dataset = load_dataset("csv", data_files=os.path.join(data_dir, "data.csv"), delimiter=",")
        print(dataset)
        print("Saving to disk...")
        dataset.save_to_disk(data_dir)


if __name__ == "__main__":
    main()