From 5f83f55f2f845d63103e70d199e3d12c0dbdcdca Mon Sep 17 00:00:00 2001 From: Hanna JULIENNE <hanna.julienne@pasteur.fr> Date: Mon, 17 Jul 2023 16:36:52 +0200 Subject: [PATCH] Update file save_output.py --- jass_preprocessing/save_output.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jass_preprocessing/save_output.py b/jass_preprocessing/save_output.py index de68178..6e3498c 100644 --- a/jass_preprocessing/save_output.py +++ b/jass_preprocessing/save_output.py @@ -43,8 +43,9 @@ def save_output(mgwas, ImpG_output_Folder, my_study): 'A0': mgwas_copy.ref, 'A1':mgwas_copy.alt, 'Z': mgwas_copy.computed_z, - 'P': mgwas_copy.pval - }, columns= ['chrom','rsID', 'pos', 'A0', "A1", "Z", "P" ]) + 'P': mgwas_copy.pval, + "N": mgwas_copy.computed_N + }, columns= ['chrom','rsID', 'pos', 'A0', "A1", "Z", "P", "N"]) impg_output_file = ImpG_output_Folder + 'z_'+ my_study +".txt" print("WRITING results for {} to: {}".format( my_study, ImpG_output_Folder)) -- GitLab