DOI: https://doi.org/10.1101/2021.12.10.21267272
This respository represents the last snapshot of the bash and R scripts used to generate our results and is provided as-is. As the analysis involved a lot of input/output operations on very large files, these were generated asynchronously on a cluster. Thus these scripts are meant to be executed on the command line manually, block-by-block, waiting for the remote jobs to finish and verifying the integrity of the resulting files at each step. To reduce code duplication, certaint functions that were reused multiple times are defined only once across all files, however, they may be called from different scripts.
Code for most of the analyses in the paper can be found under /main/:
The simulation analyses used:
The inflammatory bowel disease analyses used:
The cross-ancestry analyses used:
Auxilliary analyses for Fig 4 are found in figure4.R and the code used to evaluate the PRS in the UKBB for CAD, T2D and BRCA can be found under /ukbb_validation/.
Code for new analyses for the v2 of the manuscript can be found under /revisions/:
Revisions:
Code for new analyses for the v3 of the manuscript can be found under /revisions_ajhg/: