diff --git a/others/Script3_functions.py b/others/Script3_functions.py index 58826c47811f67a9ef56bd6888e13942e052fdd7..4f1b9f0199594be57ce12221401431e9d13b8677 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)