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

step2_pos.R - problem with the Z score of TWAS #1

Open
MinghanQ opened this issue Feb 21, 2024 · 1 comment
Open

step2_pos.R - problem with the Z score of TWAS #1

MinghanQ opened this issue Feb 21, 2024 · 1 comment
Assignees

Comments

@MinghanQ
Copy link

Hi,
I am currently attempting to apply the SUMMIT method for TWAS analysis.
While studying the software source code, I noticed that in 'step2_pos.R’, on line 271, the p-value is calculated by dividing z.twas by the square root of r2.twas. According to the formula in your original article, it seems that this value is the Z score for TWAS. However, on line 272, z.twas is directly output as the Z score. Why is this the case? Could it be a misunderstanding on my part?"

@melothemightyone melothemightyone self-assigned this Feb 22, 2024
@melothemightyone
Copy link
Collaborator

Hi MinghanQ,

Your observation is keen and correct. The object z.twas / sqrt(r2.twas) is the Z-score that should be outputted. We will fix this issue in an updated version of SUMMIT in the near future.

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