You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example code provided in the README.md for TrRosetta doesn't work and throws the following exception:
Traceback (most recent call last):
File "...", line 1, in <module>
msas_processed = tr_preprocessing.process(msas)
File ".venv/lib/python3.10/site-packages/sequence_models/trRosetta_utils.py", line 254, in process
x = F.one_hot(x, len(trR_ALPHABET)).unsqueeze(0).float()
TypeError: one_hot(): argument 'input' (position 1) must be Tensor, not list
code:
fromsequence_models.trRosetta_utilsimporttrRosettaPreprocessing, parse_a3mfromsequence_models.trRosettaimporttrRosettafromsequence_models.constantsimporttrR_ALPHABETmsas=parse_a3m(path_to_msa) # load in msas in a3m formatalphabet=trR_ALPHABET# load your alphabet ordertr_preprocessing=trRosettaPreprocessing(alphabet) # setup preprocessor for msamsas_processed=tr_preprocessing.process(msas)
The text was updated successfully, but these errors were encountered:
GrayWasTaken
changed the title
TrRosetta example doesn't actually work
TrRosetta example doesn't work
May 6, 2023
The example code provided in the
README.md
for TrRosetta doesn't work and throws the following exception:code:
The text was updated successfully, but these errors were encountered: