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)

