docs(turnover): Update example turnover file#130
Conversation
📝 WalkthroughWalkthroughTest assertions in the PXD055942 Channel-based SILAC converter test case are updated to reflect new output characteristics. Changes include updated row counts, modified Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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.
🧹 Nitpick comments (1)
inst/tinytest/test_converters_DIANNtoMSstatsFormat.R (1)
159-171: Minor:h_pxd_pepandl_pxd_pepare now identical — consider a single variable.Since both heavy and light channel checks are performed on the same peptide (
"TAFDDAIAELDTLNEDSYK(SILAC)(SILAC)(SILAC)"), duplicating the literal in two variables invites future drift (one gets updated, the other doesn't). A single shared variable makes the intent clearer: same peptide, different channel, different run/timepoint.♻️ Proposed consolidation
-h_pxd_pep = "TAFDDAIAELDTLNEDSYK(SILAC)(SILAC)(SILAC)" +pxd_pep = "TAFDDAIAELDTLNEDSYK(SILAC)(SILAC)(SILAC)" h_pxd_run = "20210805_BoxCarmax2nd_wideMS1_JM_pSIL_pro_heart_32d_1" -h_pxd_ints = output_pxd_dt[PeptideSequence == h_pxd_pep & +h_pxd_ints = output_pxd_dt[PeptideSequence == pxd_pep & IsotopeLabelType == "H" & Run == h_pxd_run, Intensity] expect_equal(max(h_pxd_ints, na.rm = TRUE), 2453057.5, tolerance = 1) -l_pxd_pep = "TAFDDAIAELDTLNEDSYK(SILAC)(SILAC)(SILAC)" l_pxd_run = "20210805_BoxCarmax2nd_wideMS1_JM_pSIL_pro_heart_0d_1" -l_pxd_ints = output_pxd_dt[PeptideSequence == l_pxd_pep & +l_pxd_ints = output_pxd_dt[PeptideSequence == pxd_pep & IsotopeLabelType == "L" & Run == l_pxd_run, Intensity] expect_equal(max(l_pxd_ints, na.rm = TRUE), 4686039.5, tolerance = 1)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@inst/tinytest/test_converters_DIANNtoMSstatsFormat.R` around lines 159 - 171, The two test variables h_pxd_pep and l_pxd_pep hold the same peptide literal; replace them with a single shared variable (e.g., peptide_seq or pxd_pep) and use that variable in both queries (where h_pxd_pep and l_pxd_pep are referenced) so the heavy vs light checks only differ by IsotopeLabelType and Run while avoiding duplicate literals and drift.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@inst/tinytest/test_converters_DIANNtoMSstatsFormat.R`:
- Around line 159-171: The two test variables h_pxd_pep and l_pxd_pep hold the
same peptide literal; replace them with a single shared variable (e.g.,
peptide_seq or pxd_pep) and use that variable in both queries (where h_pxd_pep
and l_pxd_pep are referenced) so the heavy vs light checks only differ by
IsotopeLabelType and Run while avoiding duplicate literals and drift.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 81b2d09c-50ba-4725-82fa-bfae5dd5c921
⛔ Files ignored due to path filters (1)
inst/tinytest/raw_data/DIANN/PXD055942.parquetis excluded by!**/*.parquet
📒 Files selected for processing (1)
inst/tinytest/test_converters_DIANNtoMSstatsFormat.R
Motivation and Context
This PR updates test assertions in the DIANN to MSstats format converter test suite. The changes reflect corrections or updates to how the PXD055942 dataset (Channel-based SILAC experiment) is processed and validated by the converter, adjusting expected test outputs to match revised converter behavior.
Detailed Changes
Updated output row count: The expected total row count for the PXD055942 converter test increased from 20400 to 23568 rows, indicating a change in how the dataset is being processed and output by the converter.
Modified IsotopeLabelType distribution: The isotope label type counts were updated:
H(Heavy): now expected at 9720 rowsL(Light): now expected at 9720 rowsNA(Unlabeled): now expected at 4128 rowsReplaced PeptideSequence validation set: The set of peptide sequence values used to validate unlabeled rows (those with
IsotopeLabelType == NA) was replaced with different peptide identities, indicating a change in which peptides are classified as unlabeled.Updated Intensity validation cases: The test cases for channel-derived intensity validation were modified:
Intensitychanged from 662450.1 to 2453057.5Intensitychanged from 116961.9 to 4686039.5Unit Tests Modified
inst/tinytest/test_converters_DIANNtoMSstatsFormat.R