# Lasso function for Squidpy

**URL:** <https://discourse.scverse.org/t/lasso-function-for-squidpy/1186>\
**Category:** squidpy\
**Created:** [March 3, 2023, 9:11pm UTC](https://discourse.scverse.org/t/lasso-function-for-squidpy/1186 "2023-03-03T21:11:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sni](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sni](https://discourse.scverse.org/u/Sni)\
**Post date:** [March 3, 2023, 9:11pm UTC](https://discourse.scverse.org/t/lasso-function-for-squidpy/1186/1 "2023-03-03T21:11:21Z")

</div>

Hi All,

Is there anyway to use Lasso widget from matplotlib to select certain cells of interest from the FOV? I would like to isolate cell IDs in the given region. What would be the best way to identify cell ids from the field of view?

Thanks!

---

<div class="post-metadata">

**Author:** ![Sni](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sni](https://discourse.scverse.org/u/Sni)\
**Post date:** [March 9, 2023, 3:42am UTC](https://discourse.scverse.org/t/lasso-function-for-squidpy/1186/3 "2023-03-09T03:42:28Z")

</div>

I could solve issues in my previous post by installing squidpy from the main in a fresh conda env.

however in Napari now cell coordinates don’t match with the image, it seems like X and Y coordinates might be transposed incorrectly.
