Skip to content

Commit

Permalink
Fix bug with headers containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
morispi committed Feb 22, 2019
1 parent 6766933 commit c89935a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CONSENT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ void indexReads(std::map<std::string, std::vector<bool>>& index, std::string rea
getline(f, header);
while (header.length() > 0) {
header.erase(0, 1);
header = splitString(header, " ")[0];
getline(f, sequence);
std::transform(sequence.begin(), sequence.end(), sequence.begin(), ::toupper);
index[header] = fullstr2num(sequence);
Expand Down

0 comments on commit c89935a

Please sign in to comment.