| 1 |
#!/bin/sh -e |
| 2 |
|
| 3 |
pkg=bolt-lmm |
| 4 |
|
| 5 |
if [ "$AUTOPKGTEST_TMP" = "" ] ; then |
| 6 |
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX` |
| 7 |
fi |
| 8 |
|
| 9 |
cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP |
| 10 |
|
| 11 |
cd $AUTOPKGTEST_TMP |
| 12 |
|
| 13 |
tar Jxvf examples.tar.xz |
| 14 |
|
| 15 |
# Test copied from upstream example/run_example.sh file |
| 16 |
bolt \ |
| 17 |
--bfile=EUR_subset \ |
| 18 |
--remove=EUR_subset.remove \ |
| 19 |
--exclude=EUR_subset.exclude \ |
| 20 |
--exclude=EUR_subset.exclude2 \ |
| 21 |
--phenoFile=EUR_subset.pheno2.covars \ |
| 22 |
--phenoCol=PHENO \ |
| 23 |
--covarFile=EUR_subset.pheno2.covars \ |
| 24 |
--covarCol=CAT_COV \ |
| 25 |
--qCovarCol=QCOV{1:2} \ |
| 26 |
--modelSnps=EUR_subset.modelSnps \ |
| 27 |
--lmm \ |
| 28 |
--numThreads=2 \ |
| 29 |
--statsFile=example.stats \ |
| 30 |
--dosageFile=EUR_subset.dosage.chr17first100 \ |
| 31 |
--dosageFile=EUR_subset.dosage.chr22last100.gz \ |
| 32 |
--dosageFidIidFile=EUR_subset.dosage.indivs \ |
| 33 |
--statsFileDosageSnps=example.dosageSnps.stats \ |
| 34 |
--impute2FileList=EUR_subset.impute2FileList.txt \ |
| 35 |
--impute2FidIidFile=EUR_subset.impute2.indivs \ |
| 36 |
--statsFileImpute2Snps=example.impute2Snps.stats \ |
| 37 |
--dosage2FileList=EUR_subset.dosage2FileList.txt \ |
| 38 |
--statsFileDosage2Snps=example.dosage2Snps.stats \ |
| 39 |
2>&1 | tee example.log # log output written to stdout and stderr |
| 40 |
|
| 41 |
# Test copied from upstream example/run_example_reml2.sh file |
| 42 |
bolt \ |
| 43 |
--bfile=EUR_subset \ |
| 44 |
--phenoFile=EUR_subset.pheno2.covars \ |
| 45 |
--exclude=EUR_subset.exclude2 \ |
| 46 |
--phenoCol=PHENO \ |
| 47 |
--phenoCol=QCOV1 \ |
| 48 |
--modelSnps=EUR_subset.modelSnps2 \ |
| 49 |
--reml \ |
| 50 |
--numThreads=2 \ |
| 51 |
2>&1 | tee example_reml2.log # log output written to stdout and stderr |
| 52 |
|