Closed jackosullivanoxford closed 4 years ago
Also do a PRS with patients in warfarin excluded
When I re-run these analysis check the the AF patients we have in the plink files are European only. No need to exclude relatives as per LDpred github and the fact we control for PCAs in the logistic regression:
To do Step 3:
Find the patient ids for all patients with AF:
Exclude non-Europeans [DONE]
afib <- fread("/oak/stanford/groups/euan/projects/risk_scores/afib.cohort.txt") euro <- fread("/oak/stanford/groups/euan/projects/ukbb/gwas/pop_strat/v2/euro.txt") euro_afib <- merge(afib, euro, by = "V2")
For step 1:
a <- fread("/oak/stanford/groups/euan/projects/risk_scores/ukbb_random_2k/ukbb_sample.txt") sum(duplicated(a$V1)) # equals 0 sum(duplicated(a$V2)) # equals 0
Still need to divide strokes into incident and prevalent cases.
The analyses I did before May 2019 used the GWAS SS for All ischemic stroke. Re-do all LDpred steps for Cardioembolic stroke Summary statistics.