Skip to content

Crop image on ImageContainer and data #337

@ccruizm

Description

@ccruizm

Good day,

Thanks for developing this great tool. I want to use tangram to deconvolve each spot, but I have problems cropping using the same coordinates on the ImageContainer object and the data with the ST data. I do not understand how to subset the ST data to match the image. When I use crop_coor within the scanpy workflow to display the plot (for instance sc.pl.spatial(adata, img_key="hires", color="clusters", crop_coord=[15000, 25000, 20000, 10000], alpha=0, size=1.3)) and try to use those on the ImageContainer, it does not seem to work. How can I subset the data and crop the image to match the same coordinates?

Thanks in advance!

Metadata

Metadata

Assignees

Labels

question ❓Further information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions