moscot icon indicating copy to clipboard operation
moscot copied to clipboard

Add examples for advanced data passing, e.g. how to pass `x_attr/y_attr`

Open MUCDK opened this issue 1 year ago • 2 comments

          Can we create an issue for this?

Originally posted by @michalk8 in https://github.com/theislab/moscot/pull/633#discussion_r1444077840

MUCDK avatar Jan 08 '24 09:01 MUCDK

also mention that set_xy/x/y, and set_graph_xy exist, and point to the relevant examples.

MUCDK avatar Jun 11 '24 06:06 MUCDK

main message: "show where we can fetch data from our anndata object"

  • fetch data from .X (e.g. if you wanna have raw counts)
  • fetch data from .layers (e.g. if you wanna have normalized counts)
  • fetch data from .obsm (e.g. if you wanna have PCA, but please do example with something else)

Use a FGW problem, and take different embeddings for all of them, e.g. with the MappingProblem:

  • x: normalized spatial (no callback here, but something pre-computed (but obv. link to callback))
  • y: PCA of all single-cel genes
  • xy: 50 most highly variables genes which are log1p normalized

MUCDK avatar Jun 11 '24 06:06 MUCDK