 
             if (match_tag(token, "SM"))
                 sample = value;
+
+            pos = temp.find(delimiter);
         }
     }
 };

    read_group(const std::string& header_line)
    {
        // split string at each tab character
        std::regex re("\\t+");

        auto it = std::sregex_token_iterator(header_line.begin(),
                                             header_line.end(),
                                             re, -1);

        for(; it != std::sregex_token_iterator(); it++)
        {
            auto token = it->str();
            // skip TG:
            auto value = token.substr(3, token.length() - 3);


 */

#include <string>

#include "../alignment_data.h"
#include "alignments.h"
