diff --git a/test/intersect/a.bam b/test/intersect/a.bam new file mode 100644 index 0000000000000000000000000000000000000000..bf9f1fc23f810b8d8904396b991ca91c9dcc602e Binary files /dev/null and b/test/intersect/a.bam differ diff --git a/test/intersect/aVSb.bam b/test/intersect/aVSb.bam new file mode 100644 index 0000000000000000000000000000000000000000..04eb46945a6a1e4a5a1147390ba7f9f31aafaea6 Binary files /dev/null and b/test/intersect/aVSb.bam differ diff --git a/test/intersect/a_bgzipped.bed.gz b/test/intersect/a_bgzipped.bed.gz new file mode 100644 index 0000000000000000000000000000000000000000..b4832259598cd51ab13e40080c991bc2febb7da0 Binary files /dev/null and b/test/intersect/a_bgzipped.bed.gz differ diff --git a/test/intersect/a_gzipped.bed.gz b/test/intersect/a_gzipped.bed.gz new file mode 100644 index 0000000000000000000000000000000000000000..745284b5bfd5040c8028876367749c2d949cfa1c Binary files /dev/null and b/test/intersect/a_gzipped.bed.gz differ diff --git a/test/intersect/new_test-intersect.sh b/test/intersect/new_test-intersect.sh new file mode 100755 index 0000000000000000000000000000000000000000..6f21ef16bd9dce382c3a3978d6abf342c4521b9c --- /dev/null +++ b/test/intersect/new_test-intersect.sh @@ -0,0 +1,21 @@ +BT=${BT-../../bin/bedtools} + +check() +{ + if diff $1 $2; then + echo ok + else + echo fail + fi +} + +########################################################### +# Test intersection of a as bed from file vs b as bed from file +############################################################ +echo " intersect.t01...\c" +echo \ +"chr1 100 101 a2 2 - +chr1 100 110 a2 2 -" > exp +$BT intersect -a a.bed -b b.bed > obs +check obs exp +rm obs exp