calculateDistance         package:VanillaICE         R Documentation

_C_a_l_c_u_l_a_t_e_s _t_h_e _p_h_y_s_i_c_a_l _d_i_s_t_a_n_c_e _b_e_t_w_e_e_n _a_d_j_a_c_e_n_t _S_N_P_s

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

     Calculates the distance between adjacent SNPs.

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

     calculateDistance(object)
     physicalDistance(object)

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

  object: Object inheriting from 'SnpLevelSet'

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

     Calculates the physical distance between adjacent SNPs along a
     chromosome.

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

     A vector of integers

_N_o_t_e:

     The transition probabilities in the Viterbi algorithm are
     calculated as a function of the physical distance (d) between
     adjacent SNPs.

     probability of staying in state S = exp(-2 * d/100*1e6)

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

     R. Scharpf

_S_e_e _A_l_s_o:

     'viterbi'

