Closed bgruening closed 2 years ago
Thanks so much for reporting @bgruening . Your assessment makes sense. A better error message would be useful here 😄
I'll see if I can reproduce it.
Thanks @apetkau!
I can't seem to recreate this error in the newest version (38f24ad). Let me know if you want to me to try with the same data that gave you the error.
rm -rf out-blast out-sum
staramr search --output-hits-dir out-blast --output-summary out-sum staramr/tests/integration/data/16S_gyrA_beta-lactam.fsa
Output Summary (out-sum
):
Isolate ID Quality Module Genotype Predicted Phenotype Plasmid Scheme Sequence Type Genome Length N50 value Number of Contigs Greater Than Or Equal To 300 bp Quality Module Feedback
16S_gyrA_beta-lactam Failed blaIMP-42 ampicillin, amoxicillin/clavulanic acid, cefoxitin, ceftriaxone, meropenem None - - 5220 5220 1 Genome length is not within the acceptable length range [4000000,6000000] ; N50 value is not greater than the specified minimum value [10000]
BLAST Output (out-blast/resfinder_16S_gyrA_beta-lactam.fsa
):
>blaIMP-42_1_AB753456 isolate: 16S_gyrA_beta-lactam, contig: 16S_rrsD, contig_start: 4381, contig_end: 5121, database_gene_start: 1, database_gene_end: 741, hsp/length: 741/741, pid: 99.73%, plength: 100.00%
ATGAGCAAGTTATCTGCATTCTTTATATTTTTGTTTTGCAGCATTGATACCGCAGCAGAG
TCTTTGCCAGATTTAAAAATTGAAAAGCTTGATGAAGGCGTTTATGTTCATACTTCGTTT
GAAGAAGTTAACAGGTGGGGCGTTGTTCCTAAACATGGTTTGGTGGTTCTTGTAAATGCT
GAGGCTTACCTAATTGACACTCCATTTACGGCTAAAGATACTGAAAAGTTAGTCACTTGG
TTTGTGGAGCGTGGCTATAAAATAAAAGGCAGCATTTCCTCTCATTTTCATAGCGACAGC
ACGGGCGGAATAGAGTGGCTTAATTCTCGATCTATCCCCACGTATGCATCTGAATTAACA
AATGAACTGCTTAAAAAAGACGGTAAGGTTCAAGCCACAAATTCATTTAGCGGAGTTAAC
TATTGGCTAGTTAAAAATAAAATTGAAGTTTTTTATCCAGGCCCGGGACACACTCCAGAT
AACGTAGTGGTTTGGTTGCCTGAAAGGAAAATATTATTCGGTGGTTGTTTTATTAAACCG
TACGGTTTAGGCAATTTGGGTGACGCAAATATAGAAGCTTGGCCAAAGTCCGCCAAATTA
TTAAAGTCCAAATATGGTAAGGCAAAACTGGTTGTTCCAAGTCACAGTGAAGTTGGAGAC
GCATCACTCTTGAAACTTACATTAGAGCAGGCGGTTAAAGGGTTAAACGAAAGTAAAAAA
CCATCAAAACCAAGCAACTAA
too-short.fsa:
>SHORT
A
rm -rf out-blast out-sum
staramr search --output-hits-dir out-blast --output-summary out-sum too-short.fsa
Output Summary (out-sum
):
Isolate ID Quality Module Genotype Predicted Phenotype Plasmid Scheme Sequence Type Genome Length N50 value Number of Contigs Greater Than Or Equal To 300 bp Quality Module Feedback
too-short Failed None Sensitive None - - 1 1 0 Genome length is not within the acceptable length range [4000000,6000000] ; N50 value is not greater than the specified minimum value [10000]
BLAST Output (out-blast/
):
ls -l out-blast/
total 0
And there was no error message.
Fixed in #160
I assume the following traceback is due to the fact that there are no BLAST results. An improved error message could help here to guide the user