Repository navigation
Conversation
A k-mer says what it matched, never where, and some markers of the WHO catalogue have an alternative k-mer the reference already holds elsewhere, or a reference window it holds twice, so they read the same in every genome whatever the sample carries. The reference is now read once while the index is built, and those markers are settled by an anchor unique in the reference as well as in the genome, or reported as not determined. The app's resistance card also shows the amino acid the sample's own codon reads when it differs from the catalogue label.
A record with no usable k-mer, such as an N-masked consensus, used to get an ordinary lineage call and confidence, and is now reported as Undetermined beside a Kmers_Used count. Train no longer prints an unmeasured accuracy as 0.00%, deals its cross-validation folds so none comes out empty, warns when trees never split, and breaks vote ties by label rather than by file order. The Excel writer keeps sample names as text, and predict's cleanup no longer deletes an earlier run's workbook.
The singleton filter switched itself on above 100,000 unique k-mers and the score was then a fraction of what remained, so 3% more reads could turn 0.8886 into a perfect 1.0000; it now applies only when asked for, and the report carries the denominator. Query k-mers are cut after removing the line breaks of a wrapped FASTA, Query_Files comes out in the same order on every run, and the Excel log names the file it wrote. The app's five match controls that reached nothing are replaced by the one that changes the answer.
The single test split was a plain shuffle, so a lineage with few genomes was often left out and the accuracy described only the others. Every lineage with two genomes or more is now tested, and the report adds the mean accuracy per lineage, naming those below 100%.
A node of twice --min-samples-leaf samples or fewer is never split, and the default of 5 kept the trees too shallow to separate lineages with few genomes; it is now 1 in the CLI, the app and Galaxy, which did better on every panel measured. The documentation now says that a feature bucket is the last ten bases of the canonical k-mer, which a full hash did not improve on, and the coordinates report prints the bases found at each position instead of the canonical k-mer.
Every page was checked against the code and every figure measured again with the final binary. The fixes cover a missing flag, examples without the new columns, two pages still describing dropped records, missing undetermined reasons, one figure that had never been measured, figures from before the paralogue guard, and counts given to the wrong module.
Every command creates its outputs before it has finished reading its inputs, so an output named after an input destroyed it: a sample list, a FASTA to predict, the references for match, the marker panel and the training data could all be truncated or replaced, and three of those runs exited successfully. Each command now compares its outputs with its inputs once paths are resolved and stops with a message naming both before anything is written.
The lineage:count column counts every prefix of a marker's path, which tallies each level of a lineage hierarchy, but a catalogue path is not a hierarchy and its prefixes run into the WHO grade, which has spaces in it. The space-separated pairs then came apart and the column could not be read back; with a resistance panel it now counts the markers found per drug, as undetermined:count already did.
split-fastq read each record's sequence with its newlines still in it, so every k-mer spanning a line break of a wrapped FASTA was skipped as holding an invalid base, and a variant whose k-mer crossed one was never seen. Both scans now read the sequence without them; FASTQ reads have none, so their results do not change.
Every output example is now an excerpt of a real run, and the hand-written ones they replace were inconsistent: a predict row whose vote shares added up to more than one, classify rows placing a marker outside the gene it named, and match counts no real run would produce. The input reference now describes the WHO resistance panel shape the tools recognise, and several pages that still described dropped records or the old columns say what the tools do today.
The list was read into a hash map, so the detailed table listed the samples in a different order on every run, and which of two masked FASTA files sharing a stem got the _2 suffix changed with it. Samples now come out in list order.
The input and output pages now run one small invented dataset through every command and show what pathotypr wrote, with the real-run excerpts kept below. The pass also fixed examples that disagreed with the code: marker rows whose REF is not the reference base, the GFF naming rule, the match note and the predict rows.
The core crate, the app, CITATION.cff, the Galaxy wrapper and the issue templates move to 1.0.3, and the app screenshots in the docs are rendered again so the sidebar shows it.
train has no --excel and match writes the workbook only with -o; classify calls MNVs and small indels as well as SNPs; the resistance panel also carries TB-Profiler's literature set; and a contributor tooltip was misspelt.
rust_xlsxwriter 0.102 moves to zip 9, and zip 9.2.1 fixes the five open advisories against 8.6, one of them critical. Every workbook the commands write still matches its TSV cell for cell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version bump, readme corrections and a dependency update for 1.0.3. It sits on #40: once that is merged, this shows only its own three commits.
CITATION.cff(released 2026-11-01), the Galaxy wrapper, the issue templates and the sidebar placeholder. The app screenshots in the docs are rendered again at the same scale, so they show it.trainhas no--excel, andmatchwrites the workbook only with-o(both checked by running);classifycalls MNVs and small indels as well as SNPs; the resistance panel also carries TB-Profiler's literature set; and a contributor tooltip was misspelt. The quick start was run as written, every documentation link exists, and the panel and model figures match the Zenodo deposit.predict,classify,split-fastqandmatchwrite still matches its TSV cell for cell, and an identifier such as0048stays text.Verification: 87 + 83 + 16 tests pass, the app compiles,
mkdocs build --strictis clean, and the binary reports 1.0.3.