-
Notifications
You must be signed in to change notification settings - Fork 20
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
Z-score or effect and standard error #55
Comments
Dear Natsuhiko, I have a similar question. Just saw discussions on this post and this paper. It seems we can estimate both beta and SE of beta given z-score, allele frequency, and sample size. So is it correct to get SE from RASQUAL output bellowing? It seems we can estimate SE here simply as bellowing: SE = abs(beta/np.sqrt(Chi square statistic)) |
Hi HaniceSun, Thank you |
Hi Hongbo, I believe it is correct. The results make sense when I use the SE this way in the cloloc analysis with both ABF and SuSiE method.
|
HI Hanice, Thank you for the reply. I will try. Best, |
Hi @HaniceSun, can you clarify which formula for SE is the correct formula in your comment above? I am trying to do the same analyses using Your first equation substitutes Next, you presented two different equations for estimating SE from the RASQUAL data:
These do not give the same result for a number of tests cases that I tried. Here is a scatter plot of the results comparing version (1) and version (2): Version (2) consistently yields a much smaller SE estimate, and the relationship is non-systematic. Do you or any other users have any updates for this problem? @natsuhiko Please weigh in if you have suggestions for estimating z-scores, beta values and SE from the standard RASQUAL output. |
Update on estimating beta, SE from RASQUAL output:Hi all, in case anyone is still interested in this problem, I have done some testing of the equations in this paper that was suggested by @HaniceSun. The estimates of beta and SE rely on the identity of Thus the relevant equations are: and where where The final equations, using the RASQUAL ouputs
Just as a sanity check, I compared beta values estimated with these formulas to "raw" beta values that I calculated by fitting an ordinary least squares (OLS) model with ATACseq reads (converted to z-scores) as the dependent variable and genotypes as the independent variable. These aren't expected to be identical, because RASQUAL is integrating additional information -- most significantly, allele counts in reads -- but they should have a similar magnitude and direction. The attached plot shows the results comparing these estimates for about 300,000 QTLs and you can see that they are broadly similar (Pearson |
Dear Natsuhiko,
thanks again for the great tool!
I was wondering if it is possible to obtain z-scores or effect size AND standard errors from rasqual outputs.
I would like to perform downstream analyses to compare QTLs across conditions and they require these values.
Thank you very much for your help,
Best,
Paola
The text was updated successfully, but these errors were encountered: