-
Notifications
You must be signed in to change notification settings - Fork 31
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
when runnning st.align.morpho_align_ref : NameError: name 'BA_align' is not defined #271
Comments
@YifanLu2000 can you please address @forrwill 's question? |
Thank you very much for your suggestion. and. I will use it again. |
Hi Yifan, I used st.align.morpho_align and got a mapping matrix (pis), but the dimension is (1,1742, 19939). Originally, I have 17425 spots for the reference slice and 19939 spots for the second slice. I'm confused about what does mapping matrix stand for since it doesn't look like what I have done using PASTE. How could the spot number has such a huge reduction? Thanks. |
Hi @yuling999666, 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 Another possible approach is to set |
Thanks for clarification. It really helps. I appreciate it. |
Hi @YifanLu2000 , It seems that your method (Stochastic Variational Inference) including randomness. However, I can generate the same result for .obsm["align_spatial"] without setting seed... Did I do something wrong or you have done other process. Thanks. |
Hi @yuling999666, are the results exactly the same? We didn’t apply any other processing, so this seems strange. Can you give more information, for example the cell number |
Hi @YifanLu2000 Previously, I just checked the first few lines of my saved results, but later I recognized it is the reference and for the next slice, the coordinates changed. The reference will not change after computed by pipeline. Sorry for the misunderstanding. I also set seed using np.random.seed(2024) before applying st.align.morph_align() and the result stayed the same so that I can replicate the results. Thanks for your response. |
The other day, I upgraded the latest version of github software,
when running 'st.align.morpho_align_ref'. for "Alignment of 3D models of two stages",
I met the error: NameError. Traceback (most recent call last) NameError: name 'BA_align' is not defined
, I don't know what the problem is, Please help me with this. thank you
The text was updated successfully, but these errors were encountered: