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

Parallel computation #694

Open
tkcaccia opened this issue Aug 29, 2024 · 1 comment
Open

Parallel computation #694

tkcaccia opened this issue Aug 29, 2024 · 1 comment
Labels
question ❓ Further information is requested

Comments

@tkcaccia
Copy link

I retrieving the Visium spot from a mask.

I found the procedure a little bit slow.
Is it possible to parallelize the following code?

# Determine which spots are within the mask
points_within_mask = points_df.apply(lambda row: mask_geometry.contains(Point(row['x'], row['y'])), axis=1)
spots_in_mask = points_df[points_within_mask]
@giovp giovp added the question ❓ Further information is requested label Sep 6, 2024
@LucaMarconato
Copy link
Member

Hi @tkcaccia, can you try out the polygon_query() API and tell us how it compares in terms of speed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ❓ Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants