-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels