pcainfo: pcainfo

View source: R/pcainfo.R

pcainfoR Documentation

pcainfo

Description

Perform Principal Component Analysis (PCA) on log-expression data.

Usage

pcainfo(logcounts, center, scale)

Arguments

logcounts

Numeric matrix. Log-CPM values (genes × samples), e.g., from edgeR::cpm..

center

Logical. If TRUE, center variables by subtracting the mean (default: TRUE).

scale

Logical. If TRUE, scale variables to unit variance (default: FALSE).

Details

This function transposes a log-count matrix (samples as columns, genes as rows) and runs PCA using "stats::prcomp() ", with options to center and scale variables.

Value

An object of class "prcomp " containing the PCA results, including loadings, scores, and explained variance.


inDAGO documentation built on Aug. 8, 2025, 7:47 p.m.

Related to pcainfo in inDAGO...