samsledje / D-SCRIPT

A structure-aware interpretable deep learning model for sequence-based prediction of protein-protein interactions
http://dscript.csail.mit.edu
MIT License
87 stars 18 forks source link

The size of tensor a (4268) must match the size of tensor b (2000) at non-singleton dimension 2 #68

Closed Lsz-20 closed 3 months ago

Lsz-20 commented 4 months ago

Hello, I'm trying to run my dataset with dscript train But it shows me this : RuntimeError: The size of tensor a (4268) must match the size of tensor b (2000) at non-singleton dimension 2 How can i solve this problem?

samsledje commented 3 months ago

Hi @Lsz-20 , D-SCRIPT does not support proteins longer than 2000 amino acids. I would recommend cropping your protein and potentially making multiple predictions on different crops ~1200 AA long, then taking the maximum value.