Skip to content
Snippets Groups Projects
Commit b9c717e3 authored by Charles Plessy's avatar Charles Plessy
Browse files

Access data via a DATA variable, allowing to override the location.

parent c1fb7ab9
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment