Skip to content

Release 1.0.3: tell unread markers from absent ones - #41

Merged
Paururo merged 15 commits into
mainfrom
1.0.3
Nov 1, 2026
Merged

Paururo merged 15 commits into
mainfrom
1.0.3

Conversation

@Paururo

@Paururo Paururo commented Nov 1, 2026

Copy link
Copy Markdown
Member

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.

  • Version: 1.0.3 in both crates, the app, 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.
  • Readme: train has no --excel, and match writes the workbook only with -o (both checked by running); 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. The quick start was run as written, every documentation link exists, and the panel and model figures match the Zenodo deposit.
  • Security: rust_xlsxwriter 0.102 moves to zip 9.2.1, which clears the five open Dependabot advisories against zip 8.6, one of them critical. Every workbook that predict, classify, split-fastq and match write still matches its TSV cell for cell, and an identifier such as 0048 stays text.

Verification: 87 + 83 + 16 tests pass, the app compiles, mkdocs build --strict is clean, and the binary reports 1.0.3.

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.
@github-actions github-actions Bot added documentation Improvements or additions to documentation module:train Model training module:predict Prediction from a trained model module:classify Marker calling on assemblies module:split-fastq Alignment-free genotyping from reads module:match Closest reference matching module:gui The Tauri desktop app area:markers Marker panels, their format and their validation area:packaging Release artifacts, Bioconda, installation area:ci Workflows, checks and repository automation area:galaxy Galaxy tool wrappers and their test data labels Nov 1, 2026
@Paururo Paururo removed module:train Model training module:predict Prediction from a trained model module:classify Marker calling on assemblies module:split-fastq Alignment-free genotyping from reads labels Nov 1, 2026
@Paururo Paururo removed the module:match Closest reference matching label Nov 1, 2026
@Paururo
Paururo merged commit dcee636 into main Nov 1, 2026
4 checks passed
@Paururo
Paururo deleted the 1.0.3 branch November 1, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Workflows, checks and repository automation area:galaxy Galaxy tool wrappers and their test data area:markers Marker panels, their format and their validation area:packaging Release artifacts, Bioconda, installation documentation Improvements or additions to documentation module:gui The Tauri desktop app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant