Skip to content

[Fix] Summarize: wide format#311

Merged
jonasscheid merged 5 commits intodevfrom
summarize-fix
Nov 10, 2025
Merged

[Fix] Summarize: wide format#311
jonasscheid merged 5 commits intodevfrom
summarize-fix

Conversation

@axelwalter
Copy link
Copy Markdown
Contributor

Construction of the wide summary dataframe would fail in some files due to MulitIndex issues in

  `summary_binder = best.groupby(peptide_col)['binder'].any().reset_index()`

Use nsmallest/nlargest in _pick_best instead of idxmin/idxmax to ensure
DataFrame with single-index as return type to avoid MultiIndex issues.

Also updated the conda environment.yml file for summarize results to install the mhcgnomes package (contains every requirement such as pandas).

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/epitopeprediction branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 6, 2025

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

Posted for pipeline commit 25bc070

+| ✅ 235 tests passed       |+
#| ❔   3 tests were ignored |#
!| ❗   3 tests had warnings |!
Details

❗ Test warnings:

❔ Tests ignored:

  • files_unchanged - File ignored due to lint config: assets/nf-core-epitopeprediction_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-epitopeprediction_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-epitopeprediction_logo_dark.png

✅ Tests passed:

Run details

  • nf-core/tools version 3.4.1
  • Run at 2025-11-10 08:34:44

@jonasscheid
Copy link
Copy Markdown
Collaborator

@nf-core-bot fix linting

Comment thread bin/summarize_results.py
Comment thread bin/summarize_results.py Outdated
Comment thread bin/summarize_results.py Outdated
Copy link
Copy Markdown
Collaborator

@jonasscheid jonasscheid left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!!

@jonasscheid jonasscheid merged commit 373ee58 into dev Nov 10, 2025
7 checks passed
@jonasscheid jonasscheid deleted the summarize-fix branch March 4, 2026 10:30
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.

3 participants