Stores a PCA fit (from stats::prcomp()) computed over methylation windows.
mesaPCA(prcomp, windows)
# S4 method for class 'mesaPCA'
show(object)prcomp
PCA fit from stats::prcomp(). Default: none.
character()
Window IDs used. Default: none.
mesaPCA
A mesaPCA object containing the PCA fit and window IDs.
A valid object has non-empty windows with no NA or duplicates,
one per row of prcomp$rotation, and a prcomp$x matrix whose row
names are the sample IDs.
prcompprcomp
A PCA fit returned by stats::prcomp().
windowscharacter()
Window IDs used in the PCA.
getPrcomp(): the prcomp fit, e.g. for sdev or rotation;
getCoordinates(): the sample coordinates (prcomp$x), as a
data.frame;
getSampleNames(): the sample IDs (row names of prcomp$x);
getWindowNames(): the window IDs (windows).