Skip to content
Snippets Groups Projects

Update file save_output.py

Merged Hanna JULIENNE requested to merge save_computed_N into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -43,8 +43,9 @@ def save_output(mgwas, ImpG_output_Folder, my_study):
@@ -43,8 +43,9 @@ def save_output(mgwas, ImpG_output_Folder, my_study):
'A0': mgwas_copy.ref,
'A0': mgwas_copy.ref,
'A1':mgwas_copy.alt,
'A1':mgwas_copy.alt,
'Z': mgwas_copy.computed_z,
'Z': mgwas_copy.computed_z,
'P': mgwas_copy.pval
'P': mgwas_copy.pval,
}, columns= ['chrom','rsID', 'pos', 'A0', "A1", "Z", "P" ])
"N": mgwas_copy.computed_N
 
}, columns= ['chrom','rsID', 'pos', 'A0', "A1", "Z", "P", "N"])
impg_output_file = ImpG_output_Folder + 'z_'+ my_study +".txt"
impg_output_file = ImpG_output_Folder + 'z_'+ my_study +".txt"
print("WRITING results for {} to: {}".format( my_study, ImpG_output_Folder))
print("WRITING results for {} to: {}".format( my_study, ImpG_output_Folder))
Loading