Regarding paired sample analysis (topTableF)
1
0
Entering edit mode
pbachali ▴ 50
@pbachali-9651
Last seen 4.3 years ago

Hi,

I am trying to find the DE genes between various contrasts using limma. My experimental design include 10 samples before immunosuppressive therapy and same 10 samples after 12 weeks of therapy and 24 weeks of therapy. I am trying to find the DE genes between various conditions like T12-T0, T24-T0.

I took support of limma userguide and I designed and created my contrast matrices. My question is about topTableF. I understood that topTableF is F statistic. Does it give the lfc values. I am unable to interpret my result correctly. I would like to see how my DE genes are varying in each condition. I am using the following code.

library(limma)
# limma
design <- model.matrix(~0 + eset_filtered$cohort)
colnames(design) <- levels(eset_filtered$cohort)
fit <- lmFit(eset_filtered, design)
contrast.matrix <- makeContrasts("T12-T0","T24-T0",levels = design) # make sure your column name is matched to cohort name
fit2 <- contrasts.fit(fit, contrast.matrix)
fit2 <- eBayes(fit2)
top.active.1 <- topTable(fit2, coef=1, adjust="BH", n=nrow(eset_filtered)) # 23,907
top.active <- topTableF(fit2, adjust="BH",n=nrow(eset_filtered))
dev.off()
plot(density(top.active$adj.P.Val), main="Probe density of LIMMA BH corrected p-vals")
index <- which(top.active$adj.P.Val < 0.2)
top.active.sig.one <- top.active[index,]

My output looks like this. CAn I consider the T12.T0 and T24.T0 as logFC values. And also can I get the differentially expressed genes based on F statistic. Could anyone please help how to interpret this result. The main aim is I need to find DE genes changing over time before and after treatment. Any helpis much appreciated.

SYMBOL T12.T0 T24.T0 AveExpr F P.Value adj.P.val

C5orf63    -0.906  -0.9213  3.70     16.7           0.0847

 

Thanks

 

topTableF • 1.1k views
ADD COMMENT
0
Entering edit mode

You never actually need to call topTableF() yourself. topTable() will always call topTableF() internally when appropriate, so you don't need to do it yourself. In your example, calling

topTable(fit2)

is exactly the same as

topTableF(fit2)

 

ADD REPLY
1
Entering edit mode
@james-w-macdonald-5106
Last seen just now
United States

CAn I consider the T12.T0 and T24.T0 as logFC values.

Yes

And also can I get the differentially expressed genes based on F statistic.

You already have - that's what topTableF does.

Could anyone please help how to interpret this result.

An F-statistic tests the hypothesis that one or more of the contrasts is different from zero (or more correctly, the result of computing one or more of the contrasts...). So for any of the genes in your topTableF result, you have evidence that the gene is differentially expressed in one or more of the comparisons.

ADD COMMENT
0
Entering edit mode

Thanks for your insights and answers. Its very much clear. I am happy with the results I got. Now I have equal number of samples for each time-point.T0 (10), T12 weeks (10), T24 weeks(10). They are all paired samples. For instance say the number of samples vary each time point. Though they are paired samples, but few samples miss to come at second time point. Examples T0 (10 samples), T12 weeks (8 samples), T24 weeks (8 samples). 

How to handle the missing samples when we do F statistic I mean when I do more than one contrast matrix? Any suggestions are much appreciated.

 

Thanks,

Prat

ADD REPLY

Login before adding your answer.

Traffic: 1057 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6