MCPcopy Create free account
hub / github.com/OpenGene/fastp / writeBaseCountsJson

Function writeBaseCountsJson

src/filterresult.cpp:318–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void writeBaseCountsJson(ofstream& ofs, string pad, string key, long total, long (&counts)[4]) {
319 ofs << pad << "\t\"total_" << key << "\": " << total << "," << endl;
320 ofs << pad << "\t\"" << key << "\":{";
321 for (int b=0; b<4; b++) {
322 if(b > 0)
323 ofs << ", ";
324 ofs << "\"" << ATCG_BASES[b] << "\": " << counts[b];
325 }
326 ofs << "}";
327}
328
329void FilterResult::reportPolyXTrimJson(ofstream& ofs, string padding) {
330 ofs << padding << "{" << endl;

Callers 1

reportPolyXTrimJsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected