From bd76ec5c37bc178fd93c4d28b3dd029885dbe598 Mon Sep 17 00:00:00 2001 From: Rob Patro Date: Sun, 26 Mar 2017 14:07:47 -0400 Subject: [PATCH] use version string to write version in SAM header --- include/RapMapUtils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/RapMapUtils.hpp b/include/RapMapUtils.hpp index 3ff0707..b9bfa40 100644 --- a/include/RapMapUtils.hpp +++ b/include/RapMapUtils.hpp @@ -33,6 +33,7 @@ #include "spdlog/spdlog.h" #include "spdlog/fmt/ostr.h" #include "spdlog/fmt/fmt.h" +#include "RapMapConfig.hpp" #include "PairSequenceParser.hpp" #ifdef RAPMAP_SALMON_SUPPORT @@ -93,7 +94,7 @@ namespace rapmap { hd.write("@SQ\tSN:{}\tLN:{:d}\n", txpNames[i], txpLens[i]); } // Eventually output a @PG line - hd.write("@PG\tID:rapmap\tPN:rapmap\tVN:0.3.1\n"); + hd.write("@PG\tID:rapmap\tPN:rapmap\tVN:{}\n", rapmap::version); std::string headerStr(hd.str()); // Don't include the last '\n', since the logger will do it for us. headerStr.pop_back();