mapping {CNPBayes} | R Documentation

## Map mixture components to copy number states

### Description

Map mixture components to copy number states

### Usage

    mapping(object)

    mapping(object) <- value

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

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

    ## S4 replacement method for signature 'MultiBatchCopyNumber,character'
    mapping(object) <- value

      ## S4 replacement method for signature 'MultiBatchCopyNumberPooled,character'
    mapping(object) <- value

### Arguments

`object` | a SB, SBP, MB, or MBP model
`value` | a k-length numeric vector with values in 1, 2, ..., k, where k is the number of mixture components

### See Also

`CopyNumberModel`

### Examples

    cn.model <- CopyNumberModel(SingleBatchModelExample)
    ## manually remap first two components to the same copy number state
    ## Not run:
     mapping(cn.model) <- c(1, 1, 2)
     ggMixture(cn.model)

    ## End(Not run)

[Package CNPBayes version 1.13.5 Index]