Skip to content

Conversation

@tgelafr-pfzr
Copy link

@tgelafr-pfzr tgelafr-pfzr commented Nov 18, 2025

Update to cellranger v10.0.0

They changed the output structure which necessitated a tweak in the code. For multiplexed experiments, the old output included raw matrices for the pools and filtered matrices for the samples. They are now producing both raw and filtered matrices for both the samples and pools. In the edge case where demultiplexing still happens but the pool and the sample are one and the same (e.g. some samples are being demultiplexed and others aren't in cellranger multi), this resulted in duplicate filtered and raw files for the same sample (once as a pool and once as a "sample"), producing file collisions.

To fix this, I just exclude these "duplicate" files from the output channel.

Snapshots are updated reflecting the change in output structure, differences in the matrix files, and these additional filtered/raw matrix files for samples/pools.

PR checklist

  • This comment contains a description of changes (with reason).
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • CHANGELOG.md is updated.

@tgelafr-pfzr tgelafr-pfzr changed the base branch from master to dev November 18, 2025 20:01
@nf-core nf-core deleted a comment from github-actions bot Nov 18, 2025
@tgelafr-pfzr tgelafr-pfzr marked this pull request as ready for review November 19, 2025 13:31
@nf-core-bot
Copy link
Member

Warning

Newer version of the nf-core template is available.

Your pipeline is using an old version of the nf-core template: 3.4.1.
Please update your pipeline to the latest version.

For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation.

@tgelafr-pfzr tgelafr-pfzr force-pushed the update/cellranger-v10.0.0 branch from 1aadc95 to 760eea7 Compare November 19, 2025 15:15
@tgelafr-pfzr tgelafr-pfzr marked this pull request as draft November 19, 2025 16:00
@tgelafr-pfzr tgelafr-pfzr marked this pull request as ready for review November 20, 2025 19:43
Copilot finished reviewing on behalf of tgelafr-pfzr November 20, 2025 19:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the cellranger tool from version 9.0.1 to 10.0.0, addressing changes in the output structure for multiplexed experiments. The key change handles an edge case where cellranger v10.0.0 now produces both raw and filtered matrices for samples and pools, which previously caused file collisions when a pool and sample are identical.

Key Changes

  • Updated cellranger container from 9.0.1 to 10.0.0 across all modules (count, multi, mkgtf, mkref, mkvdjref)
  • Added filtering logic in align_cellrangermulti.nf to exclude duplicate files when demultiplexed sample ID matches the pool ID
  • Updated test snapshots to reflect new checksums from cellranger v10.0.0 output and adjusted test expectations for BAM file handling

Reviewed Changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
subworkflows/local/align_cellrangermulti.nf Added logic to filter out duplicate matrix files when pool and sample IDs match, preventing file collisions
modules/nf-core/cellranger/*/main.nf Updated container versions from 9.0.1 to 10.0.0 for all cellranger modules
modules/nf-core/cellranger/*/meta.yml Reformatted YAML structure and added ontology metadata for better standardization
modules/nf-core/cellranger//tests/.snap Updated test snapshots with new checksums reflecting cellranger v10.0.0 output changes
modules/nf-core/cellranger/count/tests/main.nf.test Modified test to handle BAM files with unstable checksums by verifying SAM lines instead
modules.json Updated git SHA references for all cellranger modules to the latest version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@dialvarezs dialvarezs left a comment

Choose a reason for hiding this comment

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

Looks good!

@tgelafr-pfzr tgelafr-pfzr merged commit 030f3f7 into nf-core:dev Nov 25, 2025
28 of 29 checks passed
@tgelafr-pfzr tgelafr-pfzr deleted the update/cellranger-v10.0.0 branch November 25, 2025 17:38
@tgelafr-pfzr tgelafr-pfzr linked an issue Nov 25, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to cellranger v10.0.0

3 participants