calibrate-methods            package:xcms            R Documentation

_C_a_l_i_b_r_a_t_e _p_e_a_k_s _f_o_r _c_o_r_r_e_c_t_i_n_g _u_n_p_r_e_c_i_s_e _m/_z _v_a_l_u_e_s

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

     Calibrate peaks of a xcmsSet via a set of known masses

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

  object: a 'xcmsSet' object with uncalibrated mz

wishlist: a vector or a list of vectors with reference m/z-values

  method: the used calibrating-method, see below

   mzppm: the relative error used for matching peaks in ppm (parts per
          million)

   mzabs: the absolute error used for matching peaks in Da

neighbours: the number of neighbours from wich the one with the highest
          intensity is used (instead of the nearest)

 plotres: can be set to TRUE if wanted a result-plot showing the found
          m/z with the distances and the regression

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

  object: a 'xcmsSet' with one ore more samples

wishlist: for each sample can be used a different wishlist if there is
          given a list of m/z-vectors. the length of the list must be
          the same as the number of samples, alternatively a single
          vector of masses can be given which is used for all samples.

  method: "shift" for shifting each m/z, "linear" does a linear
          regression and adds a linear term to each m/z. "edgeshift"
          does a linear regression within the range of the mz-wishlist
          and a shift outside.

_M_e_t_h_o_d_s:


     _o_b_j_e_c_t = "_x_c_m_s_S_e_t" ' calibrate(object, wishlist,method="linear",
          mzabs=0.0001, mzppm=5, neighbours=3, plotres=FALSE) '


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

     'xcmsSet-class',

