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?"
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.
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 ofr2.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?"