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

MOFA error when data has been created using axis=-1 #122

Open
dawe opened this issue Aug 23, 2023 · 0 comments
Open

MOFA error when data has been created using axis=-1 #122

dawe opened this issue Aug 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dawe
Copy link

dawe commented Aug 23, 2023

Hello, I have a MuData object created exploiting axis=-1 as two modalities share a large portion of obs_names and var_names. The shape of the modalities are

[(4664, 55615), (4664, 55879)]

and mdata object is

(4664, 61764)

I have been trying mofa with mostly default parameters (except for a higher number of factors) and I have this error

ValueError: Value passed for key 'LFs' is of incorrect shape. Values of varm must match dimensions (1,) of parent. Value had shape (111494,) while it should have had (61764,).

which, I suspect, is possibly due to the fact modalities have been passed to MOFA using two independent sets of features and not their union. The LF shape (111494) is indeed the sum of modalities' shapes.

@dawe dawe added the bug Something isn't working label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant