-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to use the aggregateFeatures and msqrob functions #38
Comments
|
Thank you very much for that very quick help! thank you for helping, really appreciated Regards, |
|
If your formula is formula = ~ group*time + patient You are actually fitting formula = ~ group + time + group:time + patient You don't have enough samples to fit this model I don't think. Are patients nested within groups? You may want one of the following but I don't know enough about your question, model or data to be more helpful formula = ~ group + time + group:time + (group|patient) |
Thank you very much for you answers, it s really helpful. I see the issue now. This is how I created my colData colData(pe)$patient <- rep(c("P1","P1","P2","P2","P4","P4","P7","P7","P8","P8","P9","P9","P10","P10","P11","P11","P3","P3","P5","P5","P6","P6")) %>% as.factor colData(pe)$time <- rep(c("T0","T2","T0","T2","T0","T2","T0","T2","T0","T2","T0","T2","T0","T2","T0","T2","T0","T2","T0","T2","T0","T2"))%>% as.factor colData(pe)$group <- rep(c("Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp1","Gp2","Gp2","Gp2","Gp2","Gp2","Gp2","Gp2","Gp2","Gp2","Gp2"))%>% as.factor Thank you very much, Regards, |
Hello, Thanks in advance, |
@StijnVandenbulcke Do you have time to have a look at this? |
That formula is used for mixed models. In order to use this with msqrob2 you will have to set If you plan to use the ridge regression, you should use this branch as this includes an important fix. |
Dear statOmics Team,
Thank you for the great msqrob2 package. Msqrob2 is built for proteomics experiments but seems to be a powerful tool to analyze my metabolomic data. I am currently using your code on my metabolomic data and having some questions to adapt it as best as possible.
I am starting directly with a matrix with multiple features raw intensities (in rows) for my different sample (in columns). I log-transformed and normalized the data. I provided informations about my experimental conditions with colData.
My question is about the Summarization to protein level step. Unlike proteomic, I do not have a assay about protein expression value and would like to continue working with the same pe with my features intensities to build the model fitting my design. How should I use this aggregateFeatures function in order to continue the analysis?
Does the model built at this step is needed for the rest of the process? Or Could I skip that step and start the data analysis with the msqrob function?
In one of my simple experiment, where I use a simple model for one condition (formula = ~condition) it seems to work pretty well.
But on a more complex design the function msqrob (formula = ~ group*time + patient) give me an error message “Error in if (m == 0) { : missing value where TRUE/FALSE needed). I do not find any missing value on the matrix.
I think it is related to the way my variables conditions are incoded on colData, but I can not find the solution of that. Group has 2 levels, Time has 2 levels and patient have 11 levels. The patients in group1 are different than the one in group2.
I thank you in advance; any help or explanation will be appreciated. I can send more information if needed.
I will be very grateful if you could help me with this.
Regards,
The text was updated successfully, but these errors were encountered: