Closed 1667857557 closed 5 months ago
Hello Huang,
Thanks for reaching out. Apologies for the bug. I accidentally left a requirement that the CHR column was present in the GWAS sumstats file.
I have just merged a commit updating 'FUSION.assoc_test.edit.R' so that it only requires SNP, A1, A2, and Z columns (like the original 'FUSION.assoc_test.R' script). This should resolve the error you were encountering.
Note. the commit also includes a few other minor updates - I haven't updated the docs yet. To avoid disrupting your workflow you might want to just replace the 'FUSION.assoc_test.edit.R' script in your cloned version of the repo.
Let me know if you run into other issues!
Best wishes,
Ollie
Dear Ollie,
Thanks for your work. The code is running well. I have another question. As you mentioned, if the direction of effect identified by the aggregate test (ACAT-O) is questionable, can we simply refer to the direction of the top1 model if its result is available?
Best wishes, Huang
Hi Huang,
Glad the code is running!
To determine the direction of effect, I would look at the TWAS Z-scores coming from each model, rather than looking at just one model. Models showing significant associations should usually show the same direction of effect. If the direction of effect is significantly different between models, then these associations should be interpreted with caution.
I hope this helps.
Ollie
Hi Ollie,
Thanks for the help! This has solved my long standing problem.
Best, Yu-Feng
Hi Oliver,
We encountered an error while running TWAS using the generated weights for a gene. This gene was running well when using the FUSION-provided script FUSION.assoc_test.R, and only generated the top 1 model result. However, when we used the provided script FUSION.assoc_test.edit.R with the command, it reported an error
Can you give me some suggestions? Thanks in advance! A.zip Huang