uw-ipd / RoseTTAFold2NA

RoseTTAFold2 protein/nucleic acid complex prediction
MIT License
322 stars 72 forks source link

UnboundLocalError: local variable 'is_ignore' referenced before assignment #108

Closed SuhasSrinivasan closed 5 months ago

SuhasSrinivasan commented 5 months ago

https://github.com/uw-ipd/RoseTTAFold2NA/blob/0e3742355cd48ff1823e2b6a3893b5a07598d16d/input_prep/make_pMSAs_prot_RNA.py#L119-L120

Traceback (most recent call last):
  File "/mnt/storage/rf2pip/input_prep/make_pMSAs_prot_RNA.py", line 243, in <module>
    main(fnA, fnB, pair_fn)
  File "/mnt/storage/rf2pip/input_prep/make_pMSAs_prot_RNA.py", line 146, in main
    queryB, a3mB = read_afa(fnB)
  File "/mnt/storage/rf2pip/input_prep/make_pMSAs_prot_RNA.py", line 119, in read_afa
    elif is_ignore:
UnboundLocalError: local variable 'is_ignore' referenced before assignment
SuhasSrinivasan commented 5 months ago

This error might pop up in the a3m function too

https://github.com/uw-ipd/RoseTTAFold2NA/blob/0e3742355cd48ff1823e2b6a3893b5a07598d16d/input_prep/make_pMSAs_prot_RNA.py#L36

Solution for read_a3m() and read_afa() is to initialize at Lines 40 and 94

is_ignore = True
SuhasSrinivasan commented 5 months ago

Submitted a Pull Request #111

SuhasSrinivasan commented 5 months ago

Fixed in PR #111