From 95d6effd94ec1e021d7dce14b1b8917761732165 Mon Sep 17 00:00:00 2001 From: Daniel Zerbino Date: Fri, 4 Nov 2016 14:34:03 +0000 Subject: [PATCH] Question of style --- scripts/gwas_to_genes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gwas_to_genes.py b/scripts/gwas_to_genes.py index fe39cb6..cf85643 100644 --- a/scripts/gwas_to_genes.py +++ b/scripts/gwas_to_genes.py @@ -1196,7 +1196,7 @@ def ld_snps_to_genes(ld_snps, tissues): cisreg = cisregulatory_evidence(ld_snps, tissues) # Extract list of relevant SNPs: - selected_snps = set(gene_snp_pair[1] for gene_snp_pair in cisreg) + selected_snps = set(snp for gene, snp in cisreg) # Fallback solution: add nearest gene for dissappointing SNPs: if len(selected_snps) != len(ld_snps):