You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am executing limma on a proteomics dataset with 5 conditions and each condition having 3 samples. Limma is returning: "Partial NA coefficients for 209 probe(s) by executing:
Warning message:
In y.pred - digamma(df/2) :
longer object length is not a multiple of shorter object length
I looked into the spectraCounteBayes function and saw that the problem arises because y.pred (from loess model) is shorter. My question now is, isn't it possible to call loess(logVAR ~ x, span = 0.75, na.action = stats::na.exclude) with the na.action parameter, so that y.pred has the same length than the coefficients, gamma, etc. from my limma model?
Since I am calling limma with all comparisons together, I don't know how I would control that for each two-group comparison more than 2 non-missing values are present. Therefore I was trying to find another solution, and actually the na.action parameter appears to be to a good solution.
What do you think?
Best,
Lis
The text was updated successfully, but these errors were encountered:
Hi @lisiarend
Sorry for the late reply. I was off from work due to Chinese New Year.
You are right, this warning is probably due to missing values present. Your solution looks OK to me. For now you need to modify the R source code "DEqMS.R" to add this option. I will consider to add this new option in next update.
Another way to avoid this is to keep proteins that have minimum two values at all condition. However, you may loose some proteins, but it solves this issue. I will recommend this way if loss of proteins is minor.
Hello,
I am executing limma on a proteomics dataset with 5 conditions and each condition having 3 samples. Limma is returning: "Partial NA coefficients for 209 probe(s) by executing:
Now I call the DEqMS function spectraCountBayes(fit), but I get a warning (because of the NAs in the model ebfit):
And the warning is:
Warning message:
In y.pred - digamma(df/2) :
longer object length is not a multiple of shorter object length
I looked into the spectraCounteBayes function and saw that the problem arises because y.pred (from loess model) is shorter. My question now is, isn't it possible to call loess(logVAR ~ x, span = 0.75, na.action = stats::na.exclude) with the na.action parameter, so that y.pred has the same length than the coefficients, gamma, etc. from my limma model?
Since I am calling limma with all comparisons together, I don't know how I would control that for each two-group comparison more than 2 non-missing values are present. Therefore I was trying to find another solution, and actually the na.action parameter appears to be to a good solution.
What do you think?
Best,
Lis
The text was updated successfully, but these errors were encountered: