Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
Fix parsing of empty BAM header tags
  • Loading branch information
porchard committed Jul 8, 2020
1 parent 8fbd929 commit 1a2e8c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# VARIABLES
#

VERSION = 1.2.0
VERSION = 1.2.1

#
# PATHS
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ataqv (1.2.1-1) unstable; urgency=medium

* Fix parsing of empty BAM header tags

-- Parker Lab Software <parkerlab-software@umich.edu> Wed, 8 Jul 2020 11:30:00 -0400

ataqv (1.2.0-1) unstable; urgency=medium

* Add option to reduce redundant metrics
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/HTS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sam_header parse_sam_header(const std::string &header_text) {
std::stringstream field_stream(field);
for (std::string field_text; std::getline(field_stream, field_text, '\t');) {
std::vector<std::string> splitfield = split(field_text, ":");
field_map[splitfield[0]] = splitfield[1];
field_map[splitfield[0]] = splitfield.size() > 1 ? splitfield[1] : "";
}
}
header[header_tag].push_back(field_map);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/Version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
// Licensed under Version 3 of the GPL or any later version
//

#define VERSION "1.2.0"
#define VERSION "1.2.1"

0 comments on commit 1a2e8c5

Please sign in to comment.