File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
chebai_proteins/preprocessing/datasets/scope Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2424import torch
2525from Bio import SeqIO
2626from chebai .preprocessing .datasets .base import _DynamicDataset
27- from chebai .preprocessing .reader import ProteinDataReader
27+ from chebai .preprocessing .reader import ESM2EmbeddingReader , ProteinDataReader
2828
2929
3030class _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+
955959if __name__ == "__main__" :
956960 scope = SCOPeOver50 (scope_version = "2.08" )
957961
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments