copyNumber: Extract copy number estimates from a 'CopyNumberModel'

Description Usage Arguments See Also Examples

Description

Extract copy number estimates from a 'CopyNumberModel'

Usage

1
2
3
4
5
6
7
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

CNPBayes documentation built on May 6, 2019, 4:06 a.m.