Learn R Programming

randPedPCA (version 1.1.2)

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

222

Version

1.1.2

License

MIT + file LICENSE

Maintainer

Hannes Becher

Last Published

June 16th, 2025

Functions in randPedPCA (1.1.2)

pedLInv

L inverse matrix of the one-population example pedigree
dspc

Add downsampling index to rppca object
pedLInv2

L inverse matrix of the two-population example pedigree
hutchpp

Hutch++ trace estimation
getNumVectorsHutchinson

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

Convert generic sparse matrix to spam format
plot3DWithProj

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

Generate spam object from L inverse file
plot3D

3D plot using rgl
randTraceHutchinson

Trace estimation for sparse L inverse matrices
rppca

Fast pedigree PCA using sparse matrices and randomised linear algebra
randSVD

Singular value decomposition in sparse triangular matrix
randRangeFinder

Generate range matrix for SVD
pedMeta4

Metadata associated with the four-population example pedigree
pedMeta

Metadata associated with one-population example
pedLInv4

L inverse matrix of the four-population example pedigree
pedMeta2

Metadata associated with the two-population example pedigree