Closed stroehleina closed 2 years ago
NB this only occurs when no blastn
hits are found.
Otherwise mlst
creates the expected output columns, even with schemes with < 7 alleles.
Two examples for --scheme vibrio
(4 alleles) when all and one allele are found, respectively:
mlst --scheme vibrio vibrio_test.fa
[09:38:27] This is mlst 2.22.1 running on linux with Perl 5.032001
[09:38:27] Checking mlst dependencies:
[09:38:27] Found 'blastn' => /home/astroehlein/.conda/envs/debugmlst/bin/blastn
[09:38:27] Found 'any2fasta' => /home/astroehlein/.conda/envs/debugmlst/bin/any2fasta
[09:38:27] Found blastn: 2.13.0+ (002013)
[09:38:27] Setting --minscore=0 because user chose --scheme
[09:38:27] Found exact allele match vibrio.atpA-1
[09:38:27] Found exact allele match vibrio.gyrB-1
[09:38:27] Found exact allele match vibrio.pyrH-1
[09:38:27] Found exact allele match vibrio.recA-1
vibrio_test.fa vibrio 1 gyrB(1) pyrH(1) recA(1) atpA(1)
[09:38:27] I am quite confident this won't be the last time you run mlst.
[09:38:27] Done.
mlst --scheme vibrio single_allele_vibrio_test.fa
[09:42:02] This is mlst 2.22.1 running on linux with Perl 5.032001
[09:42:02] Checking mlst dependencies:
[09:42:02] Found 'blastn' => /home/astroehlein/.conda/envs/debugmlst/bin/blastn
[09:42:02] Found 'any2fasta' => /home/astroehlein/.conda/envs/debugmlst/bin/any2fasta
[09:42:02] Found blastn: 2.13.0+ (002013)
[09:42:02] Setting --minscore=0 because user chose --scheme
[09:42:03] Found exact allele match vibrio.atpA-1
single_allele_vibrio_test.fa vibrio - gyrB(-) pyrH(-) recA(-) atpA(1)
[09:42:03] Somehow this tool escaped my normal Australiana based naming system.
[09:42:03] Done.
When running
mlst
against a sequence file that does not produce anyblastn
hits and against a scheme that has less than 7 alleles,mlst
outputs 7 allele columns (instead of as many allele columns as are defined in the scheme). This occurs both for--legacy
mode and for normal mode.Expected behavior
mlst
should output as many allele columns as there are alleles present in the scheme, not 7.Minimal example to reproduce the error
head debugmlst.fa
(gzipped example file
debugmlst.fa
attached)conda create -n debugmlst mlst
conda activate debugmlst
Make sure mlst is running correctly
mlst --version
mlst --check
1. Example 1 (
--scheme vibrio
, 4 alleles)mlst --debug --scheme vibrio debugmlst.fa
2. Example 2 (
--scheme mhyopneumoniae
, 3 alleles)mlst --debug --scheme mhyopneumoniae debugmlst.fa
3. Example 3 (
--scheme mflocculare
,--legacy
mode, 3 alleles)mlst --debug --legacy --scheme mflocculare debugmlst.fa
debugmlst.fa.zip