I am conducting an analysis of methylation data for ~20k+ genes.
For n=3, I am doing a t-test for every gene to see if it has been differentially methylated after treatment. Methylation values range from [0,1].
So, in my data I have 6 rows, with a before and after row for each patient and # columns = # of genes (~20k).
Here is code for generating p-values:
for (i in 1:ncol(df))
{
alpha = c(df[c(1,3,5),i])
beta = c(df[c(2,4,6),i])
df.p[i] = t.test(alpha,beta,paired=TRUE)$p.value
}
hist(df.p)
This churns out the p-values just fine, but when I make a histogram of the resulting p-values, it is skewed strongly to the left, which is strange since you'd at least expect a uniform distribution if you didn't have any significant methylation differences. Below is a screenshot of the distribution.
Side note: I've also used the limma
package in BioConductor
and got the same results.
Am I conducting the t-test wrong? How am I to interpret these results? Any advice is appreciated, as I am a novice biostatistician.