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

Clarification Needed: 'spatial_key' Parameter in 'MappingProblem' Function #7

Open
AhaYW opened this issue Dec 18, 2023 · 1 comment

Comments

@AhaYW
Copy link

AhaYW commented Dec 18, 2023

In the code snippet from "notebooks/space/mapping/moscot_mapping_citeseq2.ipynb," the MappingProblem function is used with the spatial_key parameter specified as follows:

MappingProblem(adata_sc, adata_spatial).prepare(
# other parameters...
spatial_key={"attr": "obsm", "key": "X_pca_scaled"},
# other parameters...
)

However, in the function documentation, it mentions "spatial_key (Union[str, Mapping[str, Any]]) as the key in obsm where the spatial coordinates are stored." I would like clarification on the role of spatial_key: does it refer to the key for storing spatial coordinates or the key for storing gene expression information?
This clarification is crucial for accurately configuring the spatial_key parameter in different scenarios. Thank you!

@MUCDK
Copy link
Collaborator

MUCDK commented Aug 20, 2024

Hi @AhaYW ,

Sorry for the late response. In general, please feel free to open issues on the main repo: https://github.com/theislab/moscot

spatial_key refers to the spatial coordinates . joint_attr wouuld be for sequencing data, e.g. gene expression.

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

2 participants