Skip to content

Draw MultiQC box plot whiskers at 1.5 × IQR - #482

Open
jonasscheid wants to merge 4 commits into
nf-core:devfrom
jonasscheid:aligned-residuals-tukey-whiskers
Open

jonasscheid wants to merge 4 commits into
nf-core:devfrom
jonasscheid:aligned-residuals-tukey-whiskers

Conversation

@jonasscheid

@jonasscheid jonasscheid commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

With boxplot_boxpoints: false, Plotly draws box plot whiskers at the data min/max, so a handful of outliers stretch every box plot's axis (e.g. aligned residuals at ±10% while boxes span ±0.2%). This PR computes Tukey statistics (whiskers at the most extreme value within 1.5 × IQR) in summarize_results.py and passes them to MultiQC as JSON, so all five box plots get standard whiskers without plotting outlier points.

  • Fragment mass errors from IDMassAccuracy are now routed through SUMMARIZE_RESULTS, grouped per sample/condition like the trafoXMLs.
  • Report size drops because raw values are no longer embedded (7.6 MB → 2.3 MB on a 6-run test).
  • Box statistics match matplotlib.cbook.boxplot_stats(whis=1.5) to rounding on all five plots.

jonasscheid and others added 2 commits September 25, 2026 11:19
…atistics without plotting outliers.

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

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 519c98b

+| ✅ 318 tests passed       |+
!| ❗   6 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • nextflow_config - Config manifest.version should end in dev: 3.3.0
  • pipeline_todos - TODO string in nextflow.config: Specify any additional parameters here
  • pipeline_todos - TODO string in CONTRIBUTING.md: Add any pipeline specific contribution guidelines here, such as coding styles, procedures, checklists etc.
  • schema_lint - Input mimetype is missing or empty

✅ Tests passed:

Run details

  • nf-core/tools version 4.1.0
  • Run at 2026-09-25 13:40:53

jonasscheid and others added 2 commits September 25, 2026 13:10
….3.0.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonasscheid
jonasscheid marked this pull request as ready for review September 25, 2026 13:42
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.

1 participant