fdist-methods             package:msbase             R Documentation

_E_u_c_l_i_d_e_a_n _o_r _M_a_n_h_a_t_t_a_n _d_i_s_t_a_n_c_e _f_o_r _p_e_a_k-_l_i_s_t _c_o_m_p_a_r_i_s_o_n

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

     Computes Euclidean or Manhattan distance for two aligned vectors.

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

     obx: see above

     oby: see above

   error: measurement error

     ppm: if 'TRUE' then error in parts per million, in arbitrary units
          otherwise

    full: if 'TRUE' then compute for matching and not matching peaks

  weight: if 'TRUE' weight differences between matching peaks.

    uniq: if 'TRUE' compute non-crossing matching

  method: type of dissimilarity:

             *  euclidean - euclidean distance  ('dist')

             *  manhattan - manhattan distance. ('dist')

             *  canberra - canberra distance. ('dist')

             *  simindex - similarity index. 

    norm: how to scale the itensities:

             *  vnorm - l=2 norm, vector length normalization.

             *  tic - l=1 norm, total ion count normalization.

             *  student - root mean square normalization (see. 'scale') 

             *  zscore - z-score normalization. (see. 'scale') 

   theta: "numeric" how to weight the non-matching peaks.

       N: default 0 - total length of alinged peak-lists.

   range: experimental

_M_e_t_h_o_d_s:

     _o_b_x = "_M_a_s_s_v_e_c_t_o_r", _o_b_y = "_M_a_s_s_v_e_c_t_o_r" :

     _o_b_x = "_M_a_s_s_v_e_c_t_o_r_l_i_s_t", _o_b_y = "_M_a_s_s_v_e_c_t_o_r" :

     _o_b_x = "_M_a_s_s_v_e_c_t_o_r_l_i_s_t", _o_b_y = "_N_U_L_L" :

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

     Witold E. Wolski witek96@users.sourceforge.net <URL:
     http://r4proteomics.sourceforge.net>

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

     'fcor-methods','fbinary-methods'

_E_x_a_m_p_l_e_s:

     data(pldata)
     fdist(pldata[[1]],pldata[[2]],error=400,ppm=TRUE,theta=1,weight=FALSE,scale="zscore",method="euclidean")
     fdist(pldata[[1]],pldata[[2]],error=400,ppm=TRUE,theta=1,weight=FALSE,scale="no",method="manhattan")
     tmp <- fdist(pldata,NULL,error=400,ppm=TRUE,theta=1,weight=FALSE,scale="student",method="euclidean")
     plot(hclust(tmp,method="average"))

