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

Get noise terms with MOFA2 R package #145

Open
BangzhuoTongUU opened this issue Jan 22, 2024 · 0 comments
Open

Get noise terms with MOFA2 R package #145

BangzhuoTongUU opened this issue Jan 22, 2024 · 0 comments

Comments

@BangzhuoTongUU
Copy link

Hello, thanks for having this super cool tool!

I have a stupid question regarding the relationship among Matrix, W and Z matrix when I use MOFA2 R package on my data:
Say I have three input matrices, namely M1, M2, M3, and I run MOFA2 with factor number = 26. I wanted to see if the dot product of M1 and W matrices equals to Z (if I did not understand it wrongly from the paper).

So I retrieved my the Z, W1 (W for M1) matrices from the model with model@expectations$Z$group1 and get_weights(model, views = "M1", factors = "all")$M1 . The dimension of Z and W1 are 270 * 26 and 211 * 26 respectively, and the dimension of my M1 is 270 * 211 . I expect the dot product from Z and t(W1) to be identical with M1. But it turned out to be not identical.

And I am aware that there are noise terms for each of my input matrix as well, was it because of the noise term that made my results not identical? Could I get the noise term with any command from MOFA2 R package? Thanks in advance!

Best,

Ben

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

No branches or pull requests

1 participant