RepositoryC++
FertigLab

FertigLab/CoGAPS

Bayesian MCMC matrix factorization algorithm

74stars
16forks
30issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: non-negative-matrix-factorization

#1 Repository of the month

1
TINIX TRENDING·Topic: human-cell-atlas

#1 Repository of the week

1
TINIX TRENDING·Topic: non-negative-matrix-factorization

#1 Repository of the week

R build status

CoGAPS

Bioc downloads

Coordinated Gene Activity in Pattern Sets (CoGAPS) implements a Bayesian MCMC matrix factorization algorithm, GAPS, and links it to gene set statistic methods to infer biological process activity. It can be used to perform sparse matrix factorization on any data, and when this data represents biomolecules, to do gene set analysis.

Installing CoGAPS

Via Bioconductor:

install.packages("BiocManager")
BiocManager::install("FertigLab/CoGAPS")

The most up-to-date version of CoGAPS can be installed directly from the FertigLab Github Repository:

devtools::install_github("FertigLab/CoGAPS")

Using CoGAPS

Follow the vignette here and available as static html here

Run as nextflow pipeline

The example below will attempt running CoGAPS with number of patterns 3 and 4 on every .rds and .h5ad file in the input folder (tests/nextflow).

nextflow run main.nf --input tests/nextflow --outdir out -c nextflow.config -profile docker --max_memory 10GB --npatterns 3,4

Supported CLI params and their defaults are:

npatterns = "5"
niterations = 100
seed = 42
sparse = 0
distributed = "null"
nsets = 1
max_memory = '128.GB'
max_cpus = 8
max_time = '72.h'
n_top_genes = 5000
nthreads = 1
asynchronous_updates = 0
container = 'ghcr.io/fertiglab/cogaps:master'

The --container parameter controls which CoGAPS Docker image is used for the COGAPS and COGAPS_PREPROCESS processes. Override it to pin a specific version, e.g. --container ghcr.io/fertiglab/cogaps:sha-abc1234.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
Repository
Developer-Y/cs-video-courses

List of Computer Science courses with video lectures.

85.1k
Nov 28, 2026
RepositoryR
satijalab/seurat

R toolkit for single cell genomics

2.8k
Nov 30, 2026
RepositoryPython
scverse/scvi-tools

Deep probabilistic analysis of single-cell and spatial omics data

1.7k
Nov 26, 2026
RepositoryPython
theislab/cpa

The Compositional Perturbation Autoencoder (CPA) is a deep generative framework to learn effects of perturbations at the single-cell level. CPA performs OOD predictions of unseen combinations of drugs, learns interpretable embeddings, estimates dose-response curves, and provides uncertainty estimates.

160
Aug 14, 2024
RepositoryR
drisso/SingleCellExperiment

Clone of the Bioconductor repository for the SingleCellExperiment package, see https://bioconductor.org/packages/devel/bioc/html/SingleCellExperiment.html for the official development version.

77
Jul 16, 2026
RepositoryR
MarioniLab/DropletUtils

Clone of the Bioconductor repository for the DropletUtils package.

68
Sep 24, 2026
RepositoryC++
tesseract-ocr/tesseract

Tesseract Open Source OCR Engine (main repository)

77.7k
Nov 26, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

109.4k
Nov 26, 2026