We are given a matrix with 2 columns (samples, experiment conditions) and n rows (genes for example), and we aim to identify the genes that have significantly changed (at a specific FDR) between the two samples.
How to perform this using R?
Below is an example from fdrtool
package manual that shows how to compute FDR from a vector of p-values:
library("fdrtool")
data(pvalues)
fdr = fdrtool(pvalues, statistic="pvalue")
fdr$qval # estimated Fdr values
fdr$lfdr # estimated local fdr
But the problem is that we have just two vectors of observations here, not the p-values. Any ideas?
Here is a sample data that can be used: foo <- matrix(runif(1000), ncol=2)
I assume we have no replicate information, p-value, etc. But for sure the genes that have far different values between the two samples have for sure stronger evidence. Is there any way to assign FDR in this condition?