Skip to content

Commit

Permalink
Merge branch 'release/1.2.21'
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jul 27, 2017
2 parents 47ee64c + 31f4e41 commit e165f44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion glimix_core/lmm/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging

from numpy import sum as npsum
from numpy import append, dot, empty, full, log, zeros
from numpy import append, dot, empty, full, log, zeros, asarray, isfinite, all
from numpy.linalg import LinAlgError
from numpy_sugar.linalg import rsolve, solve
from tqdm import tqdm
Expand Down Expand Up @@ -93,8 +93,12 @@ def fast_scan(self, markers, verbose=True):
return lmls, effect_sizes

def _fast_scan_chunk(self, markers):
markers = asarray(markers, float)
assert markers.ndim == 2

if not all(isfinite(markers)):
raise ValueError("One or more variants have non-finite value.")

mTQ = [dot(markers.T, Q) for Q in self._QS[0]]

bm = [dot(i, j.T) for (i, j) in zip(self._yTQdiag, mTQ)]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def setup_package():

metadata = dict(
name='glimix-core',
version='1.2.20',
version='1.2.21',
maintainer="Limix Developers",
maintainer_email="horta@ebi.ac.uk",
license="MIT",
Expand Down

0 comments on commit e165f44

Please sign in to comment.