Repository navigation
Add support for TMT16 and TMT18 correction matrix files - #599
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit 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)
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. Comment |
There was a problem hiding this comment.
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.
| 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]}\"" |
There was a problem hiding this comment.
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.
| 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('/')}\"" |
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).