[BioC] Multiply dye-swaps

Ana Conesa aconesa at ochoa.fib.es
Thu Sep 6 18:51:47 CEST 2007


Hi D,
Try this:

T <- rep(c(rep(1, nrow(M)), rep(-1, nrow(M))), ncol(M)/2)

Ana

---- Mensaje Original ----
De: spam56 at gto.net
Para: bioconductor at stat.math.ethz.ch
Asunto: RE: [BioC] Multiply dye-swaps
Fecha: Thu, 6 Sep 2007 12:41:30 -0400

>Hi all,
>
>I have a simple problem that I can't seem to figure out.  I have my
>normalized log-ratios (M) in an array, however there are dye-swaps
>throughout.  I would like to export the data to a table to manipulate
>outside of R, but would like to first correct the M values for the
>dye
>swaps.  I realize I have to multiply the dye-swap columns by -1, but
>I'm and
>R newbie and can't come up with a some simple R code to do this. 
>There are
>28 slides in the data set.  I've tried this, which seemed to make
>sense to
>me, but doesn't give the result I expect:
>
>T<-c(-1,1,-1,1,-1,1,-1,1,-1,1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1
>,-1,1)
>M.cor<-T*M
>
>#where M is the matrix of M values.
>
>Can anybody with more R experience than I have help me?
>
>Thanks,
>
>D
>
>	[[alternative HTML version deleted]]
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor
>Search the archives: http://news.gmane.org/gmane.science.biology.info
>rmatics.conductor



More information about the Bioconductor mailing list