Registration Open for Bioc2024 July 24-26


RETROFIT: Reference-free deconvolution of cell mixtures in spatial transcriptomics

Bioconductor version: Release (3.19)

RETROFIT is a Bayesian non-negative matrix factorization framework to decompose cell type mixtures in ST data without using external single-cell expression references. RETROFIT outperforms existing reference-based methods in estimating cell type proportions and reconstructing gene expressions in simulations with varying spot size and sample heterogeneity, irrespective of the quality or availability of the single-cell reference. RETROFIT recapitulates known cell-type localization patterns in a Slide-seq dataset of mouse cerebellum without using any single-cell data.

Author: Adam Park [aut, cre], Roopali Singh [aut] , Xiang Zhu [aut] , Qunhua Li [aut]

Maintainer: Adam Park <akp6031 at>

Citation (from within R, enter citation("retrofit")):


To install this package, start R (version "4.4") and enter:

if (!require("BiocManager", quietly = TRUE))


For older versions of R, please refer to the appropriate Bioconductor release.


To view documentation for the version of this package installed in your system, start R and enter:

Retrofit Colon Vignette HTML R Script
Retrofit Simulation Vignette HTML R Script
Reference Manual PDF


biocViews Bayesian, DimensionReduction, FeatureExtraction, GeneExpression, RNASeq, SingleCell, Software, Spatial, Transcriptomics, Visualization
Version 1.4.0
In Bioconductor since BioC 3.17 (R-4.3) (1 year)
License GPL-3
Depends R (>= 4.2), Rcpp
System Requirements
Bug Reports
See More
Suggests BiocStyle, knitr, rmarkdown, testthat, DescTools, ggplot2, corrplot, cowplot, grid, colorspace, png, reshape2, pals, RCurl
Linking To Rcpp
Depends On Me
Imports Me
Suggests Me
Links To Me
Build Report Build Report

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package retrofit_1.4.0.tar.gz
Windows Binary
macOS Binary (x86_64) retrofit_1.4.0.tgz
macOS Binary (arm64) retrofit_1.4.0.tgz
Source Repository git clone
Source Repository (Developer Access) git clone
Bioc Package Browser
Package Short Url
Package Downloads Report Download Stats