I am trying to compare with t-test, two list of gene expressions mean values.
My matrix is built like this
col1 <- c(6.7 , 8.4, 3.1)
col2 <- c(7.7, 8.8, 3.6)
matrix <- cbind(col1, col2)
rownames(matrix) <- c("gene1", "gene2", "gene3")
I want to get the p value for each genes. all that I know is that col1 correspond to means calculated on 22 sample and col2 30 samples.
I tried to apply a t-test per row, but it is not working.
apply(t.test, matrix$col1, matrix$col2, 1)