Open borauyar opened 1 year ago
Hey @borauyar,
It would be great to see how MOFA performs on unseen data! And I don't think I saw any public tutorials on that myself.
As in the MOFA model $Y \sim Z W^{T}$, multiplying the new data $Y^{'}$ by weights $W$ doesn't give you $Z^{'}$. One could compute a pseudo-inverse matrix so that $Z^{'} \sim Y^{'} (W^{T})^{-1}$.
Maybe this Python notebook can give a better idea how it could work.
Hi @rargelaguet ,
I am using MOFA2 on bulk omics data integration. I would like to test how well it generalizes on unseen datasets. I wanted to make sure if I am doing it properly and get any comments from you if there are other things that can be done or accounted for while doing this.
Basically, I want to build a MOFA model on some training data and then project the test (unseen) data onto the latent space learned from the training data. Sorry if this is explained in any of the tutorials, but I couldn't find an explanation of how to do this with MOFA.
What I currently do is this:
trainData
andtestData
are lists of omics views (with matching features and omics types for different sets of samples)Is this the correct way of doing this or do I need to account for something else when projecting the test data with feature weights?
Thanks! Bora