Description Usage Arguments Details Value See Also Examples
Given a clean OmicsPath
object (cleaned by the
IntersectOmicsPwyCollct
function), extract the first
principal components (PCs) from each pathway with features recorded in the
assay design matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
object |
An object of class |
numPCs |
The number of PCs to extract from each pathway. Defaults to 1. |
parallel |
Should the computation be completed in parallel? Defaults to
|
numCores |
If |
standardPCA |
Should the function return the AES-PCA PCs and loadings
( |
... |
Dots for additional internal arguments (currently unused). |
This function takes in a data frame with named columns and a pathway
list as an OmicsPathway
object which has had unrecorded -Omes
removed from the corresponding pathway collection by the
IntersectOmicsPwyCollct
function. This function will then
iterate over the list of pathways, extracting columns from the assay design
matrix which match the genes listed in that pathway as a sub-matrix (as a
data.frame
object). This function will then call the
aespca
on each data frame in the list of pathway-specific
design matrices, extracting the first numPCs
AES principal
components from each pathway data frame. These PC matrices are returned as
a named list.
NOTE: some genes will be included in more than one pathway, so these pathways are not mutually exclusive. Further note that there may be many genes in the assay design matrix that are not included in the pathways, so these will not be extracted to the list. It is then vitally important to use either a very broad and generic list of pathways or a pathways list that is compatible to the assay data supplied.
Two lists of matrices: PCs
and loadings
. Each element
of both lists will be named by its pathway. The elements of the PCs
list will be N \times numPCs
matrices containing the first
numPCs
principal components from each pathway. The elements of the
loadings
list will be numPCs
\times p projection
matrices containing the loadings corresponding to the first numPCs
principal components from each pathway. See "Details" for more information.
CreateOmicsPath
; aespca
IntersectOmicsPwyCollct
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # DO NOT CALL THIS FUNCTION DIRECTLY.
# Use AESPCA_pVals() instead
### Load the Example Data ###
data("colonSurv_df")
data("colon_pathwayCollection")
### Create an OmicsSurv Object ###
colon_Omics <- CreateOmics(
assayData_df = colonSurv_df[, -(2:3)],
pathwayCollection_ls = colon_pathwayCollection,
response = colonSurv_df[, 1:3],
respType = "surv"
)
### Extract Pathway PCs and Loadings ###
ExtractAESPCs(
object = colon_Omics,
parallel = TRUE,
numCores = 2
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.