forked from arq5x/bedtools2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue arq5x#788 and add test cases
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 3000 |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set -e; | ||
BT=${BT-../../bin/bedtools} | ||
|
||
FAILURES=0; | ||
|
||
check() | ||
{ | ||
if diff $1 $2; then | ||
echo ok | ||
else | ||
FAILURES=$(expr $FAILURES + 1); | ||
echo fail | ||
fi | ||
} | ||
|
||
################################################################## | ||
# Test one block without -split | ||
################################################################## | ||
echo -e " bedtobam.t1...\c" | ||
echo \ | ||
"read_name 0 1 1001 255 1000M * 0 0 * *">exp | ||
echo -e "1\t1000\t2000\tread_name\t255\t+" | $BT bedtobam -i - -g chrsize.tmp| samtools view > obs | ||
check obs exp | ||
rm obs exp | ||
|
||
[[ $FAILURES -eq 0 ]] || exit 1; |