changeset 425:5882462fa747 alignment_view

Seems more logical for the external alignment program to emit reference,other rather than other,reference
author Chris Cannam
date Thu, 20 Nov 2014 17:17:45 +0000
parents d044682967ca
children 03fd6990ab52
files framework/Align.cpp
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/framework/Align.cpp	Thu Nov 20 16:18:17 2014 +0000
+++ b/framework/Align.cpp	Thu Nov 20 17:17:45 2014 +0000
@@ -202,8 +202,14 @@
 	format.setTimingType(CSVFormat::ExplicitTiming);
 	format.setTimeUnits(CSVFormat::TimeSeconds);
 	format.setColumnCount(2);
-	format.setColumnPurpose(0, CSVFormat::ColumnStartTime);
-	format.setColumnPurpose(1, CSVFormat::ColumnValue);
+        // The output format has time in the reference file first, and
+        // time in the "other" file in the second column. This is a
+        // more natural approach for a command-line alignment tool,
+        // but it's the opposite of what we expect for native
+        // alignment paths, which map from "other" file to
+        // reference. These column purpose settings reflect that.
+	format.setColumnPurpose(1, CSVFormat::ColumnStartTime);
+	format.setColumnPurpose(0, CSVFormat::ColumnValue);
 	format.setAllowQuoting(false);
 	format.setSeparator(',');