Skip to content
Snippets Groups Projects
Commit 8508c471 authored by Hugues  ASCHARD's avatar Hugues ASCHARD
Browse files

Update Script3_functions.py -- correct bug in add_genes_ucsc function

parent a420c543
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment