gamasses-methods           package:msbase           R Documentation

_D_e_t_e_r_m_i_n_e_s _c_l_u_s_t_e_r_s _o_f _m_a_s_s_e_s _i_n _a_n _M_a_s_s_v_e_c_t_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     Determines _clusters_ of masses in an Massvector. To determine
     abundant masses we compute two histograms for the dataset.

_A_r_g_u_m_e_n_t_s:

  object: 'Massvector' or 'Massvectorlist'

   accur: accuracy (bandwith) in Da

   abund: how many masses should be in a cluster to be considered as
          abundant

    func: A function with the following arguments:

             *  mass - e.g mass at which cluster was detected

             *  samplesize - number of peaks in the spectrum

             *  abund - how many masses should be in a cluster to be
                considered

             *  accur - bandwith

             *  sd - further arguments

          The function should return a 'numeric' value indicating the
          threshold (number of peaks) that a cluster are considered as
          abundant.  In the simplest case the function returns just the
          argument 'abund'. (status: Testing, suggestions welcome.) 

_M_e_t_h_o_d_s:

     _o_b_j_e_c_t = "_M_a_s_s_v_e_c_t_o_r" ...

     _o_b_j_e_c_t = "_M_a_s_s_v_e_c_t_o_r_l_i_s_t" ...

_E_x_a_m_p_l_e_s:

     data(pldata)
     gamasses(pldata,abund=4)

