From 8508c4718f2802cff675dd23b4752cae9cd4aa6d Mon Sep 17 00:00:00 2001 From: Hugues ASCHARD <hugues.aschard@pasteur.fr> Date: Fri, 8 Nov 2019 12:29:03 +0100 Subject: [PATCH] Update Script3_functions.py -- correct bug in add_genes_ucsc function --- others/Script3_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/others/Script3_functions.py b/others/Script3_functions.py index 58826c4..4f1b9f0 100644 --- a/others/Script3_functions.py +++ b/others/Script3_functions.py @@ -188,7 +188,7 @@ def add_genes_ucsc(results_snps, summary_directory): recap = pd.DataFrame() recap['Genes'] = genes.groupby('SNP')['Gene'].apply(list).apply(np.unique) - recap['SNP'] = recap.index + recap['SNPid'] = recap.index results_snps = pd.merge(results_snps, recap, on = 'SNP', how = 'left') results_snps['Genes'] = results_snps['Genes'].apply(list_to_string) -- GitLab