Blogs

illustrations illustrations illustrations illustrations illustrations illustrations illustrations

Computational Biology Side Projects: Cell Counting and Single-Cell RNA-seq

Published on Nov 19, 2026 by Samer Kharboush on Bioinformatics ComputerVision

Computational Biology Side Projects: Cell Counting and Single-Cell RNA-seq

My pharmaceutical and biomedical background meets my machine learning in two open-source computational biology side projects: an AI microscopy cell-counting system and a single-cell RNA-seq analysis platform.

Overview

These are side projects where I apply computational biology to real laboratory problems. The first is an advanced AI cell-counting system for microscopy images, built as a production-ready pipeline that combines classical image processing with deep learning. The second is a quantitative single-cell RNA-seq (scRNA-seq) analysis platform that uses the QLattice Feyn model to investigate patterns in cancer-treatment data. Both are available as open source, and both reflect the same goal: turn raw biological data into measurements a researcher can trust and act on.

Goals

For cell counting, the goal is accurate, reproducible cell counts from microscopy images without manual counting, which is slow and inconsistent across operators. The system has to handle different cell types and imaging conditions, run in batch, and be deployable as a service rather than a notebook.

For single-cell RNA-seq, the goal is to improve quantitative scRNA analysis for cancer treatment by discovering new insights and hidden patterns in high-dimensional transcriptomics data — identifying outliers, detecting anomalies, and uncovering connections between components of the data that are not visible through standard analysis.

My role

I designed and built both projects end to end: data preparation, model architecture, training, evaluation, packaging and serving. I own the engineering choices and the MLOps layer that makes the results reproducible.

Architecture

The cell-counting system uses a hybrid pipeline. Classical pre-segmentation with Otsu thresholding and watershed proposes candidate cell regions; a deep model then refines them. The deep stage is built on attention-based c-ResUnet and Swin-UNet (Transformer) architectures, with Cellpose integration available for state-of-the-art accuracy. Post-processing applies connected components and area filtering. A unified data loader supports LIVECell, COCO and custom datasets with Albumentations augmentation, and inference is served through a FastAPI service with ONNX Runtime for fast CPU inference, batch processing and health monitoring.

The single-cell platform is organised in three parts: data preprocessing (cleaning and normalising the annotated matrices), model training (scikit-learn classification and regression models improved with the QLattice Feyn model), and results analysis (metrics and visualisations). Annotated data matrices are handled with anndata, which sits between pandas and xarray and offers sparse-data support and a PyTorch interface. Pandas Profiling provides automated exploratory analysis of the high-dimensional data.

Tech stack

Python, PyTorch, c-ResUnet, Swin-UNet, Cellpose, Albumentations, anndata, scikit-learn, QLattice Feyn, Pandas Profiling, MLflow for experiment tracking, DVC for data versioning, FastAPI for containerised serving, ONNX Runtime for inference, and Docker for deployment.

Results & achievements

No benchmark metrics are published for these projects, so the results are the delivered capabilities. The cell-counting system is production-ready: multi-model support (c-ResUnet, Swin-UNet, Cellpose), a hybrid classical-plus-deep pipeline, unified data loading, batch processing, ONNX-optimised inference, containerised FastAPI serving, health checks and monitoring, with unit tests and a configuration file for architecture, training and inference parameters. The single-cell platform delivers classification and regression over scRNA-seq data, outlier and anomaly detection, and automated exploratory reporting, with the code split into preprocessing, training and results notebooks so each stage can be run and inspected step by step.

Single-cell RNA-seq project: Single-Cell-RNA-seq-Feyn-Project. The AI cell-counting system is a private repository, available on request.

Similar Stories