cell_counts {methylCC} | R Documentation

## Generic function that returns the cell composition estimates

### Description

Given a estimatecc object, this function returns the cell composition estimates

Accessors for the 'cell_counts' slot of a estimatecc object.

### Usage

    cell_counts(object)

    ## S4 method for signature 'estimatecc'
    cell_counts(object)

### Arguments

`object` | an object of class `estimatecc`.

### Value

Returns the cell composition estimates

### Examples

    # This is a reduced version of the FlowSorted.Blood.450k
    # dataset available by using BiocManager::install("FlowSorted.Blood.450k),
    # but for purposes of the example, we use the smaller version
    # and we set \code{demo=TRUE}. For any case outside of this example for
    # the package, you should set \code{demo=FALSE} (the default).

    dir <- system.file("data", package="methylCC")
    files <- file.path(dir, "FlowSorted.Blood.450k.sub.RData")
    if(file.exists(files)){
        load(file = files)

        set.seed(12345)
        est <- estimatecc(object = FlowSorted.Blood.450k.sub, demo = TRUE)
        cell_counts(est)
     }

[Package methylCC version 1.2.0 Index]