A Python package for fast sampling with applications on flow cytometry and scRNA-seq data, focusing on retaining rare cell populations.
Project description
sParseSampler
A python package for fast sampling with applications on flow cytometry and scRNA-seq data focusing on retaining rare cell populations.
Sparse Sampler Visualization
This project demonstrates a step-by-step sparse sampling process using toy data and PCA binning.
Animated Sampling Process
The following animation shows how points are selected from a 2D toy dataset using PCA binning. Points are selected category by category (cells with 1 point, 2 points, etc.), and the process is visualized step by step:
- All points start as skyblue.
- When a category is considered, the cells are highlighted in yellow and the points in those cells are shown in gray for visibility.
- Selected points turn red and remain red in all subsequent frames.
- The process continues until the target number of points is reached.
Usage
To generate the animation, run:
python -m sparsesampler.visualization
The animation will be saved as sampling_process.gif in the project directory.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sparsesampler-1.0.0.tar.gz.
File metadata
- Download URL: sparsesampler-1.0.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecf91874694f798b273bac4cf78df42eb5e566b063572fdb9899fb6168ebae32
|
|
| MD5 |
485bb744d2120e7bf9991ce368c67f67
|
|
| BLAKE2b-256 |
d5dbe25029beedd50d0dcf6f41c9c25a8013e9ac7d69886750928b3292b4e88b
|
File details
Details for the file sparsesampler-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sparsesampler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a405e881c50323206fddc98413f4d1be8ae86027a3541590c7658912c112f09e
|
|
| MD5 |
1005694de1ebc50c71fb469872dccb3c
|
|
| BLAKE2b-256 |
4c0e34a86857672ec83b6e58df16dbd8fa257ec1f1db214383685ea332472fe5
|