From c371d7eb43875bc623b2c0f6e63214f57d24fdd7 Mon Sep 17 00:00:00 2001 From: Yoshiaki Yasumizu Date: Tue, 5 Apr 2022 15:46:54 +0900 Subject: [PATCH] Update parse.py bug fix; import ldscore can fail due to the alphabetical sort. --- ldscore/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldscore/parse.py b/ldscore/parse.py index 18fe7c98..4105fc67 100644 --- a/ldscore/parse.py +++ b/ldscore/parse.py @@ -147,7 +147,7 @@ def ldscore(fh, num=None): first_fh = sub_chr(fh, chrs[0]) + suffix s, compression = which_compression(first_fh) chr_ld = [l2_parser(sub_chr(fh, i) + suffix + s, compression) for i in chrs] - x = pd.concat(chr_ld) # automatically sorted by chromosome + x = pd.concat(chr_ld)[chr_ld[0].columns] # automatically sorted by chromosome else: # just one file s, compression = which_compression(fh + suffix) x = l2_parser(fh + suffix + s, compression)