Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
smehringer committed Feb 10, 2022
1 parent ddb17ba commit 84a8f15
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 452 deletions.
3 changes: 2 additions & 1 deletion include/bio/format/sam_input_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ class format_input_handler<sam> : public format_input_handler_base<format_input_

ptr = res.ptr + 1; // skip cigar operation character

cigar_vector.emplace_back(cigar_count, seqan3::cigar::operation{}.assign_char(*res.ptr));
cigar_vector.emplace_back(cigar_count,
seqan3::assign_char_strictly_to(*res.ptr, seqan3::cigar::operation{}));
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion include/bio/map_io/header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ void header::read(std::string_view header_string)
{
sequence_length_was_present = true;
++it; // skip :
std::from_chars(&(*it), &(header_string.back()), get<0>(info));
auto res = std::from_chars(&(*it), &(header_string.back()), get<0>(info));
if (res.ec != std::errc{})
throw format_error{"LN tag could not be parsed correctly."};
skip_until(seqan3::is_char<'\t'> || seqan3::is_char<'\n'>);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion include/bio/map_io/sam_tag_dictionary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class sam_tag_dictionary : public std::map<uint16_t, detail::sam_tag_variant>
}
case 'Z' : // string
{
(*this)[tag] = std::string{tag_value.data()};
(*this)[tag] = std::string(tag_value.begin(), tag_value.end());
break;
}
case 'H' :
Expand Down
Loading

0 comments on commit 84a8f15

Please sign in to comment.