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

Neighbourhood graph or embedding? #106

Closed
YY-SONG0718 opened this issue Feb 20, 2023 · 2 comments
Closed

Neighbourhood graph or embedding? #106

YY-SONG0718 opened this issue Feb 20, 2023 · 2 comments

Comments

@YY-SONG0718
Copy link

Dear Alec,

I have a question regarding the outputs of SAMap. Is the final output of SAMap the neighbourhood information stored in sm.samap.adata.uns['neighbors'] and sm.samap.adata.obsp['connectivities'], or the embedding in sm.samap.adata.obsm['wPCA']? Can I use the weighted PCA embedding to calculate neighbourhoods of different sizes?

Thank you so much!

Kind regards,
Yuyao

@wubaosheng
Copy link

I think the wPCA is the weigh of different species, so it is right to use the wPCA for embeding.

@atarashansky
Copy link
Owner

Hi @wubaosheng

Please do not use wPCA as an embedding. wPCA is just an intermediate joint embedding used for calculating the stitched neighborhood graph. The correct output is sm.samap.adata.obsp['connectivities'].

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