From b77e0ebb0de4eadf1f0bcbcacb9788980351d6e7 Mon Sep 17 00:00:00 2001
From: arq5x <arq5x@virginia.edu>
Date: Sat, 1 Feb 2014 20:05:09 -0500
Subject: [PATCH] [ENH] correct Jaccard output header

---
 src/jaccard/jaccard.cpp      |  2 +-
 test/jaccard/test-jaccard.sh | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/jaccard/jaccard.cpp b/src/jaccard/jaccard.cpp
index 8df39987..0c22fa8d 100644
--- a/src/jaccard/jaccard.cpp
+++ b/src/jaccard/jaccard.cpp
@@ -85,7 +85,7 @@ void Jaccard::CalculateJaccard() {
     
     // header
     cout << "intersection\t"
-         << "union\t"
+         << "union-intersection\t"
          << "jaccard\t"
          << "n_intersections"
          << endl;
diff --git a/test/jaccard/test-jaccard.sh b/test/jaccard/test-jaccard.sh
index 81e316c5..9018d8af 100644
--- a/test/jaccard/test-jaccard.sh
+++ b/test/jaccard/test-jaccard.sh
@@ -14,7 +14,7 @@ check()
 ###########################################################
 echo "    jaccard.t01...\c"
 echo \
-"intersection	union	jaccard	n_intersections
+"intersection	union-intersection	jaccard	n_intersections
 110	110	1	2" > exp
 $BT jaccard -a a.bed -b a.bed > obs
 check obs exp
@@ -23,7 +23,7 @@ rm obs exp
 
 echo "    jaccard.t02...\c"
 echo \
-"intersection	union	jaccard	n_intersections
+"intersection	union-intersection	jaccard	n_intersections
 10	140	0.0714286	1" > exp
 $BT jaccard -a a.bed -b b.bed > obs
 check obs exp
@@ -31,7 +31,7 @@ rm obs exp
 
 echo "    jaccard.t03...\c"
 echo \
-"intersection	union	jaccard	n_intersections
+"intersection	union-intersection	jaccard	n_intersections
 10	200	0.05	1" > exp
 $BT jaccard -a a.bed -b c.bed > obs
 check obs exp
@@ -40,7 +40,7 @@ rm obs exp
 
 echo "    jaccard.t04...\c"
 echo \
-"intersection	union	jaccard	n_intersections
+"intersection	union-intersection	jaccard	n_intersections
 0	210	0	0" > exp
 $BT jaccard -a a.bed -b d.bed > obs
 check obs exp
@@ -51,7 +51,7 @@ rm obs exp
 ###########################################################
 echo "    jaccard.t05...\c"
 echo \
-"intersection	union	jaccard	n_intersections
+"intersection	union-intersection	jaccard	n_intersections
 10	140	0.0714286	1" > exp
 cat a.bed | $BT jaccard -a - -b b.bed > obs
 check obs exp
-- 
GitLab