Skip to content

Commit

Permalink
Fix key error in allele_merge (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-ratman committed Feb 16, 2020
1 parent 0e4a35f commit be19856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,3 +1,4 @@
02.01.20 Fix KeyError in allele_merge
30.07.19 v1.0.1; update changelog and increment version for edits on this date (see #164)
30.07.19 Fix to display of liability scale gencov, h2 in rg results log (see #162)
30.07.19 Update munge to use pandas option for gzip output (see #142)
Expand Down
2 changes: 1 addition & 1 deletion munge_sumstats.py
Expand Up @@ -442,7 +442,7 @@ def allele_merge(dat, alleles, log):
raise ValueError(
'All SNPs have alleles that do not match --merge-alleles.')

dat.loc[~jj, [i for i in dat.columns if i != 'SNP']] = float('nan')
dat.loc[~jj.astype('bool'), [i for i in dat.columns if i != 'SNP']] = float('nan')
dat.drop(['MA'], axis=1, inplace=True)
return dat

Expand Down

0 comments on commit be19856

Please sign in to comment.