Skip to content

Commit

Permalink
Include LD pairs in level snp_gene.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tayaza committed Jun 2, 2022
1 parent 25b8c39 commit 8765c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find_snp_disease.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def find_disease(gwas, ppin_dir, out, ld, corr_thresh, window, population, ld_di
snps = ld_snps['rsidt'].drop_duplicates().tolist()
df = (df.merge(ld_snps, left_on='snp', right_on='rsidq')
.sort_values(by=['snp', 'gene', 'dprime'])
.drop_duplicates(subset=['snp', 'gene', 'dprime']))
.drop_duplicates(subset=['snp', 'rsidt', 'gene', 'dprime']))
write_results(df, f'{level}_snp_gene.txt', out)
overlap = gwas.loc[gwas['SNPS'].isin(snps)].drop_duplicates()
# Total level eQTLs that are in the GWAS Catalog.
Expand Down

0 comments on commit 8765c7e

Please sign in to comment.