copyNumber {CNPBayes} | R Documentation

## Extract copy number estimates from a 'CopyNumberModel'

### Description

Extract copy number estimates from a 'CopyNumberModel'

### Usage

    copyNumber(object)

    ## S4 method for signature 'MultiBatchCopyNumber'
    copyNumber(object)

    ## S4 method for signature 'MultiBatchCopyNumberPooled'
    copyNumber(object)

### Arguments

`object` | a `SingleBatchCopyNumber` or `MultiBatchCopyNumber` object

### See Also

`CopyNumberModel`

### Examples

    sb <- SingleBatchModelExample
    cn.model <- CopyNumberModel(sb)
    head(copyNumber(cn.model))

    ## here is an identity mapping
    ## Not run:
        mapping(cn.model) <- 1:3
        identical(copyNumber(cn.model), z(cn.model))
        table(copyNumber(cn.model))

        ## here, we map the first two mixture components to one copy number state
        mapping(cn.model) <- c(1, 1, 2)
        table(copyNumber(cn.model))

    ## End(Not run)

[Package CNPBayes version 1.13.5 Index]