Skip to content

How to plot the aligned image on top of the tissue image? #40

@quiquevb23

Description

@quiquevb23

After I run a pairwise alignment on 2 or more slices and then run pst.stack_slices_pairwise, a new adata object is generated with the aligned coordinate matrix, but this adata object does not contain the aligned "hires" and "lowres" images, as far as I know.

Does PASTE deals with this somehow or should I supply as img_key a tissue image of one of the slices that were aligned? If this is the case, should I edit it with the output of pst.stack_slices_pairwise (such as angles and rotation?)

This is the function I want to run and the error I get
sc.pl.spatial(adata,
img_key="hires",
color=["domain"],
show=False)

ValueError: When .uns['spatial'][library_id] does not exist, spot_size must be provided directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions