Skip to content

Commit

Permalink
Include top hit in LD GWAS lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
welchr committed Aug 28, 2017
1 parent d163216 commit 3cbab1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swiss/GWASCatalog.py
Expand Up @@ -46,6 +46,9 @@ def worker_ld_multi(args):
ld_ok = finder.compute(v.epacts,v.chrom,v.pos - ld_dist,v.pos + ld_dist,ld_thresh)

if ld_ok:
# In this case we also want to include the reference variant.
finder.data[v.epacts] = (1,1) # dprime,r2

ld_snps = {j for j in finder.data.iterkeys()}
cat_rows = gwascat[gwascat['EPACTS'].isin(ld_snps)]

Expand Down

0 comments on commit 3cbab1c

Please sign in to comment.