AS-accessor {debCAM} | R Documentation

## Deconvoluted matrix accessors

### Description

Accessors to proportion matrix and subpopulation-specific expression matrix estimated by CAM.

### Usage

    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)

### Arguments

`x` | a `CAMObj` object or a `CAMASObj` object.
`...` | 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.

### Value

Estimated A matrix or S matrix.

### Examples

    #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]])

[Package debCAM version 1.6.0 Index]