runPCA | R Documentation |
Analyzes assay data by Principal Components Analysis (PCA) and saves results
to reducedDims
slot of TapestriObject
.
runPCA(
TapestriExperiment,
alt.exp = "alleleFrequency",
assay = NULL,
sd.min.threshold = NULL,
center = TRUE,
scale. = TRUE
)
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 |
TapestriExperiment
with PCA results saved to reducedDims
slot of altExp
, and proportion of variance explained by each PC saved to metadata
slot of altExp.
stats::prcomp()
for PCA method details.
tap.object <- newTapestriExperimentExample() # example TapestriExperiment
tap.object <- runPCA(tap.object, alt.exp = "alleleFrequency")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.