A genetic algorithm implementation for deconvolving bulk RNA-seq data into cell type proportions.
Given:
- M: Bulk expression matrix (genes x samples)
- H: Reference signature matrix (genes x celltypes)
Find X (celltypes x samples) such that M = HX, where each column of X represents cell type proportions for a sample (summing to 1).
- Python >= 3.11
- Poetry or pip
poetry install
poetry run python main.pypip install numpy pandas matplotlib scipy
python main.py