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

pis shape was not right #313

Open
DruncBread opened this issue Feb 15, 2025 · 2 comments
Open

pis shape was not right #313

DruncBread opened this issue Feb 15, 2025 · 2 comments
Assignees

Comments

@DruncBread
Copy link

DruncBread commented Feb 15, 2025

Hi,

I encounterd a problem when checking the result of alignment

Image

This is adata_list (4 Anndata)
AnnData object with n_obs × n_vars = 747 × 24356
AnnData object with n_obs × n_vars = 1966 × 24356
AnnData object with n_obs × n_vars = 1916 × 24356
AnnData object with n_obs × n_vars = 1967 × 24356

I tried printing out the shape of pis and they seemed not right

Image

@YifanLu2000
Copy link
Contributor

Hi @DruncBread, thank you for raising this issue. In Spateo, we typically use SVI (Stochastic Variational Inference) for optimization. This means that parameter updates are computed using subsets of the data to reduce computational time.

For the final output, we provide an option to return the complete mapping matrix by setting return_mapping=True. This will generate an NxM mapping matrix but may take slightly more time. Since the mapping matrix is generally not commonly used in alignment tasks, the default setting is return_mapping=False. You can try setting return_mapping=True to obtain the mapping matrix.

Another possible approach is to set SVI=False, which will also return the NxM mapping matrix. However, this is not recommended as it will consume significantly more time and computational resources

@DruncBread
Copy link
Author

DruncBread commented Feb 18, 2025

Hi,

Thank you for your reply. I tried setting return_mapping=True and the problem was solved. Thank you very much for your guidance!

Best regards.

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

3 participants