Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix median polish bug when proteins cannot be quantified #624

Merged
merged 4 commits into from
Apr 5, 2022

Conversation

rmillikin
Copy link
Member

@rmillikin rmillikin commented Mar 29, 2022

this PR fixes a bug in FlashLFQ's default protein quantification algorithm, "median polish".

Median polish sometimes introduces an artifact where protein quantities are mistakenly marked as identical in multiple files, if there is not enough information to quantify a protein in a particular sample. As a result, I check to see if protein quantities are exactly the same in multiple files and mark their quantities as NaN. This change introduces a bug where if multiple samples do in fact have exactly the same intensity, they are marked as NaN by mistake.

In real life, this is extremely rare, but this change did break several unit tests, because in those, several proteins did in fact have exactly the same intensity in multiple "samples". I commented those out and added an explainer comment on the first one.

@rmillikin rmillikin requested a review from trishorts April 3, 2022 23:53
Copy link
Contributor

@trishorts trishorts left a comment

Choose a reason for hiding this comment

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

we'll have to test this in MM.

@rmillikin rmillikin changed the title [WIP] fix median polish bug when proteins cannot be quantified fix median polish bug when proteins cannot be quantified Apr 5, 2022
@trishorts trishorts merged commit b6f3851 into smith-chem-wisc:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants