Skip to content

GenevieveLeyden/ukb.weighted.prs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ukb.weighted.prs

Notes and code to calculate a weighted PRS in the UKB.

Please note the pipeline is built on University of Bristol infrastructure, though the code should be adaptable to other working environments. Further details are provided in the MRCIEU UKBionak data users guidance material. If you notice any issues please get in touch.

Steps

  1. Create input files.
  2. Clone repo.
  3. Create .env file (using .example_env template).
  4. Update .env as appropriate.
  5. Update job id and email details in slurm submission script.
  6. Run analysis.

Details

Input files

Two input files are required to generate the weighted score: (1) a list of rsids (SNPLISTFILE) and (2) a two column file indicating the rsids and weights derived from a relevant GWAS (SCORE). Local storage of the ukb genetic and sample data are maintained by MRCIEU and are described elsewhere.

Clone repo

To use the pipeline, clone the repo to your working directory on BC4: git clone [email protected]:GenevieveLeyden/ukb.weighted.prs.git.

Set environment variables

To set the environment variables, within the repo you will need to copy the .example_env file to .env. Note these files are hidden, to list them use ls -a. Update the filepaths and names of all input/output files in .env as appropriate. Please note the paths to GENDIR and SAMPLE are provided in the guidance material.

Update slurm submission

Update --job-name and --mail-user in the slurm submission script as appropriate to receive an update on the progress of your analysis.

Run analysis

To run the analysis, submit the job to the slurm scheduler using sbatch slurm_submission.sh. It may be useful to take note of the job id to check the progress of the analysis.

About

Notes and code to calculate a weighted PRS in the UKB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages