Displaying 1 result from an estimated 1 matches for "gene_2".
Did you mean:
gene2
2012 Oct 24
4
Z score
...h gene across the samples (refer the
example). And, it should be a simple thing, but I am unable to do it right
now !
The example re the structure of the spreadsheet is -
# Example:
MyFile <- read.csv( text=
"Names,'Sample_1','Sample_2','Sample_3'
Gene_1,87,77,88
Gene_2,98,22,34
Gene_3,33,43,33
Gene_4,78,,81
", header=TRUE, row.names=1, as.is=TRUE, quote="'", na.strings="" )
And, I think this formula that can be used for z score is -
(x-mean(x))/sd(x)
And, apply() function for rows should work. But bottomline - I am unable to
do it...