From 2a2afbe0cf7f681b328ad8f766abf4d387af5bc7 Mon Sep 17 00:00:00 2001 From: Daniel Considine Date: Tue, 2 Apr 2024 17:02:38 +0100 Subject: [PATCH] fix: sorting idx in hail --- src/gentropy/datasource/gnomad/ld.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gentropy/datasource/gnomad/ld.py b/src/gentropy/datasource/gnomad/ld.py index 752a05abb..a19cbb06b 100644 --- a/src/gentropy/datasource/gnomad/ld.py +++ b/src/gentropy/datasource/gnomad/ld.py @@ -488,7 +488,9 @@ def get_locus_index( self.ld_index_raw_template.format(POP=major_population) ) - joined_index = liftover_ht.join(hail_index, how="inner").to_spark().sort("idx") + joined_index = ( + liftover_ht.join(hail_index, how="inner").order_by("idx").to_spark() + ) return joined_index