Skip to content

Commit

Permalink
Fix bug introduced with PR bulik#221: Error when partitioning heritab…
Browse files Browse the repository at this point in the history
…ility by using variable before it's defined.
  • Loading branch information
pettyalex committed Jan 30, 2023
1 parent 9b3e1d5 commit b4bd7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldscore/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def annot(fh_list, num=None, frqfile=None):
annot_suffix = ['.annot' for fh in fh_list]
annot_compression = []
if num is not None: # 22 files, one for each chromosome
chrs = get_present_chrs(fh, num+1)
for i, fh in enumerate(fh_list):
chrs = get_present_chrs(fh, num+1)
first_fh = sub_chr(fh, chrs[0]) + annot_suffix[i]
annot_s, annot_comp_single = which_compression(first_fh)
annot_suffix[i] += annot_s
Expand Down

0 comments on commit b4bd7af

Please sign in to comment.