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

Any way to map the probes sequences with the bins? #738

Open
Rafael-Silva-Oliveira opened this issue Oct 31, 2024 · 1 comment
Open

Any way to map the probes sequences with the bins? #738

Rafael-Silva-Oliveira opened this issue Oct 31, 2024 · 1 comment

Comments

@Rafael-Silva-Oliveira
Copy link

Hey, I'd like to map the probes sequence (GGTGACA...., etc) with the location of each bin on the 2 micron so I can match with TCR sequences found in the data. Is there a way to map the sequence of each bin together with the observations so this overlap could be plotted?

@LucaMarconato
Copy link
Member

Hi @Rafael-Silva-Oliveira, I think you can achieve this by using join_spatialelement_table() followed by a call of pd.merge() (using the instance_key column from the joined table and the index from the elements).

Or even simpler, if your elements is called "my_bins", you can also filter the table by region_key values equal to "my_bins", and then do a join with pd.merge() as above.

Probably also related to a draft PR for a new API that will make it easier to link tables and shapes: #627.

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