getPeaks               package:PROcess               R Documentation

_P_e_a_k _D_e_t_e_c_t_i_o_n

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

     For given threshold criteria, find peaks.

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

     getPeaks(bseoffM, peakinfofile,SoN = 2,span = 81,sm.span=11, 
     zerothrsh=2, area.w = 0.003, ratio = 0.2)

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

 bseoffM: a matrix holding the baseline-substracted spectra, with 
          row-names as the m/z values and column-names  as the spectrum
          names.

peakinfofile: a `.csv' file in the same format as   Ciphergen's peak
          info file, with 5 columns  data.  More details later.

     SoN: see isPeak().

    span: see isPeak().

 sm.span: see isPeak().

zerothrsh: ignore peaks whose intensity values are below zerothrsh.

  area.w: see isPeak().

   ratio: see isPeak().

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

     For given threshold criteria, detect peaks and write the 
     following columns of information into 'peakinfofile',  spectrum
     name (Spectrum.Tag), spectrum sequential number (Spectrum.), peak
     sequential number within a spectrum (Peak.), relative intensity
     (Intensity) and the m/z value where the  relative intensity occurs
     (Substance.Mass).

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

     Xiaochun Li

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

     'rmBaseline'

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

     example(renorm)
     peakfile <- paste(tempdir(),"testpeakinfo.csv", sep="/")
     getPeaks(rtM, peakfile)

