Skip to content

refactor(qualimap): drop the Java number formatting - #207

Merged
ewels merged 1 commit into
seqeralabs:mainfrom
rhassaine:refactor/qualimap-plain-format
Nov 27, 2026
Merged

ewels merged 1 commit into
seqeralabs:mainfrom
rhassaine:refactor/qualimap-plain-format

Conversation

@rhassaine

Copy link
Copy Markdown
Contributor

Qualimap output no longer copies Java's number formatting:

  • the text and HTML reports use one plain formatter: at most two decimals, trailing zeros dropped, counts grouped with commas;
  • the raw_data coverage profiles use Rust's standard float formatting (positions written as 0.0 to keep the files' format);
  • the strand estimation and percentages are plain f64 arithmetic, and NaN sorting uses partial_cmp with NaN last.

On 8 test datasets the coverage profiles are byte-identical to before, and the only change is an infinite 5'-3' bias now printed as inf instead of ∞ (MultiQC parses inf as infinity). All values are numerically identical. Net -164 lines.

🤖 Generated with Claude Code

Replace the Java DecimalFormat emulation with a plain formatter: at most two
decimals, trailing zeros dropped, counts grouped with commas.

Also drop the Double.toString emulation in the raw_data coverage profile
files (they now use Rust's shortest round-trip number format, so `0.0`
becomes `0`), the single-precision strand estimation and the percentage
helper; these are plain f64 arithmetic now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@ewels ewels left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ewels
ewels merged commit 8d2ce24 into seqeralabs:main Nov 27, 2026
7 checks passed
@rhassaine
rhassaine deleted the refactor/qualimap-plain-format branch November 27, 2026 15:53
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 this pull request may close these issues.

2 participants