-
Notifications
You must be signed in to change notification settings - Fork 7
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
Contrast function mixes conditions in WaldTest output #71
Comments
Thank you for sharing the reproducible example and spotting the problem. Yes it is unfortunately a bug in prolfqua. Since you have 3 groups the model typically looks like this:
and the linear functions to compute the contasts, look like this:
However for
and the linear model looks like this:
The intercept, in the model for g99273, estimates not the glucose group but the Psfilm group. Hence, we should have used a linear function, for Psfoam - Psfilm , i.e. c(0, 1) only. An ad hoc fix would be:
By this we remove all the models where not all 3 model parameter could not be estimated. |
@Roman-Si In the figure below, you can see that the contrast for protein g99273 is now correct. Thank you for trying prolfqua and reporting problems. Please update prolfqua
|
Hello, using another dataset with a 3x3 design I noticed again unexpected behaviour. The example protein here is present in 2 conditions but the groupAverage is used in all comparisons (even in alk_3d - alk_2d). I attach sample code to reproduce and the initial peptide level data. I also noticed that TMP summarization creates artifacts where the intensities of some proteins are identical in all samples. This happens for proteins with one-sample peptides (like g004095, g012327 and others) since the row-median subtraction sets all rows to 0. This issue is also mentioned here when using median-polish for microarrays https://doi.org/10.1186/1471-2105-11-553. |
Thanks a lot for reporting the issue.
The other problem is that we have You can use a different method for aggregation ( Lastly, I suggest you apply the moderation to the merged contrasts:
|
First of all, thank you for your very valuable package and thorough documentation
I encountered an unexpected behavior in the Contrasts function, specifically involving incorrect condition assignments during Wald test executions. In the sample data provided a protein is present in the conditions "Psfilm" and Psfoam" and absent in the condition "glucose" but the output of the Wald test shows this protein tested for the contrast "Psfoam - glucose".
To Reproduce
I attach a sample file with 7 proteins, an annotation csv and an R script to reproduce.
Expected behavior
The WaldTest output should write that the contrast is "Psfoam - Psfilm" for protein "g99273"
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
prolfqua-inputAnnotation.csv
protein_intensities.csv
prolfqua_contrast_testCode.txt
The text was updated successfully, but these errors were encountered: