Skip to content

fix(dupradar): write the MultiQC files as the nf-core dupradar module does - #203

Merged
ewels merged 1 commit into
seqeralabs:mainfrom
rhassaine:fix/dupradar-netlib-v2
Nov 26, 2026
Merged

ewels merged 1 commit into
seqeralabs:mainfrom
rhassaine:fix/dupradar-netlib-v2

Conversation

@rhassaine

@rhassaine rhassaine commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Writes the two dupRadar MultiQC files (_dup_intercept_mqc.txt and _duprateExpDensCurve_mqc.txt) the way the nf-core dupradar module's R template writes them, so they render the same in an nf-core/rnaseq MultiQC report:

  • the template's own YAML headers;
  • space-separated values with 15 significant digits;
  • the curve as the fitted duplication rate (%) at every 10th expressed gene sorted by RPK, instead of 101 evenly spaced points;
  • the sample name cleaned with the same gsub().

Slimmed down after review: the earlier version also ported R's glm.fit / LINPACK and the reference BLAS arithmetic to match the intercept and slope to the last digit. That's gone; the fit is unchanged from main, so the numbers in these files can differ from R's in the last digits, but the layout matches the template.

🤖 Generated with Claude Code

… does

The nf-core module writes _dup_intercept_mqc.txt and
_duprateExpDensCurve_mqc.txt from its R template: its own YAML headers,
space-separated values with 15 significant digits, and the curve as the
fitted duplication rate (%) at every 10th expressed gene sorted by RPK.
RustQC wrote different headers, tab-separated values and 101 evenly spaced
points. Write both files in the template's layout.

The fit itself is unchanged, so the numbers can differ from R's in the last
digits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rhassaine
rhassaine force-pushed the fix/dupradar-netlib-v2 branch from 01e1342 to ef0fbec Compare November 26, 2026 15:59
@rhassaine rhassaine changed the title fix(dupradar): reproduce R's glm fit and the nf-core MultiQC files exactly fix(dupradar): write the MultiQC files as the nf-core dupradar module does Nov 26, 2026
@ewels
ewels merged commit b263608 into seqeralabs:main Nov 26, 2026
7 checks passed
@rhassaine
rhassaine deleted the fix/dupradar-netlib-v2 branch November 27, 2026 15:52
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