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

chi square test for likelihood ratio? #54

Open
fishercera opened this issue Apr 21, 2022 · 2 comments
Open

chi square test for likelihood ratio? #54

fishercera opened this issue Apr 21, 2022 · 2 comments

Comments

@fishercera
Copy link

Hi Dieterich Lab,

I love the tool. It's everything I wanted.

I'm trying to figure out how many degrees of freedom are in the model for the log-likelihood ratio, because I'd like to be able to put a p-value to a threshold to use for calling a site "edited." I've gone through your publication and I think that it's 4 -- one parameter for each base. But, I'm not sure, and I'm just not good enough at statistics to be able to understand the model well enough.

Thanks for any guidance you can provide.

@piechottam
Copy link
Collaborator

Hi,

check:

java -jar call-2 -h

this gives:

[...]
-u <MODE>             Choose between different modes (Default: DirMult):
                       DirMult Compound Error (estimated error {0.01} + phred score)
                       |       Adjusts variant condition
                       | :epsilon       Fit achieved if |L1 - L2| < epsilon, where L1 and L2 correspond to old
                       |                and new likelihood respectively.
                       |                Default: 0.001
                       | :maxIterations Maximum number of iterations for Newton's method.
                       |                Default: 100
                       | :calcPvalue    Calculate a pvalue based on a chi^2 approximation of the likelihood
                       |                ratio
                       | :showAlpha     Show detailed info of Newton's method in output (not in VCF output).
[...]

Adjust your JACUSA2 call / add: [...] call-2 -u DirMult:calcPvalue [...]

Notes:

  • We use 3 degrees of freedom.
  • We prefer to work with raw JACUSA2 call scores.

@fishercera
Copy link
Author

Thank you so much! And, yes, I totally understand why you'd prefer to work with the raw LRs. Looking at the distribution of LRs was a lot more informative than a p-value would be. I still have to be able to calculate a p-value for reviewers who are even less stats savvy than I am (at least I know what a Dirichlet multinomial is)...

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