runPCA {karyotapR} | R Documentation |
Cluster assay data by Principal Components Analysis
Description
Analyzes assay data by Principal Components Analysis (PCA) and saves results
to reducedDims
slot of TapestriObject
.
Usage
runPCA(
TapestriExperiment,
alt.exp = "alleleFrequency",
assay = NULL,
sd.min.threshold = NULL,
center = TRUE,
scale. = TRUE
)
Arguments
TapestriExperiment |
|
alt.exp |
Character, |
assay |
Character, |
sd.min.threshold |
Numeric, minimum threshold for allelefreq.sd. Increase to run PCA on fewer, more variable dimensions. Set to |
center |
Logical, if |
scale. |
Logical,if |
Value
TapestriExperiment
with PCA results saved to reducedDims
slot of altExp
, and proportion of variance explained by each PC saved to metadata
slot of altExp.
See Also
stats::prcomp()
for PCA method details.
Examples
tap.object <- newTapestriExperimentExample() # example TapestriExperiment
tap.object <- runPCA(tap.object, alt.exp = "alleleFrequency")