/usr/share/bedtools/test/spacing/test-spacing.sh is in bedtools-test 2.25.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/bash
BT=${BT-../../bin/bedtools}
check()
{
if diff $1 $2; then
echo ok
else
echo fail
fi
}
###########################################################
# Test a basic file
###########################################################
echo " spacing.t01...\c"
echo \
"chr1 20 30 .
chr1 25 40 0
chr1 50 80 10
chr1 75 100 0
chr1 105 110 5
chr2 115 130 .
chr2 120 160 0
chr2 170 180 10" > exp
$BT spacing -i a.bed > obs
check obs exp
rm obs exp
|