Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probability for deltaPsi #122

Open
OlgaVT opened this issue Jul 28, 2021 · 2 comments
Open

Probability for deltaPsi #122

OlgaVT opened this issue Jul 28, 2021 · 2 comments

Comments

@OlgaVT
Copy link

OlgaVT commented Jul 28, 2021

Hi!

I might probably miss it from the publication - how do you calculate Probability for deltapPsi in .diff.gz?

Thank you!

@timbitz
Copy link
Owner

timbitz commented Oct 8, 2021

Hi @OlgaVT -- it is on pg. 13 of the Methods S1. "Since the EM-algorithm provides only a point-estimate for Ψ without a depth dependent measure of variance, we utilize the conjugate posterior distribution of the
binomial likelihood as a means to compute a read-count derived confidence interval
(CI) over Ψ. Given a total read depth for an AS event of N reads which can either
support inclusion of node n, inc∈In, or support exclusion, exc∈{I - In}, the number of
inclusion reads Ninc are binomially distributed such that Ninc ~Binomial(n=N, p=Ψ).
Given a uniform prior distribution of P(Ψ) = Beta(α=1, β=1), we obtain a posterior
distribution, P(Ψ|Ninc) ∝ P(Ninc|Ψ)P(Ψ), where P(Ψ|Ninc) = Beta(Ninc + α, Nexc +
β). A 90% confidence interval (between 5% and 95%) is then calculated through the
quantile distribution of the posterior. This output allows a user to more easily filter
for a subset of nodes that have a minimum read depth to estimate Ψ within some
range of expected confidence. "

@timbitz
Copy link
Owner

timbitz commented Oct 8, 2021

The probability is derived by simply sampling from both emperical distributions over PSI and comparing the two-- counting the proportion of estimates where X > Y for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants