FertigLab/CoGAPS
Bayesian MCMC matrix factorization algorithm
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the week
#1 Repository of the week
CoGAPS
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.
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.
Clone of the Bioconductor repository for the SingleCellExperiment package, see https://bioconductor.org/packages/devel/bioc/html/SingleCellExperiment.html for the official development version.
Clone of the Bioconductor repository for the DropletUtils package.
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
