Special version of write line that appends an id number to the output. Used to output splitters.
| 526 | // Special version of write line that appends an id number to the output. |
| 527 | // Used to output splitters. |
| 528 | void writeSAMlineWithIdNum(splitLine_t * line, FILE * output) |
| 529 | { |
| 530 | // Unsplit the line. |
| 531 | unsplitSplitLine(line); |
| 532 | // Split it two ways to isolate the id field. |
| 533 | splitSplitLine(line, 2); |
| 534 | outputString(line->fields[0], output); |
| 535 | if (isPaired(line)) fprintf(output, "_%d\t", isFirstRead(line) ? 1 : 2); |
| 536 | else fprintf(output, "\t"); |
| 537 | outputString(line->fields[1], output); |
| 538 | fprintf(output, "\n"); |
| 539 | } |
| 540 | |
| 541 | /////////////////////////////////////////////////////////////////////////////// |
| 542 | // Sequence Map |
no test coverage detected