Generalized Contrastive Principal Component Analysis
Overview
Implements dense and sparse generalized contrastive principal component analysis (gcPCA) with S3 fit objects and methods for prediction, summaries, and plotting. The gcPCA is a hyperparameter-free method for comparing high-dimensional datasets collected under different experimental conditions to reveal low-dimensional patterns enriched in one condition compared to the other. Method details are described in de Oliveira, Garg, Hjerling-Leffler, Batista-Brito, and Sjulson (2025) doi:10.1371/journal.pcbi.1012747.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-04-02
Documentation
- Help pages
- 12 (1 internal)includes a package overview page
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 50%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 124
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/sjulsonlab/generalized_contrastive_pca on 2026-10-22.
Dependencies
Installing gcpca adds no packages beyond those that come with R.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.0.1Latest2026-04-01 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-01
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 13 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gcpca")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.