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'

