Bayesian Differential Expression
1
0
Entering edit mode
7 months ago
thyleal ▴ 160

I have a RNAseq dataset where I'm interested in seeing if a target gene genetically modified is upregulated (one-sided hypothesis), but at the same time, I want to assess the possible off-targets (also one-sided). I'm trying to formulate this through a Bayesian perspective for which I can provide priors to my expected target gene and predicted off-targets (based on scores from another tool independent of gene expression levels).

So, for every gene in the dataset, I will have something like this:

Example of prior matrix

In a bayesian regression setting, I think the priors would be the log2FC, like 10, 2, 2, 0, ...

Is there a way to implement this with common workflows, like DESeq2, limma, or EdgeR? I'm open to new suggestions. Many thanks

DESeq2 edgeR limma bayesian • 615 views
ADD COMMENT
6
Entering edit mode
7 months ago
Gordon Smyth ★ 7.4k

Do I understand correctly that you have the prior probability of DE for each individual gene and want to incorporate that into the DE analysis? It is possible to do so using output from the limma package.

Let PriorProbDE be the vector of genewise prior probabilities of the same length as the number of genes. You can run a limma analysis with

Overall <- mean(PriorProbDE)
fit <- eBayes(fit, proportion=Overall)

Then

LogPosteriorOddsDE <- fit$lods - qlogis(Overall) + qlogis(PriorProbDE)

is the log posterior odds of DE. The posterior probability of DE is

PosteriorProbDE <- plogis(LogPosteriorOddsDE)

This analysis is for two-sided tests. If you want to do one-sided tests, then the prior must be specified in a more sophisticated way rather than simply as a prior probability of DE.

ADD COMMENT
0
Entering edit mode

Thank you, Gordon. This is good enough!

ADD REPLY

Login before adding your answer.

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