diff options
author | Pjotr Prins | 2017-07-09 08:33:41 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-07-09 08:33:41 +0000 |
commit | 0792aee7269e4bf1c2903267e17a12dfebd14884 (patch) | |
tree | 661e64a7702e18fac2dfae2e2331c6eec90e167f /test/test_suite.sh | |
parent | 35405450385ded8797a9a6388e6e2801381f2894 (diff) | |
download | pangemma-0792aee7269e4bf1c2903267e17a12dfebd14884.tar.gz |
Tests: added test for univariate and multivariate LMM
Also added 'make check' command in Makefile and documented in INSTALL.md
Diffstat (limited to 'test/test_suite.sh')
-rwxr-xr-x | test/test_suite.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_suite.sh b/test/test_suite.sh index effc056..8adc5c9 100755 --- a/test/test_suite.sh +++ b/test/test_suite.sh @@ -11,6 +11,23 @@ testCenteredRelatednessMatrixK() { assertEquals "29.691" `awk '{s+=substr($1,0,6)}END{print s}' output/mouse_hs1940.cXX.txt` } +testUnivariateLinearMixedModel() { + $gemma -g ../example/mouse_hs1940.geno.txt.gz -p ../example/mouse_hs1940.pheno.txt -n 1 \ + -a ../example/mouse_hs1940.anno.txt -k ./output/mouse_hs1940.cXX.txt -lmm \ + -o mouse_hs1940_CD8_lmm + assertEquals "118459" `wc -w < output/mouse_hs1940_CD8_lmm.assoc.txt` + assertEquals "92047" `awk '{s+=substr($1,0,6)}END{print s}' output/mouse_hs1940_CD8_lmm.assoc.txt` +} + +testMultivariateLinearMixedModel() { + $gemma -g ../example/mouse_hs1940.geno.txt.gz -p ../example/mouse_hs1940.pheno.txt \ + -n 1 6 -a ../example/mouse_hs1940.anno.txt -k ./output/mouse_hs1940.cXX.txt \ + -lmm -o mouse_hs1940_CD8MCH_lmm + outfn=output/mouse_hs1940_CD8MCH_lmm.assoc.txt + assertEquals "139867" `wc -w < $outfn` + assertEquals "92079" `awk '{s+=substr($1,0,6)}END{print s}' $outfn` +} + shunit2=`which shunit2` if [ -x "$shunit2" ]; then . $shunit2 |