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

Basic gating functionality #48

Open
mbuttner opened this issue Sep 6, 2023 · 2 comments
Open

Basic gating functionality #48

mbuttner opened this issue Sep 6, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mbuttner
Copy link
Collaborator

mbuttner commented Sep 6, 2023

The preprocessing of flow cytometry data essentially builds on thresholding for FSC, SSC, live-dead staining and the Singlet gate. A simple implementation of gating (e.g. rectangles and lines) would facilitate the basic pre-processing steps. More advances such as a Python implementation of FlowLearn would be amazing, too.

@mbuttner mbuttner added enhancement New feature or request help wanted Extra attention is needed labels Sep 6, 2023
@burtonrj
Copy link
Collaborator

burtonrj commented Sep 7, 2023

I've used ipywidgets for an unpublished manual gating solution inspired by @omerwe-eleventx expansion of CytoPy. I found this tutorial very helpful as well: https://kapernikov.com/ipywidgets-with-matplotlib/

I have an unpublished branch of CytoPy which contains a FlowLearn implementation: https://github.com/burtonrj/CytoPy/blob/v3.0/cytopy/gating/threshold.py - the DDTW class implements dynamic time warping as described in the FlowLearn paper but needs to be uncoupled from CytoPy's (admittedly chaotic) structure.

I'll get to work on this after I make PRs for clustering RE #49 #46

@burtonrj burtonrj self-assigned this Oct 5, 2023
@quentinblampey
Copy link
Contributor

quentinblampey commented May 24, 2024

Hello,
Maybe this can help : scyan.tools.PolygonGatingScatter
This is pretty basic, but it can be improved into a nice widget (right now, it opens a new window with the interactive plot)

Alternatively, there is jupyter scatter that is super nice. We could use it for lasso selections on scatter plots and UMAPs.
What do you think @mbuttner, @grst?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants