hi~
running deepimmuno-cnn on mode "multiple" returns this error:
UnboundLocalError: local variable 'encode' referenced before assignment
which can be traced back to line 156 of deepimmuno-cnn.py when running peptide_data_aaindex - specifically when running:
encode_pep = peptide_data_aaindex(peptide,after_pca)
replacing the function peptide_data_aaindex in place solved the issue for me - so instead of running the line above I run instead:
# encode_pep = peptide_data_aaindex(peptide,after_pca) # [10,12]
length = len(peptide)
if length == 10:
encode = aaindex(peptide,after_pca)
elif length == 9:
peptide = peptide[:5] + '-' + peptide[5:]
encode = aaindex(peptide,after_pca)
encode = encode.reshape(encode.shape[0], encode.shape[1], -1)
encode_pep = encode
not sure whether anyone else can replicate this error, but am raising the issue in case this is actually a bug.
thanks for building this tool!
cheers,
Leda
hi~
running deepimmuno-cnn on mode "multiple" returns this error:
which can be traced back to line 156 of
deepimmuno-cnn.pywhen runningpeptide_data_aaindex- specifically when running:replacing the function
peptide_data_aaindexin place solved the issue for me - so instead of running the line above I run instead:not sure whether anyone else can replicate this error, but am raising the issue in case this is actually a bug.
thanks for building this tool!
cheers,
Leda