Skip to content

PCAtools

Bioc current

PCAtools: Everything Principal Components Analysis

v2.24.0 · software · GPL-3

Release Lineage

Entered 3.9 · May 3, 2019

Current · Requires R 4.6

1.0 In 15 of 49 releases 3.23

Description

Principal Component Analysis (PCA) is a very powerful technique that has wide applicability in data science, bioinformatics, and further afield. It was initially developed to analyse large volumes of data in order to tease out the differences/relationships between the logical entities being analysed. It extracts the fundamental structure of the data without the need to build any model to represent it. This 'summary' of the data is arrived at through a process of reduction that can transform the large number of variables into a lesser number that are uncorrelated (i.e. the 'principal components'), while at the same time being capable of easy interpretation on the original data. PCAtools provides functions for data exploration via PCA, and allows the user to generate publication-ready figures. PCA is performed via BiocSingular - users can also identify optimal number of principal components via different metrics, such as elbow method and Horn's parallel analysis, which has relevance for data reduction in single-cell RNA-seq (scRNA-seq) and high dimensional mass cytometry data.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

19 13 exported

Complexity

10.6 avg / 65 max

Call network

19 nodes / 10 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

5,911

Files

106

Compiled share

1.9%

Has compiled src

Yes

Language breakdown

R 2,753 (46.6%)C/C++/src 111 (1.9%)Tests 307 (5.2%)Docs 1,770 (29.9%)Vignettes 970 (16.4%)

API

Exported functions

13

Internal functions

3

Recent export changes

v3.9+9 pca, getComponents, getVars +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.11

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

6.3%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

1

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

15

First release

2019-05-02

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

Dep drift

11

LOC over versions

v3.9: 2,975 LOCv3.10: 3,626 LOCv3.11: 3,689 LOCv3.12: 5,648 LOCv3.13: 5,800 LOCv3.14: 5,820 LOCv3.15: 5,820 LOCv3.16: 5,820 LOCv3.17: 5,820 LOCv3.18: 5,820 LOCv3.19: 5,820 LOCv3.20: 5,820 LOCv3.21: 5,820 LOCv3.22: 5,825 LOCv3.23: 5,911 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

Documentation
READMEYes · 2,876 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
96%
Return-value docs
100%
References docs
0%

Topics

Depended on by (5)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("PCAtools")
Andrews, J., Blighe, K., Brown, A., Carey, V., Hooiveld, G., & Lun, A. (2026). PCAtools: PCAtools: Everything Principal Components Analysis (Version 2.24.0) [Computer software]. https://bioconductor.org/packages/PCAtools

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for PCAtools version 2.24.0 [Data set]. HJJB, LLC. Data release v2026-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy