I'm new at R language, so I'm sorry if my question is too basic, but here we go...
I'm working with microarray analysis , utilizing the R software and right now I have to do a t-test to every possible combination of samples of my two analyzed groups.
It's basically a matrix of 20 columns of samples (10 for each group , condition 0 and condition 1) , and around 20000 rows of features (genes) . What I need is the p-value of all of those combinations.
example:
set.seed(777)
DataSample <- matrix(rnorm(10),nrow=20,ncol=10)
colnames(DataSample) <- c(paste("Condition 1",1:5,sep=" "),paste("Condition
2",1:5,sep=" "))
DataSample
I'm looking for the p-values of Condition 1 1 x Condition 2 1, Condition 1 1 x Condition 2 2, Condition 1 1 x Condition 2 3...
Thank you !