Skip to content

Commit dcbd578

Browse files
committed
scope esm2 config
1 parent ab9bd1c commit dcbd578

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

chebai_proteins/preprocessing/datasets/scope/scope.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import torch
2525
from Bio import SeqIO
2626
from chebai.preprocessing.datasets.base import _DynamicDataset
27-
from chebai.preprocessing.reader import ProteinDataReader
27+
from chebai.preprocessing.reader import ESM2EmbeddingReader, ProteinDataReader
2828

2929

3030
class _SCOPeDataExtractor(_DynamicDataset, ABC):
@@ -952,6 +952,10 @@ class SCOPeOverPartial2000(_SCOPeOverXPartial):
952952
THRESHOLD: int = 2000
953953

954954

955+
class SCOPEOver50ESM(SCOPeOver50):
956+
READER = ESM2EmbeddingReader
957+
958+
955959
if __name__ == "__main__":
956960
scope = SCOPeOver50(scope_version="2.08")
957961

configs/data/scope/scope50_esm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class_path: chebai.preprocessing.datasets.scope.scope.SCOPeOver50ESM
2+
init_args:
3+
scope_version: "2.08"
4+
reader_kwargs: {
5+
truncation_length: 1000
6+
}

0 commit comments

Comments
 (0)