Skip to content

Commit bd76ec5

Browse files
Rob PatroRob Patro
authored andcommitted
use version string to write version in SAM header
1 parent eb7baad commit bd76ec5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/RapMapUtils.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "spdlog/spdlog.h"
3434
#include "spdlog/fmt/ostr.h"
3535
#include "spdlog/fmt/fmt.h"
36+
#include "RapMapConfig.hpp"
3637
#include "PairSequenceParser.hpp"
3738

3839
#ifdef RAPMAP_SALMON_SUPPORT
@@ -93,7 +94,7 @@ namespace rapmap {
9394
hd.write("@SQ\tSN:{}\tLN:{:d}\n", txpNames[i], txpLens[i]);
9495
}
9596
// Eventually output a @PG line
96-
hd.write("@PG\tID:rapmap\tPN:rapmap\tVN:0.3.1\n");
97+
hd.write("@PG\tID:rapmap\tPN:rapmap\tVN:{}\n", rapmap::version);
9798
std::string headerStr(hd.str());
9899
// Don't include the last '\n', since the logger will do it for us.
99100
headerStr.pop_back();

0 commit comments

Comments
 (0)