checkTargetInfo            package:marray            R Documentation

_V_e_r_i_f_y_i_n_g _t_h_e _o_r_d_e_r _b_e_t_w_e_e_n _i_n_t_e_n_s_i_t_i_e_s _m_a_t_r_i_x _a_n_d _t_a_r_g_e_t _f_i_l_e _i_n_f_o_r_m_a_t_i_o_n

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

     Check that the foreground and backgruond intensities are stored in
     the same order as provided in the first column of target file.

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

     checkTargetInfo(mraw)

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

    mraw: Object of class 'marrayRaw' or 'marryNorm'.

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

     A logical value.  This function returns "TRUE" if the first column
     from the Target information is the same order as the foreground
     and backgruond intensities.

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

     Yee Hwa (Jean) Yang

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

     datadir <- system.file("swirldata", package="marray")
     swirl.targets <- read.marrayInfo(file.path(datadir, "SwirlSample.txt"))
     data(swirl)
     swirl@maTargets <- swirl.targets

     checkTargetInfo(swirl)

     checkTargetInfo(swirl[, 2:4])

     ## reorder
     swirl@maTargets <- swirl.targets[c(2:4, 1),]
     checkTargetInfo(swirl)

