viterbi              package:VanillaICE              R Documentation

_v_i_t_e_r_b_i _a_l_g_o_r_i_t_h_m

_D_e_s_c_r_i_p_t_i_o_n:

     The Viterbi algorithm for computing the most likely state sequence
     given a model

_U_s_a_g_e:

     viterbi(initialStateProbs, emission, tau, arm, tau.scale, verbose =
     FALSE, chromosome, position, sampleNames, locusNames, normalIndex, returnLikelihood = FALSE)

_A_r_g_u_m_e_n_t_s:

initialStateProbs: initial state probabilities (log scale)

emission: matrix of log emission probabilities (one sample is a matrix)

     tau: transition probabilities (original scale)

     arm: numeric or character string indicating chromosomal arm

tau.scale: matrix to scale the probability of transitioning between
          states.

 verbose: Logical

chromosome: chromosome

position: physical position

sampleNames: sample labels

locusNames: labels for loci

normalIndex: index corresponding to the normal state. See details

returnLikelihood: whether to return the 'loglikelihood'

_D_e_t_a_i_l_s:

     The Viterbi algorithm is fit independently to each chromosomal arm
     if arm is specified.

     Argument 'tau.scale' is a matrix that scales the probability of
     transitioning from an altered state to a normal state to the
     probability of transitioning between two altered states.  If
     missing, tau.scale is 1 (no scaling)

_V_a_l_u_e:

  matrix: predicted states

_A_u_t_h_o_r(_s):

     R. Scharpf

