AS-accessor {CAMTHC} | R Documentation |
Accessors to proportion matrix and subpopulation-specific expression matrix estimated by CAM.
Amat(x, ...) Smat(x, ...) ## S4 method for signature 'CAMObj' Amat(x, k, usingPCA = TRUE) ## S4 method for signature 'CAMASObj' Amat(x, usingPCA = TRUE) ## S4 method for signature 'CAMObj' Smat(x, k, usingPCA = TRUE) ## S4 method for signature 'CAMASObj' Smat(x, usingPCA = TRUE)
x |
|
... |
additional argument list. |
k |
subpopulation number |
usingPCA |
If TRUE, A matrix is estimated by transforming dimension-reduced A matrix back to original space. Otherwise, A matrix is directly estimated in original data space. The default is TRUE. |
Estimated A matrix or S matrix.
#obtain data data(ratMix3) data <- ratMix3$X rCAM <- CAM(data, K = 3, dim.rdc = 3, thres.low = 0.30, thres.high = 0.95) Aest <- Amat(rCAM, 3) Sest <- Smat(rCAM, 3) Aest <- Amat(slot(rCAM, "ASestResult")[[1]]) Sest <- Smat(slot(rCAM, "ASestResult")[[1]])