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

Some plasmidfinder blast results causing staramr to crash #158

Closed
apetkau opened this issue Oct 24, 2022 · 0 comments · Fixed by #159
Closed

Some plasmidfinder blast results causing staramr to crash #158

apetkau opened this issue Oct 24, 2022 · 0 comments · Fixed by #159

Comments

@apetkau
Copy link
Member

apetkau commented Oct 24, 2022

Issue

When running staramr where some plasmidfinder incompatibility factors are detected causes staramr to crash with the following message:

2022-10-24 11:47:20 ERROR: Index length not within range, for [rep21_24_rep(CN1_plasmid2)_NC_022227]
Traceback (most recent call last):
  File "/home/CSCScience.ca/apetkau/miniconda3/envs/staramr-0.9.0/bin/staramr", line 68, in <module>
    args.run_command(args)
  File "/home/CSCScience.ca/apetkau/miniconda3/envs/staramr-0.9.0/lib/python3.10/site-packages/staramr/subcommand/Search.py", line 467, in run
...
  File "/home/CSCScience.ca/apetkau/miniconda3/envs/staramr-0.9.0/lib/python3.10/site-packages/staramr/blast/results/plasmidfinder/PlasmidfinderHitHSP.py", line 56, in __init__
    raise Exception("Index length not within range, for [" + self.get_amr_gene_id() + "]")
Exception: Index length not within range, for [rep21_24_rep(CN1_plasmid2)_NC_022227]

Testing

To test this out, please download the following test file:

Unzip this file and try running the following:

staramr search -o out test-plasmid-rep.fsa

You should receive the above error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant