IBM / fold2seq

Code for Fold2Seq paper from ICML 2021
Apache License 2.0
49 stars 8 forks source link

Error running fold_feat_gen.py #1

Closed aiXander closed 2 years ago

aiXander commented 3 years ago

I'm getting errors running the preprocessing script:

total number of seqs: 470679
removed # seqs in ss.txt: 9337
Traceback (most recent call last):
  File "fold_feat_gen.py", line 154, in <module>
    x1,x2 = selection(line[0] ,  line[2], int(line[3]), int(line[4]), seq_ss)  
  File "fold_feat_gen.py", line 44, in selection
    start = start.replace(')','')
AttributeError: 'int' object has no attribute 'replace'

start and end are integers when I print them, so doesn't make sense that a string replace is applied to them... Any idea what's going on here?

YueCao94 commented 2 years ago

We really thank you for your question! It is actually a bug in the code and we have fixed it.