Skip to content

Commit

Permalink
fix(susie_finemapper): correct syntax for saving the logs df (#625)
Browse files Browse the repository at this point in the history
* fix(susie_finemapper): correct syntax for saving the logs df

* fix(susie_finemapper): use parquet instead of csv

---------

Co-authored-by: Yakov <yt4@sanger.ac.uk>
  • Loading branch information
tskir and addramir authored May 29, 2024
1 parent f0960b1 commit 8ae94ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gentropy/susie_finemapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8ae94ea

Please sign in to comment.