Skip to content

Commit

Permalink
use version string to write version in SAM header
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro authored and Rob Patro committed Mar 26, 2017
1 parent eb7baad commit bd76ec5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/RapMapUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit bd76ec5

Please sign in to comment.