MCPcopy Create free account
hub / github.com/deweylab/RSEM / create_header

Method create_header

SamHeader.hpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
63private:
64 std::string HDstr, SQstr, RGstr, PGstr, COstr, other;

Callers 2

BamConverterMethod · 0.80
BamWriterMethod · 0.80

Calls 1

sam_hdr_parseFunction · 0.85

Tested by

no test coverage detected