Does anyone know how to caculate log2 median-centered intensity in onconmine
the expression data x by GEOquery is gene probe in rows, sample/array in column.
I first log2 all data
1.
y <- log2(x)
then median centered and normalize sd to one per array/sample
2.
median_center_apply <- function(x) {apply(x, 2, function(y) (y - median(y))/sd(y))}
z <- median_center_apply(y)
(which seems like the z-score but between genes in one sample/column, not on one gene probe between samples in one row, anyone know why oncomine use log2 median-centered intensity but not z-score?)
However, i still cannot get the exact same number with that in oncomine. anyone can help?
Hi The thanks I change the command to median_center_apply <- function(x) {apply(x, 2, function(y) (y - median(y))/mad(y))} but still not work
Try the Iglewicz and Hoaglin formula:
y.z <- 0.6745 * (y-median(y,na.rm=TRUE))/mad(y)
https://www.itl.nist.gov/div898/handbook/eda/section3/eda35h.htm
thanks but sorry The still not work the oncomine value is larger than what I get, after times 0.6745, it became much larger.