From 8ae94eae70a53ae00e5a2e795ec81e5707531109 Mon Sep 17 00:00:00 2001 From: Kirill Tsukanov Date: Wed, 29 May 2024 13:50:07 +0100 Subject: [PATCH] fix(susie_finemapper): correct syntax for saving the logs df (#625) * fix(susie_finemapper): correct syntax for saving the logs df * fix(susie_finemapper): use parquet instead of csv --------- Co-authored-by: Yakov --- src/gentropy/susie_finemapper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gentropy/susie_finemapper.py b/src/gentropy/susie_finemapper.py index cc4c7a6a1..6c2a4113c 100644 --- a/src/gentropy/susie_finemapper.py +++ b/src/gentropy/susie_finemapper.py @@ -125,8 +125,10 @@ def __init__( output_path + "/" + study_locus_to_finemap ) # Write log - result_logging["log"].df.write.mode(session.write_mode).parquet( - output_path_log + "/" + study_locus_to_finemap + result_logging["log"].to_parquet( + output_path_log + "/" + study_locus_to_finemap + ".parquet", + engine="pyarrow", + index=False ) else: result = self.susie_finemapper_ss_gathered(