| 50 | } |
| 51 | |
| 52 | bam_hdr_t* create_header() { |
| 53 | std::string text = HDstr + SQstr + RGstr + PGstr + COstr + other; |
| 54 | bam_hdr_t *h = sam_hdr_parse(text.length(), text.c_str()); |
| 55 | |
| 56 | h->l_text = text.length(); |
| 57 | h->text = (char*)calloc(h->l_text + 1, 1); |
| 58 | strcpy(h->text, text.c_str()); |
| 59 | |
| 60 | return h; |
| 61 | } |
| 62 | |
| 63 | private: |
| 64 | std::string HDstr, SQstr, RGstr, PGstr, COstr, other; |
no test coverage detected