specPeaks                package:xcms                R Documentation

_I_d_e_n_t_i_f_y _p_e_a_k_s _i_n _a _s_p_a_r_s_e _c_o_n_t_i_n_u_u_m _m_o_d_e _s_p_e_c_t_r_u_m

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

     Given a spectrum, identify and list significant peaks as
     determined by several criteria.

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

     specPeaks(spec, sn = 20, mzgap = 0.2)

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

    spec: matrix with named columns 'mz' and 'intensity'

      sn: minimum signal to noise ratio

   mzgap: minimal distance between adjacent peaks, with smaller peaks
          being excluded 

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

     Peaks must meet two criteria to be considered peaks: 1) Their s/n
     ratio must exceed a certain threshold. 2) They must not be within
     a given distance of any greater intensity peaks.

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

     A matrix with columns:

      mz: m/z at maximum peak intensity

intensity: maximum intensity of the peak

    fwhm: full width at half max of the peak

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

     Colin A. Smith, csmith@scripps.edu

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

     'getSpec', 'specNoise'

