Correct use of Likelihood Ratio Test and LFC Shrinkage
1
0
Entering edit mode
Emma • 0
@9f7414c2
Last seen 2.8 years ago
United States

Hi, could someone tell me if I am using the LRT method correctly?

I am analyzing RNA-seq data to study responses to infection. Our data includes 3 timepoints and comes from 4 different animals and we are only interested in changes in expression in response to infection, not differences among the individuals. From PCA plots we generated, it looks like there is a lot of variation among individuals, so I am thinking it might be best to use LRT instead of the Wald test. If I understand correctly, this would allow the model to account for the variation among individuals but focus the hypothesis testing on differences due to the response to infection over time. Is my logic here correct? And is the following code applying the LRT method correctly?

dds <- DESeqDataSetFromMatrix(countData = cts, colData = coldata, design= ~ animal + timepoint)
dds <- DESeq(dds, test = "LRT", reduced = ~ animal)
res <- results(dds, contrast = c("timepoint", "day3", "day0"))

Also, is the lfcShrink function ever applied to a DESeqDataSet object that was generated using the LRT? And if so, would applying lfcShrink to my data possibly be useful?

RNASeq LRT DESeq2 lfcShrink • 1.6k views
ADD COMMENT
0
Entering edit mode

I also have other comparisons that I am looking at, including the following:

res <- results(dds, contrast = c("timepoint", "day15", "day0"))
res <- results(dds, contrast = c("timepoint", "day15", "day3"))
ADD REPLY
1
Entering edit mode
@mikelove
Last seen 16 minutes ago
United States

Take a look at the help in ?results, unless you specify test="Wald" then it is ignoring contrast for the p-value calculation. The p-value only cares about full and reduced (recommend to consult with a statistician on how to set up the two designs to perform an LRT).

If you want to compare two groups, I'd recommend using Wald tests (the default examples in the vignette).

ADD COMMENT
0
Entering edit mode

Hi Michael,

So I use this

res_LRT <- results(dds_lrt)

r2=lfcShrink(dds_lrt, coef=7, res=res_LRT)

tu run lfcshrink with LRT, is that oko?

thanks,

ADD REPLY

Login before adding your answer.

Traffic: 782 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