mapping {CNPBayes} | R Documentation |
Map mixture components to copy number states
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
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 |
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)