First of all I've searched bioconductor support and other sites without success, if I just didn't find the answer I would love if someone could give me a link.
I'm trying to get into bioconductor, I do statistical work in R and I would love to fully migrate to this platform but I've hit a rock, probably because I'm really new to genetic-related-statistics.
I've performed analysis using "Transcriptome Analysis Console" an Affymetrix software and I'm unable to reproduce the results. This is a sample of the outcome I'm looking for:
ID TUMOR NORMAL Fold Change ANOVA
Bi-weight Bi-weight (linear) p-value
Avg Signal (log2) Avg Signal (log2) (TUMOR vs. NORMAL)
201890_at 9 4.8 18.42 1.82E-14
My fold change there is 18.42
Now what I'm doing using Bioconductor:
raw.data <- read.affy("covdesc")
x.mas <- call.exprs(raw.data,"rma")
x.filter <- nsFilter(x.mas, remove.dupEntrez = FALSE, var.cutof = 0.5)$eset
x.t_test <- rowttests(x.filter, "Treatment")
tt.data <- as.data.frame(x.t_test)
tt.data$log <- -log10(tt.data$p.value)
The result of that script is:
ID statistic dm p.value log
201890_at -11.09443 -3.846618 1.81999e-14 13.73993
As you can see the ANOVA p-value is pretty much spot on (and this result is consistent across the dataset), but I fail to reproduce the fold-change. The rest of the numbers are totally off too and I'm not sure if I'm doing something wrong or just asking for different statistics
Sorry if my english is bad, it's not my first language. Thanks
I'm lost and I would love to learn enough but I don't seem to find a place where to start.
Regarding your comment, I've used genefilter's rowttest because seemed the logical way to replicate Affymetrix results.
If you could help me with how to use limma to find the fold change it would be great.