HMMsegment(correctOut, param = NULL, autosomes = NULL, maxiter = 50, getparam = FALSE, verbose = TRUE)
correctReadcount
See Details for more information on parameters.
A matrix with parameters values in columns for each state in rows:
HMMsegment
is a two stage algorithm that first runs an
Expectation-Maximization algorithm to find the optimal set of parameters
based on suggested parameter inputs, and allowed flexibilities. After
iteratively finding the optimal parameters, the actual segmentation of the
data is conducted with the Viterbi algorithm, finally output segmented
states. This is an extension to the hidden Markov model described in Shah
et al., 2006.
Parameters are divided into two main categories:
Where initial parameters are treated as starting suggestions for the parameter optimization algorithm, and flexibility parameters (hyperparameters) define how much the initial parameters are allowed to deviate during the search for the optimal parameters.
With a good copy number dataset, in theory, given enough flexibility, the algorithm should always find a similar set of optimal parameters regardless of initial parameters (although running times will vary).
If for some reason you wish to manually set the parameters for the final segmentation process, one should tune all flexibility parameters to minimal values. For example, if you wish to increase the length of segments, you could set:
param$e <- 0.9999999999999999 param$strength <- 1e30
Which suggests that segments should be very long, and gives minimal to non-existant flexibility to your suggestion.
See vignette for diagrammed example:
vignette("HMMcopy")
correctReadcount
, to correct the readcounts prior to
segmentation and classification for better results.
data(tumour) # Load tumour_copy
tumour_segments <- HMMsegment(tumour_copy)
Run the code above in your browser using DataLab