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

Issue with detail report for mh06WL-017.v1 #146

Closed
standage opened this issue Oct 18, 2023 · 0 comments · Fixed by #150
Closed

Issue with detail report for mh06WL-017.v1 #146

standage opened this issue Oct 18, 2023 · 0 comments · Fixed by #150
Assignees
Labels
bug Something isn't working

Comments

@standage
Copy link
Member

Bug description

Error when running microhapdb marker mh06WL-017.v1 --format=detail.

Observed behavior

$ microhapdb marker mh06WL-017.v1 --format=detail
Traceback (most recent call last):
  File "/Users/daniel.standage/anaconda3/envs/microhapdb/bin/microhapdb", line 33, in <module>
    sys.exit(load_entry_point('microhapdb', 'console_scripts', 'microhapdb')())
  File "/Users/daniel.standage/Software/MicroHapDB/microhapdb/cli/__init__.py", line 67, in main
    mainmethod(args)
  File "/Users/daniel.standage/Software/MicroHapDB/microhapdb/cli/marker.py", line 29, in main
    display(
  File "/Users/daniel.standage/Software/MicroHapDB/microhapdb/cli/marker.py", line 87, in display
    print(marker.detail)
  File "/Users/daniel.standage/Software/MicroHapDB/microhapdb/marker.py", line 238, in detail
    self.print_detail_targetseq(output)
  File "/Users/daniel.standage/Software/MicroHapDB/microhapdb/marker.py", line 294, in print_detail_targetseq
    self.print_detail_targetseq_alleles(blocks, out)  # Row 3+: alleles
  File "/Users/daniel.standage/Software/MicroHapDB/microhapdb/marker.py", line 348, in print_detail_targetseq_alleles
    allele=allelevars[n], length=self.variant_lengths[n]
IndexError: list index out of range

Expected behavior

A properly formatted marker detail report.

Technical specs

  • Which version of MicroHapDB are you using? (microhapdb --version): MicroHapDB v0.10+3.g62caacb.dirty
  • Which version of Python are you running? (python --version): Python 3.9.13
  • Which operating system (Windows, Mac, Linux) and version (Windows 10, Mac OS X Catalina, Ubuntu 18.04) are you running? MacOS Ventura 13.6
@standage standage added the bug Something isn't working label Oct 18, 2023
@standage standage self-assigned this Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant