Learn R Programming

randPedPCA (version 1.1.3)

Fast PCA for Large Pedigrees

Description

Carry out principal component analysis (PCA) of very large pedigrees such as found in breeding populations! This package exploits sparse matrices and randomised linear algebra to deliver a gazillion-times speed-up compared to naive singular value decoposition (SVD) (and eigen decomposition).

Copy Link

Version

Install

install.packages('randPedPCA')

Monthly Downloads

248

Version

1.1.3

License

GPL (>= 2)

Maintainer

Hannes Becher

Last Published

July 22nd, 2025

Functions in randPedPCA (1.1.3)

hutchpp

Hutch++ trace estimation
pedLInv

L inverse matrix of the one-population example pedigree
dspc

Add downsampling index to rppca object
getNumVectorsHutchinson

Compute the number of vectors to use for Hutchinson trace estimation
sparse2spam

Convert generic sparse matrix to spam format
randRangeFinder

Generate range matrix for SVD
importLinv

Generate spam object from L inverse file
randSVD

Singular value decomposition in sparse triangular matrix
pedLInv4

L inverse matrix of the four-population example pedigree
pedMeta2

Metadata associated with the two-population example pedigree
pedLInv2

L inverse matrix of the two-population example pedigree
pedMeta

Metadata associated with one-population example
plot3D

3D plot using rgl
plot3DWithProj

3D plot of PC scores with projections on coordinate planes
pedMeta4

Metadata associated with the four-population example pedigree
rppca

Fast pedigree PCA using sparse matrices and randomised linear algebra
randTraceHutchinson

Trace estimation for sparse L inverse matrices