pk2bmkr               package:PROcess               R Documentation

_F_i_n_d _B_i_o_m_a_r_k_e_r_s.

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

     Align peaks of spectra in `peakinfofile' and find biomarkers by a
     procedure described in Gentleman and Geyer (1994).

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

     pk2bmkr(peakinfofile, bseoffM, bmkfile, eps = 0.003, binary = F,p.fltr = 0.1)

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

peakinfofile: a `.csv' file in the same format as    Ciphergen's
          peakinfo file with 5 columns  data,  Spectrum.Tag, Spectrum.,
          Peak., Intensity and   Substance.Mass.

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

 bmkfile: a `.csv' file in the same format as    Ciphergen's biomarker
          file, with spectra (samples)  as columns, and biomarkers as
          rows.

     eps: expected experimental variation in the m/z values.

  binary: output intensity or binary peak  presence/absence signals. 

  p.fltr: a number between 0 and 1. If a proto-biomarker  is identified
          as peak in > p.fltr x 100 percent of spectra,  it's kept in
          'bmkfile'. 

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

     A dataframe with spectra as rows and biomarkers as  columns.
     Spectrum labels and biomarker positions may be in  the names of
     the dataframe.

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

     Xiaochun Li

_R_e_f_e_r_e_n_c_e_s:

     Gentleman, R. and Geyer, C.J. (1994). Maximum  likelihood for
     interval censored data: Consistency and  computation. Biometrika,
     81:618-623.

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

     'rmBaseline','getPeaks'

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

     example(getPeaks)
     bmkfile <- paste(tempdir(),"testbiomarker.csv",sep="/")
     testBio <- pk2bmkr(peakfile, rtM, bmkfile)

     ## plot biomarker intensities of the 2 spectra

     mzs <- as.numeric(rownames(rtM))
     matplot(mzs, rtM, type="l", xlim=c(1000, 10000))

     bks <- getMzs(testBio)
     abline(v=bks, col="green")

