modified: n.fq
[GalaxyCodeBases.git] / c_cpp / salusFstReCoord / src1 / output.c
blobc37b1f8b26186cb419fcdcc16e1334824b55a463
1 #include "common.h"
3 void output_worker(int_least16_t worker_id) {
4 workerArray_t *worker = &Parameters.worksQuene[worker_id];
5 regmatch_t matches[2];
6 char **splitSets = worker->tokens;
7 #ifndef RELEASE
8 char readName[MAXFQIDLEN + 1] = {0};
9 char readSeq[BARCODELEN + 1] = {0};
10 char readQual[BARCODELEN + 1] = {0};
11 char readRowCol[ROWCOLSIZE + 1] = {0};
12 #endif
13 for (uint64_t index = 0; index < JOBITEMSIZE; index++) {
14 fstBCdata_t *fstBCdata_p = &worker->jobDatArray[index];
15 if (fstBCdata_p->name[0] == 0) {
16 break;
18 #ifndef RELEASE
19 ARRAYcpySTR(readName, fstBCdata_p->name);
20 assert(readName[sizeof(fstBCdata_p->name)] == '\0');
21 fprintf(stderr, " ID:[%s]\n", readName);
22 ARRAYcpySTR(readSeq, fstBCdata_p->seq);
23 assert(readSeq[sizeof(fstBCdata_p->seq)] == '\0');
24 fprintf(stderr, " Seq:[%s]\n", readSeq);
25 ARRAYcpySTR(readQual, fstBCdata_p->qual);
26 assert(readQual[sizeof(fstBCdata_p->qual)] == '\0');
27 fprintf(stderr, "Qual:[%s]\n", readQual);
28 ARRAYcpySTR(readRowCol, fstBCdata_p->RowCol);
29 assert(readRowCol[sizeof(fstBCdata_p->RowCol)] == '\0');
30 fprintf(stderr, "RoCo:[%s]\t", readRowCol);
31 fprintf(stderr, "XY:[%.2f],[%.2f]\n\n", fstBCdata_p->newXY[0], fstBCdata_p->newXY[1]);
32 #endif
33 fprintf(stdout, "@%.*s %.2f %.2f\t%.*s\n" "%.*s\n+\n%.*s\n",
34 sizeof(fstBCdata_p->name), fstBCdata_p->name,
35 fstBCdata_p->newXY[0], fstBCdata_p->newXY[1],
36 sizeof(fstBCdata_p->RowCol), fstBCdata_p->RowCol,
37 sizeof(fstBCdata_p->seq), fstBCdata_p->seq,
38 sizeof(fstBCdata_p->qual), fstBCdata_p->qual
40 fflush(stdout);