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
I've been getting errors with a few samples saying
Traceback (most recent call last):
File "/home/pgcudahy/ngs-tools/SplitStrains/splitStrains.py", line 925, in <module>
writeResult(bamFilePath, LR , thresh, alpha_level, [1])
NameError: name 'LR' is not defined
I think this issue is that with low variation samples, writeResult is called with LR as a parameter, but LR isn't defined until after the call.
# call single strain if not enough variation is found
if len(freqVec) < 5:
logging.info(f'Not enough variant sites.')
writeResult(bamFilePath, LR , thresh, alpha_level, [1])
exit()
# test null and alt hypthesis
thresh, LR = likelyhood_ratio_test(freqVec, alpha_level, upperLimit, num_iter, init_p, init_err)
The text was updated successfully, but these errors were encountered:
I've been getting errors with a few samples saying
I think this issue is that with low variation samples,
writeResult
is called withLR
as a parameter, but LR isn't defined until after the call.The text was updated successfully, but these errors were encountered: