[med-svn] [bedtools] 08/13: Access data via a DATA variable, allowing to override the location.
Charles Plessy
plessy at moszumanska.debian.org
Fri Mar 21 07:23:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
plessy pushed a commit to branch debian/unstable
in repository bedtools.
commit b9c717e3d28e4ba6c8905b690b098ec883d42c75
Author: Charles Plessy <plessy at debian.org>
Date: Fri Mar 21 09:59:54 2014 +0900
Access data via a DATA variable, allowing to override the location.
---
test/reldist/test-reldist.sh | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/test/reldist/test-reldist.sh b/test/reldist/test-reldist.sh
index eebde8b..fc31512 100644
--- a/test/reldist/test-reldist.sh
+++ b/test/reldist/test-reldist.sh
@@ -1,4 +1,5 @@
BT=${BT-../../bin/bedtools}
+DATA=${DATA-../../data}
check()
{
@@ -17,8 +18,8 @@ echo " reldist.t01...\c"
echo \
"reldist count total fraction
0.00 43424 43424 1.000" > exp
-$BT reldist -a ../../data/refseq.chr1.exons.bed.gz \
- -b ../../data/refseq.chr1.exons.bed.gz > obs
+$BT reldist -a $DATA/refseq.chr1.exons.bed.gz \
+ -b $DATA/refseq.chr1.exons.bed.gz > obs
check obs exp
rm obs exp
@@ -79,8 +80,8 @@ echo \
0.47 850 43408 0.020
0.48 1006 43408 0.023
0.49 937 43408 0.022" > exp
-$BT reldist -a ../../data/refseq.chr1.exons.bed.gz \
- -b ../../data/aluY.chr1.bed.gz > obs
+$BT reldist -a $DATA/refseq.chr1.exons.bed.gz \
+ -b $DATA/aluY.chr1.bed.gz > obs
check obs exp
rm obs exp
@@ -143,7 +144,7 @@ echo \
0.48 365 43422 0.008
0.49 336 43422 0.008
0.50 38 43422 0.001" > exp
-$BT reldist -a ../../data/refseq.chr1.exons.bed.gz \
- -b ../../data/gerp.chr1.bed.gz > obs
+$BT reldist -a $DATA/refseq.chr1.exons.bed.gz \
+ -b $DATA/gerp.chr1.bed.gz > obs
check obs exp
-rm obs exp
\ No newline at end of file
+rm obs exp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/bedtools.git
More information about the debian-med-commit
mailing list