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

filtering the object based on coordinates #2

Open
stemangiola opened this issue Jun 7, 2023 · 0 comments
Open

filtering the object based on coordinates #2

stemangiola opened this issue Jun 7, 2023 · 0 comments

Comments

@stemangiola
Copy link
Collaborator

stemangiola commented Jun 7, 2023

There are two ways we can implement and document of how filtering based on spatial coordinates

  • object |> filter(rectangle(x, y, x_min, x_max, y_min, y_max)), for which you can build a wrapper on top object |> filter_rectangle(x_min, x_max, y_min, y_max)
  • object |> filter(circle(x, y, x_center, y_center, radius)), for which you can build a wrapper on top object |> filter_circle(x_center, y_center, radius)

the function rectangle would be equivalent of x |> magrittr::between(x_min, x_max) & y |> magrittr::between(y_min, y_max)

  • with tidygave

see https://tidytranscriptomics-workshops.github.io/RMedicine2023_tidytranscriptomics/articles/main.html#filtering-based-on-gate

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

1 participant