Skip to content

Add support for TMT16 and TMT18 correction matrix files - #599

Merged
ypriverol merged 5 commits into
bigbio:devfrom
MaLLLiYA:tmt18_matrix
Oct 30, 2025
Merged

ypriverol merged 5 commits into
bigbio:devfrom
MaLLLiYA:tmt18_matrix

Conversation

@MaLLLiYA

Copy link
Copy Markdown
Collaborator

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 bigbio/quantms 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).

@coderabbitai

coderabbitai Bot commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds support for TMT16 and TMT18 isobaric labeling types by introducing correction matrix handling for these larger multiplexing formats. The changes enable proper isotopic correction for TMT16plex and TMT18plex experiments, which require more correction factors than the existing TMT6/10/11 formats.

  • Added conditional logic to handle TMT16plex and TMT18plex correction matrices with 8 correction factors instead of 4
  • Introduced a default correction matrix file for TMT18plex labeling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
modules/local/openms/isobaric_analyzer/main.nf Added conditional logic to parse correction matrices differently for TMT16/18plex vs smaller TMT formats
assets/tmt18plex_default_correction.matrix New correction matrix file defining isotopic correction factors for TMT18plex labeling across 18 channels

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

Comment on lines +45 to +47
return "\"${values[1]}/${values[2]}/${values[3]}/${values[4]}/${values[5]}/${values[6]}/${values[7]}/${values[8]}\""
} else {
return "\"${values[1]}/${values[2]}/${values[3]}/${values[4]}\""

Copilot AI Oct 28, 2025

Copy link

Choose a reason for hiding this comment

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

Hard-coding array indices makes the code fragile and difficult to maintain. Consider using array slicing instead: values[1..8].join('/') for TMT16/18plex and values[1..4].join('/') for other types. This makes the intent clearer and reduces the risk of errors if the number of correction factors changes.

Suggested change
return "\"${values[1]}/${values[2]}/${values[3]}/${values[4]}/${values[5]}/${values[6]}/${values[7]}/${values[8]}\""
} else {
return "\"${values[1]}/${values[2]}/${values[3]}/${values[4]}\""
return "\"${values.subList(1, 9).join('/')}\""
} else {
return "\"${values.subList(1, 5).join('/')}\""

Copilot uses AI. Check for mistakes.
@ypriverol
ypriverol self-requested a review October 30, 2025 06:16
@ypriverol
ypriverol merged commit c52cbda into bigbio:dev Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants