Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index out of range when checking NS5b coverage #469

Closed
donkirkby opened this issue May 9, 2019 · 0 comments
Closed

Index out of range when checking NS5b coverage #469

donkirkby opened this issue May 9, 2019 · 0 comments

Comments

@donkirkby
Copy link
Member

If the MIDI sample gets rejected for low coverage, then the whole genome sample will fail when it tries to check coverage at resistance positions. The problem is that the list of aminos only goes to position 336 when MIDI is rejected.

Here's the error:

Traceback (most recent call last):
  File "/opt/micall/micall_kive_resistance.py", line 62, in <module>
    main()
  File "/opt/micall/micall_kive_resistance.py", line 59, in main
    sample_group.process_resistance(RunInfo([sample_group]))
  File "/opt/micall/micall/drivers/sample_group.py", line 47, in process_resistance
    resistance_consensus_csv=resistance_consensus_csv)
  File "/opt/micall/micall/resistance/resistance.py", line 545, in report_resistance
    filtered_aminos = filter_aminos(aminos, algorithms)
  File "/opt/micall/micall/resistance/resistance.py", line 273, in filter_aminos
    all_aminos = list(all_aminos)
  File "/opt/micall/micall/resistance/resistance.py", line 251, in read_aminos
    all(aminos[pos-1] for pos in midi_positions))
  File "/opt/micall/micall/resistance/resistance.py", line 251, in <genexpr>
    all(aminos[pos-1] for pos in midi_positions))
IndexError: list index out of range
@donkirkby donkirkby added the bug label May 9, 2019
@donkirkby donkirkby added this to the 7.10 - Container Runs milestone May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant