readQFeatures(): don't ignore colData$quantCols#234
Merged
cvanderaa merged 6 commits intorformassspectrometry:masterfrom Oct 21, 2025
Merged
readQFeatures(): don't ignore colData$quantCols#234cvanderaa merged 6 commits intorformassspectrometry:masterfrom
cvanderaa merged 6 commits intorformassspectrometry:masterfrom
Conversation
Member
|
Hi Alexey, thank you for your PR. Could you provide a simple example that shows the issue and then make use of it in a unit test? I am happy to write the unit test myself if you aren't familiar with |
Author
|
@lgatto I've added 2 unit tests with shuffled colData that fail without the fix. |
Member
|
Thank yo @alyst - we will review the PR before merging. |
cvanderaa
reviewed
May 28, 2025
added 4 commits
June 21, 2025 15:29
remove quantCols argument since it is not used, and the rownames should be derived from colData$quantCols and colData$runCol
897c2db to
3425ca3
Compare
Author
|
@cvanderaa @lgatto Could you please take a look at the PR -- I have tried to address your code review comments? Thank you! |
Member
|
Sorry for the delay. @cvanderaa - could you check and merge, please. |
Member
|
(FYI @alyst, Chris is on holidays until next week) |
lgatto
approved these changes
Oct 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I think the current version has a bug that, if there are no run information, the row names of
colDataare unconditionally assigned to thesampleNames(the column names of the data).But the order of rows in colData might be different from
sampleNames.The correct behaviour should be to respect the
quantColsas they are provided by the user (matchingquantColstosampleNamesand reordering of colData rows happens later).The current behaviour leads to errors in the downstream analysis (e.g. msqrob2), since matching data columns to the experimental design information is incorrect.