removeSpots            package:arrayMagic            R Documentation

_R_e_m_o_v_e _s_p_e_c_i_f_i_e_d _s_p_o_t_s _f_r_o_m _o_b_j_e_c_t_s

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

     All elements matching the strings in 'spotsToBeRemoved' are taken
     out of the object 'arrayDataObject' and  the corresponding ones
     out of the object 'exprSetRGObject' as well, if supplied.

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

     removeSpots(arrayDataObject, exprSetRGObject=NULL, spotsToBeRemoved=NULL, spotIdentifier="Name")

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

arrayDataObject: object of type 'arrayData'; required; default: missing

exprSetRGObject: object of type 'exprSetRG'; optional; default: 'NULL'

spotIdentifier: character string, i.e. name of the column of
          'getSpotAttr(arrayDataObject)' used for matching; default
          "Name"

spotsToBeRemoved: vector of character strings; default: 'NULL'

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

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

     A named list containing an object of type 'arrayData' labelled
     "arrayDataObject", an object of type 'exprSetRG' labelled
     "exprSetRGObject" and an integer specifying the number of removed
     items labelled "nrOfRemovedItems".

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

     Andreas Buness <a.buness@dkfz.de>

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

     'arrayData-class', 'exprSetRG-class'

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

       intensities <- array(data=runif(600),dim=c(100,2,3))
       dimnames(intensities) <- list(NULL, c("green","red"), NULL)
       arrayDataObject <- new("arrayData", intensities=intensities, spotAttr=data.frame(Name=I(rep(c("x","y","Blank","Blank","z"),20))), hybAttrList=NULL)
       res <- removeSpots(arrayDataObject, spotsToBeRemoved=c("x","z"))
       stopifnot( dim(getIntensities(res[["arrayDataObject"]]))[1] == 3*20 )

        
       

