-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#!/bin/bash | ||
# Test glnexus_cli as suggested by the Getting Started guide on the wiki: | ||
# https://github.com/dnanexus-rnd/GLnexus/wiki/Getting-Started | ||
set -e -o pipefail | ||
set -euo pipefail | ||
|
||
echo "--- testing Getting Started examples" | ||
|
||
free -h | ||
|
||
HERE=$(dirname "$0") | ||
|
||
if [ ! -f /tmp/dv_1000G_ALDH2_gvcf.tar ]; then | ||
wget -O /tmp/dv_1000G_ALDH2_gvcf.tar https://raw.githubusercontent.com/wiki/dnanexus-rnd/GLnexus/data/dv_1000G_ALDH2_gvcf.tar | ||
wget -nv -O /tmp/dv_1000G_ALDH2_gvcf.tar https://raw.githubusercontent.com/wiki/dnanexus-rnd/GLnexus/data/dv_1000G_ALDH2_gvcf.tar | ||
fi | ||
|
||
rm -rf /tmp/dv_1000G_ALDH2_gvcf/ GLnexus.DB/ | ||
tar xf /tmp/dv_1000G_ALDH2_gvcf.tar -C /tmp | ||
|
||
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so # needed to keep memory usage under control in Travis CI | ||
echo -e "chr12\t111760000\t111820000" > /tmp/dv_1000G_ALDH2_gvcf/ALDH2.bed | ||
time $HERE/../glnexus_cli --config DeepVariant --squeeze --bed /tmp/dv_1000G_ALDH2_gvcf/ALDH2.bed \ | ||
/tmp/dv_1000G_ALDH2_gvcf/*.g.vcf.gz > /tmp/dv_1000G_ALDH2_gvcf/dv_1000G_ALDH2.bcf | ||
time $HERE/../glnexus_cli --config DeepVariant --squeeze --bed /tmp/dv_1000G_ALDH2_gvcf/ALDH2.bed --mem-gbytes 1 \ | ||
/tmp/dv_1000G_ALDH2_gvcf/*.g.vcf.gz | bcftools view | pv -Wni 10 -s 84968191 > /tmp/dv_1000G_ALDH2_gvcf/dv_1000G_ALDH2.vcf | ||
|
||
echo "--- Getting Started examples OK" |