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

Get elements in a coordinate sytem #679

Open
wangjiawen2013 opened this issue Aug 15, 2024 · 1 comment
Open

Get elements in a coordinate sytem #679

wangjiawen2013 opened this issue Aug 15, 2024 · 1 comment
Labels
API About the API/ UX method: transforms 🔃 question ❓ Further information is requested

Comments

@wangjiawen2013
Copy link

Hi,
There maybe several coordinate systems in a spatialdata object, each has some elements. For example:

global: morphology_focus (Images), cell_labels (Labels), nucleus_labels (Labels), transcripts (Points), cell_boundaries (Shapes), cell_circles (Shapes), nucleus_boundaries (Shapes)

my_other_space: my_cell_lables, my_transcipts2, my_circles2

we can only get the names of coordinate systems by sdata.coordinate_systems, is there a way to get elements names of each coordinate_systems ?

@LucaMarconato
Copy link
Member

Hi, we don't have such a function, but it's very quick to write that code. For instance you can find it here:

def filter_by_coordinate_system(
or here:
descr += "\nwith coordinate systems:\n"
.

We could turn this into one API at some point, but I'd suggest to use one of the implementation above for now.

@giovp giovp added API About the API/ UX method: transforms 🔃 question ❓ Further information is requested labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API About the API/ UX method: transforms 🔃 question ❓ Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants