MCPcopy Create free account
hub / github.com/DeepGraphLearning/S3F / ProteinGym

Class ProteinGym

s3f/dataset.py:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56@R.register("datasets.ProteinGym")
57class ProteinGym(core.Configurable):
58
59 def __init__(self, path, csv_file):
60 path = os.path.expanduser(path)
61 self.path = path
62 csv_file = os.path.join(path, csv_file)
63
64 with open(csv_file, "r") as f:
65 reader = csv.DictReader(f)
66 assay_list = [row for row in reader]
67 self.ids = [assay["DMS_id"] for assay in assay_list]
68 self.assay_dict = {assay["DMS_id"]: assay for assay in assay_list}
69
70
71class MutantDataset(torch_data.Dataset):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected