ConvexGating is a Python tool to infer optimal gating strategies for flow cytometry and cyTOF data.
Project description
Features
Convex gating is a Python package to infer an optimal gating strategy from flow, cyTOF or Ab/CITE-seq data. Convex gating expects a labelled input (for instance, from clustering) and returns a gating panel to separate the selected group of events (e.g. a cluster) from all other events (see Fig. 1a). For each cluster, it reports the purity (precision), yield (recall) and the harmonic mean of both metrics (F1 score) for each gate hierarchy and the entire gating strategy. It relies on the scanpy/anndata for the data format and data pre-processing and further on PyTorch for stochastic gradient descent. Therefore, resulting gates may slightly vary.
The iterative procedure to find a suitable gate before applying the convex hull is illustrated in the following graphic.
Installation
You can install convexgating via pip from PyPI:
$ pip install convexgating
Usage
Please see the Command-line Reference for details.
Credits
This package was created with cookietemple using Cookiecutter based on Hypermodern_Python_Cookiecutter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for convexgating-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d328249ba1e3e86dac3e8cd28c08f1b83a8a5e2f5396211fc2fda27675f0cc |
|
MD5 | b6c6263b3528b03c807a22d258f596ce |
|
BLAKE2b-256 | 0ccabad9805f6397b6402b599218d529caffbf2df66ec33d6d5b48bcbad19893 |